Skip to content
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

add support for interaction_code on redirect callback #620

Closed

Conversation

aarongranick-okta
Copy link
Contributor

utils to detect interaction_required error

Also refactors tests from the former oauthUtil file and adds more tests related to login redirect handling.

@aarongranick-okta aarongranick-okta marked this pull request as ready for review February 9, 2021 00:13
utils to detect interaction_required error
@aarongranick-okta aarongranick-okta force-pushed the ag-OKTA-363769-redirect-interaction-code branch from fcf0323 to 87a405b Compare February 9, 2021 00:14
return options.pkce || options.responseType === 'code' || options.responseMode === 'query';
}

export function getHashOrSearch(options: OktaAuthOptions) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: getSearchOrHash()? (which does it default to?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default depends on your configured responseType and pkce setting. implicit is hash, authorization code is query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants