You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
There are no errors but the isCallbackFromSts check inside the UrlService returns false when using hash routing
Inside the getUrlWithoutQueryParameters function it fails to correctly remove the query parameters since the query parameters are inside the window.location.hash property
Below searchParams is empty since it's all in the hash property
getUrlWithoutQueryParameters(url) {
const u = new URL(url.toString());
const keys = [];
for (const key of u.searchParams.keys()) {
keys.push(key);
}
keys.forEach((key) => {
u.searchParams.delete(key);
});
return u;
}
Steps to reproduce the behavior
Set up an angular app and configure the router to use hash location, provideRouter(routes, withHashLocation())
Then configure OAuth and make sure the redirectUri also includes /#/
Once the identity server redirects to the redirect uri, you can observe that checkAuth fails to handle the redirect since it doesn't recognize that it's a callback
A clear and concise description of what you expected to happen.
I expect that after authenticating on the identity server, it will redirect and then correctly recognize it's a callback url and finish up with the OAuth process
Additional context
No response
The text was updated successfully, but these errors were encountered:
Version
19.0.0.0
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
There are no errors but the
isCallbackFromSts
check inside the UrlService returns false when using hash routingInside the
getUrlWithoutQueryParameters
function it fails to correctly remove the query parameters since the query parameters are inside thewindow.location.hash
propertyBelow
searchParams
is empty since it's all in thehash
propertySteps to reproduce the behavior
Set up an angular app and configure the router to use hash location,
provideRouter(routes, withHashLocation())
Then configure OAuth and make sure the redirectUri also includes
/#/
Once the identity server redirects to the redirect uri, you can observe that
checkAuth
fails to handle the redirect since it doesn't recognize that it's a callbackA clear and concise description of what you expected to happen.
I expect that after authenticating on the identity server, it will redirect and then correctly recognize it's a callback url and finish up with the OAuth process
Additional context
No response
The text was updated successfully, but these errors were encountered: