Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bruceman/yapi-plugin-okta
One simple okta login plugin for yapi
https://github.com/bruceman/yapi-plugin-okta
Last synced: about 1 month ago
JSON representation
One simple okta login plugin for yapi
- Host: GitHub
- URL: https://github.com/bruceman/yapi-plugin-okta
- Owner: bruceman
- License: apache-2.0
- Created: 2022-08-23T16:08:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-02T02:21:08.000Z (over 2 years ago)
- Last Synced: 2024-10-14T06:44:36.729Z (3 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yapi-plugin-okta
Okta login plugin for YApi### install plugin
> npm i yapi-plugin-okta
or
> yarn add yapi-plugin-okta
### install dependency
Note: should install the dependency under yapi> npm i openid-client
or
> yarn add openid-client
### add settings in config.js of yapi
```
"plugins": [
{
"name": "okta",
"options": {
"issuer": "https://auth.sample.com",
"client_id": "123123",
"client_secret": "456456",
"redirect_uri": "http://127.0.0.1:3030/api/user/login_by_token",
"btnText": "Okta Login"
}
}
]
```
The options descriptions:
- `issuer` okta issuer url
- `client_id` the okta client id
- `client_secret` the okta client secret
- `redirect_uri` the redirect url after okta login successfully
- `btnText` the text of okta login button (optional)