identityserver4 error Invalid Invalid redirect_uri

Use https://github.com/skoruba/IdentityServer4.Admin of, identityserver4 transplantation of ABP Vnext.
Times client logs the following error (the error can not find the original, this is a find from the Internet):

identityserver4[2020-03-24] Invalid redirect_uri: http://***
fail: [0] Invalid redirect_uri: http://localhost:5001/signin-oidc { "ClientId": "client-hugo", "RedirectUri": "http://localhost:5001/signin-oidc", "AllowedRedirectUris": [], "SubjectId": "anonymous", "RequestedScopes": "", "Raw": { "client_id": "client-hugo", "redirect_uri": "http://localhost:5001/signin-oidc", "response_type": "code id_token", "scope": "openid profile email api-alumnos offline_access", "response_mode": "form_post", "nonce": "636412201009966900.ZDNmYjdmZWMtNWNlMS00ZDQyLWIxMjMtNWIzYTM4M2FhZmRhMmMxZGE2ZDUtM2M0MS00ZThiLTk4M2ItNDk2NGQ5YmZlODFj", "state": "CfDJ8J0brcCMivFPtUfbYRpOjISliA92IArZsJS1dmagQ9jYdvpmVj2ABROstPNhJyCWx8q4SntL6PXRubMgGqeUfdqWF0mNRAYifGy8OuEPZSQT295vWVfyN5gGhuvB6jQ043D14yUPLwkhS29IYfMoiliLQGatygTVnGMVJ7Bo-aV7FJcpHit-9b3RHRyaHiE0tToZdP8NxJInJ4vthIlXw1rgLjOmSqPxeN9KDfLgWrpki7XoBLkmV2K7px_GWp0ebaitkxnXTzDPg82M-nRJWfYLAXJ1nGvoZLD3GIXqFV22hDm0wmygbmRaMKezwZmHY12qr2pwa1N22aifJTZFzPY", "x-client-SKU": "ID_NET", "x-client-ver": "2.1.4.0" } } 
fail: [0] Request validation failed

 

Solution: configure client-side return address, ensure AllowedRedirectUris: value Invalid redirect_uri in: HTTP: // localhost: 5001 / signin-OIDc, the same.

At first I thought the problem was identityserver4 must use https, and thought it was IdentityServer4.Admin have verified URI.

 

Published 181 original articles · won praise 35 · views 760 000 +

Guess you like

Origin blog.csdn.net/dacong/article/details/105081939