Add OAuth 2.0 PKCE support (#176)

This commit is contained in:
Hidetake Iwata
2019-10-30 20:47:58 +09:00
committed by GitHub
parent cf4e310b2e
commit 4a084756c3
4 changed files with 109 additions and 4 deletions

View File

@@ -104,13 +104,18 @@ Variable | Value
### Okta
You can log in with an Okta user.
Okta supports [the authorization code flow with PKCE](https://developer.okta.com/docs/guides/implement-auth-code-pkce/overview/)
and this section explains how to set up it.
Open your Okta organization and create an application with the following options:
- Application type: Native
- Initiate login URI: `http://localhost:8000`
- Login redirect URIs:
- `http://localhost:8000`
- `http://localhost:18000` (used if the port 8000 is already in use)
- Grant type allowed: Authorization Code
- Allowed grant types: Authorization Code
- Client authentication: Use PKCE (for public clients)
Replace the following variables in the later sections.
@@ -118,7 +123,8 @@ Variable | Value
------------------------|------
`ISSUER_URL` | `https://YOUR_ORGANIZATION.okta.com`
`YOUR_CLIENT_ID` | random string
`YOUR_CLIENT_SECRET` | random string
You do not need to set `YOUR_CLIENT_SECRET`.
## 2. Verify authentication