
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
yapi-plugin-oauth
Advanced tools
支持oauth2.0
第三方插件,在生成的配置文件中,添加如下配置即可:
"plugins": [
{
"name": "oauth",
"options": {
"type": "sso",
"loginUrl": "https://sso.xxxx.com/oauth2.0/profile?access_token=",
"accessTokenAPI": "https://sso.xxxx.com/oauth2.0/accessToken?grant_type=code",
"emailPostfix": "",
"loginText": "登录",
"appId": {
"key": "client_id",
"value": "xxxx"
},
"secret": {
"key": "client_secret",
"value": "xxxxx"
},
"accessToken": {
"key": "access_token"
},
"redirectUri": {
"key": "redirect_uri"
},
"accessCode": {
"key": "code"
},
"AUTH_SERVER": "https://sso.xxxx.com/oauth2.0/authorize"
}
}
]
这里面的配置项含义如下:
type 登陆类型,目前只支持sso登陆loginUrl 服务端在获取token之后,可以通过这个url来获取用户的详细信息emailPostfix 登陆邮箱后缀loginText 按钮显示文字 默认显示 'sso 登录'appId APPID key为自定义字段名,value为字段值secret secret密钥 key为自定义字段名,value为字段值accessToken accessToken 字段名redirectUri redirectUri 字段名accessTokenAPI 获取access_token APIaccessCode code 字段名AUTH_SERVER 点击登陆按钮式需要跳转的url,用户通过该页面登录以后会向服务器发送一个tokenFAQs
The npm package yapi-plugin-oauth receives a total of 6 weekly downloads. As such, yapi-plugin-oauth popularity was classified as not popular.
We found that yapi-plugin-oauth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.