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

Redirect to hub app in case of NAA flow #2290

Merged
merged 4 commits into from
Jan 29, 2024

Conversation

somalaya
Copy link
Contributor

@somalaya somalaya commented Jan 19, 2024

Issue : Found a bug while ACW team was testing NAA flow. In case of an interrupt flow, the redirectURI of calling apps would be passed to eSTS as the redirectURI. In NAA flow, redirectURI parameter is child app's redirectURI (which could just be a single page app's redirectURI). eSTS always returns the auth code back to hub app's redirectURI. We would not be able to read/extract the auth code received because the redirectURI eSTS sends code to and the redirectURI we have passed to WebviewAuthorizationStrategy are different.

Fix : Whenever it is a nested app flow (brkRedirectURI!=null), I am passing hub app's redirectURI to authorization strategy to pass the comparison that is made at this line

@somalaya somalaya requested a review from a team as a code owner January 19, 2024 06:10
Copy link
Contributor

@mohitc1 mohitc1 left a comment

Choose a reason for hiding this comment

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

Consider adding UTs

@somalaya
Copy link
Contributor Author

Consider adding UTs

Yes, I am working on adding the UT in broker PR. It would not be part of this PR

@somalaya somalaya force-pushed the somalaya/fix-naa-blankscreen-issue branch from 3ec19f8 to 85f094f Compare January 29, 2024 05:01
@somalaya somalaya merged commit bbdd17c into dev Jan 29, 2024
19 checks passed
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