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 Angular query string is lost after redirected back. #3242
Comments
Invalid Issue Template: |
@fhljys Can you please share steps to reproduce and verbose level logs from msal? It's unclear from the stackoverflow issue linked, is this an issue with your own custom query string or the hash that contains the tokens returned from AAD? Can you clarify? |
Hi @tnorling , thanks for your prompt reply. Here is to provide more details
From 3->4, my path and query string are lost.. |
@tnorling , after more investigation, I think we found the root cause. So the issue here is why MSAL provides me an extra # after the navigation? Could you fix that? |
@fhljys Please update to the latest version of |
Thanks @jasonnutter. Verified. It works. |
Library
msal@1.4.0
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
Framework
Description
In Angular APP, hit exactly the same issue as described here.
The query string appeared for a while and then got lost.
https://stackoverflow.com/questions/63707766/capturing-query-string-before-angular-constructor-is-called
We are using 1.4.0, tried 1.4.8, same issue
Error Message
MSAL Configuration
{
auth: {
clientId: clientId,
authority: AAD_ENDPOINT + (this._tenantId || 'organizations'),
validateAuthority: true,
redirectUri: window.location.origin,
postLogoutRedirectUri: window.location.origin + baseHref,
navigateToLoginRequestUrl: true
},
cache: {
cacheLocation: window.navigator.userAgent.indexOf('Edge') > -1 ? 'localStorage' : 'sessionStorage'
},
system: {
loadFrameTimeout: 30 * 1000
},
framework: {
isAngular: true
}
}
Reproduction steps
Expected behavior
Identity Provider
Browsers/Environment
Regression
Version:
Security
Source
The text was updated successfully, but these errors were encountered: