question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"redirect_uri must be included" error

See original GitHub issue

Hi,

I’ve added OpenIddict to an ASP.NET Identity website and now i’m trying to use that to authenticate from another website, when I redirect I get the following error

error: invalid_request error_description: redirect_uri must be included when making an OpenID Connect request

Does anyone know what is missing, here is the URL that is passed to the OpenIddict website

https://mysts/connect/authorize?client_id=48BF1BC3-CE01-4787-BBF2-0426EAD21342&response_mode=form_post&response_type=code+id_token&scope=openid+profile&state=OpenIdConnect.AuthenticationProperties%3dwcL3Mnqc6NXQp-W83Z67A5grfwsbp5CYxz9mehrrqj7nAnzja6OAFUuDuSlG73FVzrygg-nVFwmQzk45uL-HRwjPTMpwbfKyBICmVj35d5bhHbgR7wZ79jwVK0WgMrPA&nonce=636052981608509668.YzEzMGYyOGQtOGU1Yy00ZWMyLWE2NjYtMWYwODA0MmEyMjE2OWRkZGUyMjgtNTIyZi00YzdmLTkyODYtMmM1ZWVmYmE2OWFh

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinchaletcommented, Jul 28, 2016

I had redirect Uri set in the OpenIddictApplications table for the client so I didn’t think that would be needed.

It is, because it’s required by the OIDC specification: http://openid.net/specs/openid-connect-core-1_0.html#AuthRequest

For your second error, enable logging and you’ll immediately understand what’s wrong.

0reactions
kevinchaletcommented, Jul 28, 2016

Both the authorization code and implicit flows must be enabled to use the hybrid flow (code + id_token)

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 'redirect_uri' Parameter Must Be a Login Redirect URI ...
This error is returned because the value of ${redirect_uri} used in authorize request is not registered in the Open ID client in Okta,...
Read more >
Google OAuth 2 authorization - Error: redirect_uri_mismatch
The redirect URI (where the response is returned to) has to be registered in the APIs console, and the error is indicating that...
Read more >
Solved: Receiving a "redirect_uri_mismatch" error when aut...
I'm trying to use OAUTH 2.0 to authenticate/authorize. I'm testing on my local machine, where my application is running and accessible over HTTPS....
Read more >
Error AADSTS50011 the redirect URI does not match ...
This error occurs if the redirect URI (reply URL) configured in the application (code) and the Azure AD app registration don't match. When...
Read more >
Product Hunt error: The redirect uri included is not valid
When trying to connect my Product Hunt account to Zapier I get the error message “The redirect uri included is not valid.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found