Authentication redirect exposes Id token
See original GitHub issueLibrary
-
msal@1.x.x
or@azure/msal@1.x.x
-
@azure/msal-browser@2.x.x
-
@azure/msal-node@1.x.x
-
@azure/msal-react@1.x.x
-
@azure/msal-angular@0.x.x
-
@azure/msal-angular@1.x.x
-
@azure/msal-angular@2.x.x
-
@azure/msal-angularjs@1.x.x
Description
I’m using the Angular MSAL library and Azure AD implicit flow to authorize users.
After signing in through the Microsoft page, I first get a redirect url that exposes the id token and other response information in it before being redirected to the provided redirect uri. This url with the token hash is then saved in the browser history, which is an obvious security risk.
So far I had no luck finding a solution to the issue anywhere.
Source
- Internal (Microsoft)
- Customer request
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Stealing OAuth Tokens With Open Redirects
The user obtains an identity assertion from the identity provider and uses that to authenticate to the service provider.
Read more >Redirect user with id_token as a parameter in redirect URL ...
I have been working with AADB2C Authentication and struggling over redirecting the user to home page with id_token as fragment in redirect ......
Read more >OpenID Connect (OIDC) authorization code flow mechanism
The Authorization Code Flow mechanism authenticates users of your web application by redirecting them to an OIDC provider, such as Keycloak, to log...
Read more >OAuth redirect after getting access token - Support
Registered a client ID with redirect_uri set to the landing ... The OAuth Login Redirect only works for grant types that include a...
Read more >Redirect with Actions
Learn how to use post-login Actions to redirect users before an authentication transaction is complete.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
🎉This issue was addressed in #3587, which has now been successfully released as
msal@v1.4.11
.🎉Handy links:
@hectormmg Sorry, I didn’t see your comment. So the fix was merged into the main branch?