-
Notifications
You must be signed in to change notification settings - Fork 433
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
Invalid Redirect URI on version 11 #801
Comments
Same issue on this one. Any reason why this was labeled as question? |
@damienbod can you check this bug. Or could we switch back to v10 for now? |
Hi @cvbc2010 @philippescher Have you added the silent renew URL to the STS? I added the question because reading the error message, it says that the STS server does not support the URL used for the silent renew. Could you validate that your server supports both the silent renew URL and the authorize URL? you should have 2 URLs supported which match exactly. Greetings Damien |
I receive this error when I protect the root route. In my auth guard I check via isAuthenticated$ and redirect to unauthorized, which initiate an auto login. I can also implement the auto login in the auth guard (just router navigate to autologin). In the app component.ts I have implemented the checkAuthIncludeServer(), so it's a race condition. The Guard is executed first -> redirect to unauth -> auto login (authorize()), the checkAuthIncludeServer in the app.component.ts checks via silent renew... So the redirect url does not match with the code and the identity server sends 400 bad request. 2 requests were made:
If I implement checkAuthIncludeServer() in the guard and remove it from app.component.ts, it seems to be working if I am logged in at the identity server. If I am not logged in, the observable does not complete. That's the issue #779 |
@sekoch closing this as it had an invalid redirectURL or the issue in 779 which is now fixed in version 11.1.4. The default route should not be protected with a guard. |
Describe the bug
IdentityServer4.Validation.TokenRequestValidator: Error: Invalid redirect_uri{ redirectUri = https://localhost:44308/silent-renew.html, expectedRedirectUri = https://localhost:44308 }
To Reproduce
Expected behavior
should get access token with authorization code and it should pass correct redirect uri with in the request.
I have gone through
#534 (it says it is not the correct way to implement changing redirect_uri)
and
#566
and couldn't understand what i am suppose to do for fixing the issue
Screenshots
The text was updated successfully, but these errors were encountered: