Skip to content
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

sign-oidc Redirect Loop #27

Open
kkfrosty opened this issue Feb 19, 2020 · 1 comment
Open

sign-oidc Redirect Loop #27

kkfrosty opened this issue Feb 19, 2020 · 1 comment

Comments

@kkfrosty
Copy link

kkfrosty commented Feb 19, 2020

I consider this a bug in functionality as there should never get into an infinite loop. I've tried this question with IDS 4 team but they don't respond well. I've got a base asp.net core 3.1 application, trying to integrate it with Identity Server 4. Login page works, user gets authenticated. I've added code for the event handlers in
.AddOpenIdConnect("oidc", options =>

OnTicketReceived the Principal Identity is populated with claims, sub, name and a few others. User shows as authenticated. However, OnRedirectToIdentityProvider keeps firing in a loop. If you watch the browser, you see the code_challenge value constantly changing. Not sure that's an indicate or anything other than I'm stuck in an infinite loop. My first question, how can we enable some type of authentication logging to try and determine what is causing a problem with the asp.Net core Identity code? This has been a nuisance for a long time. At the very least we should be able to implement logging or debugging to try and determine why it's getting stuck in a loop and continually redirects. I just switched to trying IE 11 & Edge and sign in, get redirected back to the Signin-oidc link and I see a correlation failed message on the page. (I'm looking into that now.)

@kkfrosty
Copy link
Author

Think I found my issue. But still, leaving this open to try and determine how to debug or log this I had to define options.SignInScheme.
.AddOpenIdConnect("oidc", options =>
{
options.Authority = "https://localhost/identitycore";
options.SignInScheme = "Cookies";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant