hi
Are there any error logs on the backend app?
hi
You can add "gt:Impersonation"
to the Permissions
of your application. We will support it in the next version.
["ept:authorization","ept:token","ept:device","ept:introspection","ept:revocation","ept:logout","gt:authorization_code","gt:implicit","gt:password","gt:refresh_token","gt:urn:ietf:params:oauth:grant-type:device_code","gt:client_credentials","gt:Impersonation","rst:code","rst:code id_token","rst:code id_token token","rst:code token","rst:id_token","rst:id_token token","rst:none","rst:token","scp:roles","scp:profile","scp:email","scp:address","scp:phone","scp:AbpAPI"]
[
"ept:authorization",
"ept:token",
"ept:device",
"ept:introspection",
"ept:revocation",
"ept:logout",
"gt:authorization_code",
"gt:implicit",
"gt:password",
"gt:refresh_token",
"gt:urn:ietf:params:oauth:grant-type:device_code",
"gt:client_credentials",
"gt:Impersonation",
"rst:code",
"rst:code id_token",
"rst:code id_token token",
"rst:code token",
"rst:id_token",
"rst:id_token token",
"rst:none",
"rst:token",
"scp:roles",
"scp:profile",
"scp:email",
"scp:address",
"scp:phone",
"scp:AbpAPI"
]
hi
Client validation failed because 'http://localhost:4200' was not a valid redirect_uri for _3M_App.
The request URI matched a server endpoint: Authorization.
The authorization request was successfully extracted: {
"response_type": "code",
"client_id": "_3M_App",
"state": "aGJOeWhrUXZqN3pXYTFrcVRYRWpydzRwcW02WkdhUlJSaVlOdThOUjRsbUMy",
"redirect_uri": "http://localhost:4200",
"scope": "offline_access openid profile email phone _3M",
"code_challenge": "7dohmnVI2zU2qvJ6W0o2crV-UUr-EXRPil8l3_HJoYw",
"code_challenge_method": "S256",
"nonce": "aGJOeWhrUXZqN3pXYTFrcVRYRWpydzRwcW02WkdhUlJSaVlOdThOUjRsbUMy",
"culture": "en",
"ui-culture": "en"
}.
Client validation failed because 'http://localhost:4200' was not a valid redirect_uri for _3M_App.
The authorization request was rejected because the redirect_uri was invalid: 'http://localhost:4200'.
However, an attempt to login results in an HTTP 400 error message (see the screenshot attached
hi
Please share the full logs of backend app. Thanks
hi
You can copy the latest code of AbpValidateClientRedirectUri
and register it.
https://github.com/abpframework/abp/blob/0dfbbc0950280c496a01925df60be1cad1793917/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/AbpOpenIddictAspNetCoreModule.cs#L120-L121
https://github.com/abpframework/abp/pull/16284
https://github.com/abpframework/abp/blob/dev/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/WildcardDomains/AbpValidateClientRedirectUri.cs
hi Dicky.tech
Can you create a new question and share more info about this error? We will refund your question count.