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
[msal-browser] Add support for logout_hint #4450
Conversation
Codecov Report
|
lib/msal-browser/src/interaction_client/StandardInteractionClient.ts
Outdated
Show resolved
Hide resolved
…tion-library-for-js into logout-hint
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.
This looks great!
Co-authored-by: Jason Nutter <janutter@microsoft.com>
* Add loginHint attribute to End Session Request types * Add support for logout_hint for logout APIs in msal-browser * Replace preferred_username with login_hint ID token claim for logout_hint behavior * Add promptless logout docs * Change files * Update tests tpush origin logout-hint * Remove localization from MS docs link on login_hint optional claim Co-authored-by: Jason Nutter <janutter@microsoft.com> Co-authored-by: Jason Nutter <janutter@microsoft.com>
* Add loginHint attribute to End Session Request types * Add support for logout_hint for logout APIs in msal-browser * Replace preferred_username with login_hint ID token claim for logout_hint behavior * Add promptless logout docs * Change files * Update tests tpush origin logout-hint * Remove localization from MS docs link on login_hint optional claim Co-authored-by: Jason Nutter <janutter@microsoft.com> Co-authored-by: Jason Nutter <janutter@microsoft.com>
🎉 We recommend upgrading to the latest version of Handy links: |
This PR:
logoutHint
attribute toCommonEndSessionRequest
typeStandardInteractionClient.initializeLogoutRequest
to parselogin_hint
from ID token claims in the account (if) passed in and set it aslogout_hint
in the end session requestaddLogoutHint
API toRequestParameterBuilder
and calls it onAuthorizationCodeClient.getLogoutUri()
to populate thelogout_hint
query parameter of the end session endpoint request