azure-functions-auth:Azure函数的身份验证和授权(使用OAuth 2.0和JWT)

时间:2021-01-29 21:44:38
【文件属性】:
文件名称:azure-functions-auth:Azure函数的身份验证和授权(使用OAuth 2.0和JWT)
文件大小:107KB
文件格式:ZIP
更新时间:2021-01-29 21:44:38
javascript jwt oauth2 authentication azure 天蓝色功能认证 Azure功能的身份验证和授权(使用OAuth 2.0和JWT) 组态 const validateJwt = require ( 'azure-functions-auth' ) ( { clientId : '' , clientSecret : '' , domain : '' , algorithms : [ 'RS256' ] , } ) ; 用法 回调样式 module . exports = validateJwt ( function ( context , req ) { if ( req . user ) { context . res = { body : req . user } ; } else { context . res = { status : 400 , body : "The user pr
【文件预览】:
azure-functions-auth-master
----.eslintrc(711B)
----.babelrc(44B)
----renovate.json(177B)
----package.json(2KB)
----test()
--------infrastructure()
--------manual()
--------function-app()
--------integrations.test.js(2KB)
----jest.config.js(6KB)
----LICENSE(1KB)
----package-lock.json(386KB)
----azure-pipelines.yml(3KB)
----.env.example(495B)
----src()
--------index.js(2KB)
--------index.test.js(2KB)
--------index.d.ts(314B)
----.npmignore(72B)
----.gitignore(1KB)
----README.md(2KB)
----.vscode()
--------launch.json(1KB)

网友评论