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

Check redirect URI in token.isLoginRedirect() #520

Merged
merged 2 commits into from
Oct 26, 2020

Conversation

denysoblohin-okta
Copy link
Contributor

Changes:

  • in token.isLoginRedirect() check not only presence of parameter code in query/hash, but current location URI should be allowed redirect URI

Thus SDK will not false handle any routes with code parameter as redirect route.

Resolves: #474
Internal ref: https://oktainc.atlassian.net/browse/OKTA-331632

Copy link
Contributor

@aarongranick-okta aarongranick-okta left a comment

Choose a reason for hiding this comment

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

looks good

@aarongranick-okta aarongranick-okta merged commit 8cdb1dd into master Oct 26, 2020
shuowu-okta pushed a commit that referenced this pull request Oct 26, 2020
* Check redirect URI in authClient.token.isLoginRedirect()

* Added test
aarongranick-okta pushed a commit that referenced this pull request Oct 26, 2020
* Check redirect URI in authClient.token.isLoginRedirect()

* Added test
shuowu-okta added a commit that referenced this pull request Oct 27, 2020
* Check redirect URI in token.isLoginRedirect() (#520)

* Check redirect URI in authClient.token.isLoginRedirect()

* Added test

* fix: remove types from cherry pick

* doc: update changelog

Co-authored-by: denysoblohin-okta <72614880+denysoblohin-okta@users.noreply.github.com>
Co-authored-by: Shuo Wu <wushuo2010@gmail.com>
@tcboles
Copy link

tcboles commented Oct 27, 2020

When is this expected to be added to a release for npm installs? And is there a workaround until it is?

@swiftone
Copy link
Contributor

@tcboles - We're working to get an npm release of okta-auth-js 4.1 this week. I'm afraid I don't know of a workaround until then other than building this repo locally for the package.

aarongranick-okta pushed a commit that referenced this pull request Oct 29, 2020
* Check redirect URI in authClient.token.isLoginRedirect()

* Added test
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.

Allow "code" query parameter
4 participants