-
Notifications
You must be signed in to change notification settings - Fork 10
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
OpenIdConnectProtocolException: Message contains error: 'invalid_client', error_description: 'error_description is null', error_uri: 'error_uri is null'. #1
Comments
@markpendlebury I'm getting a similar error and haven't been able to make further progress. Were you ever able to resolve this? |
The error you're getting, similar to mine, indicates you are missing a (or are submitting an incorrect) client_id. In the conctext of the readme in this repo there are a number of missing peices: Here's what i did:
Where
For Clarity, your Cognito user pool details (id and region) can be found via the console by naviagating to As for the Client ID and Secret, they can be found by navigating from the above pool page then selecting the "App Integration" tab, the last panel contains a list of your "App Client Names". On this page tyou will see "Client ID" and "Show client secret" on the top panel. Additionally, on the App Client Page, under "Hosted UI" make sure you have the correct "Allowed Callback URLs". For me i used the following patterns: Callback URLS:
Allowed Sign-out URLS:
Hope this helps |
@markpendlebury, thank you for the detailed reply. I was able to get the login part of the sample working correctly. I am however not able to get the logout functionality working as the sample is currently coded. I'm getting the following, any idea what I'm doing wrong. Do I need to modify the sample to get it working? |
tuve el mismo problema pero era algo mas simple: supongo que los datos de la cuenta AWS no son tomados desde el Appsetting.json porque no esta direccionandolo correctamente en Program.cs en mi caso decía
debiendo ser:
como estaba en Properties\launchSettings.json en el proyecto. con eso el proyecto parte correctamente. |
Following your sample i get the above mentioned error after entering my username/password into the cognito login page.
I've re-created the pool and app client numerous times incase i missed something but keep hitting the same error, is there maybe something missing from your sample?
The full exception i'm getting is;
As a side note the callback url you use is incorrect (as far as i know) the correct callback url should be: https://localhost:5001/signin-oidc
The text was updated successfully, but these errors were encountered: