-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support responseMode=query for PKCE flow #324
Conversation
README.md
Outdated
@@ -197,6 +197,7 @@ tokenManager: { | |||
| `redirectUri` | The url that is redirected to when using `token.getWithRedirect`. This must be pre-registered as part of client registration. If no `redirectUri` is provided, defaults to the current origin. | | |||
| `postLogoutRedirectUri` | Specify the url where the browser should be redirected after [signOut](#signout). This url must be added to the list of `Logout redirect URIs` on the application's `General Settings` tab. | |||
| `pkce` | If set to true, the authorization flow will automatically use PKCE. The authorize request will use `response_type=code`, and `grant_type=authorization_code` will be used on the token request. All these details are handled for you, including the creation and verification of code verifiers. | | |||
| `responseMode` | Applicable only for SPA clients using PKCE flow. By default, when requesting tokens via redirect (Initiated with `token.getWithRedirect` and handled using `token.parseFromUrl`), token values are requested and parsed from the hash fragment. Setting this value to `query` will use the URL search query instead. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might we want to say WHEN they want to do this?
e.g.
"If your application makes use/alters the hash fragment of the url, you may want to set to this parameter to 'query'."
CHANGELOG.md
Outdated
|
||
### Features | ||
|
||
- [#324](https://github.com/okta/okta-auth-js/pull/324) - Support `responseMode: "query"` for SPA apps using PKCE flow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps?:
Support responseMode: "query"
option for SPA apps using PKCE flow"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with comments
ba2077f
to
d57feec
Compare
responseMode="query"
if using PKCE flow (server returns an unsupported response mode error if using implicit flow)getWithRedirect
andparseFromUrl