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

Nonce redirect changes, Fixes AB#3098972 #2552

Merged
merged 10 commits into from
Jan 3, 2025
Merged

Conversation

somalaya
Copy link
Contributor

@somalaya somalaya commented Dec 2, 2024

What : Server can reject nonce sent in PRT header in requests. In this case, server redirects to a url with sso_nonce provided in the URL. Broker should be able to handle redirect and replay request with updated PRT credential using new nonce.

Fixes AB#3098972

Related broker PR : https://github.com/AzureAD/ad-accounts-for-android/pull/3013/files

Copy link

github-actions bot commented Dec 2, 2024

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

@somalaya somalaya changed the title Nonce redirect changes Nonce redirect changes, Fixes AB#3098972 Dec 2, 2024
Copy link

github-actions bot commented Dec 2, 2024

✅ Work item link check complete. Description contains link AB#3098972 to an Azure Boards work item.

@somalaya somalaya marked this pull request as ready for review December 2, 2024 17:34
@somalaya somalaya requested a review from a team as a code owner December 2, 2024 17:34
activity
)
}
Logger.warn(methodTag, "mPrtCredentialHolder is not initialized!")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be an error case and throw?

@somalaya somalaya force-pushed the somalaya/nonceRedirect branch from 49b2705 to c862bd8 Compare December 9, 2024 17:10
@somalaya somalaya force-pushed the somalaya/nonceRedirect branch from c862bd8 to 4718f68 Compare January 2, 2025 17:18
Copy link
Contributor

@p3dr0rv p3dr0rv left a comment

Choose a reason for hiding this comment

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

minor nits, LGTM

@somalaya somalaya force-pushed the somalaya/nonceRedirect branch from 4718f68 to a281be5 Compare January 2, 2025 20:34
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.

:shipit:

@somalaya somalaya merged commit 690be86 into dev Jan 3, 2025
24 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.

4 participants