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

/mellon/postResponse does not create a sesstion and the login flows entered an indefinite loop #27

Open
CHAORYU opened this issue Jul 22, 2020 · 4 comments

Comments

@CHAORYU
Copy link

CHAORYU commented Jul 22, 2020

First,I'm sorry to hear that this project was closed. Really a sad story.
And here is my question:
I'm working with the keystone federation function, and I choose the mod_auth_mellon to help keystone to support the SAML protocol.
My problem is when the flow goes to the .../mellon/postResponse,this handler doesn't create a session for the user (or to say does not set the cookie),then the flow entered into an indefinite loop between IdP and SP. I don't know why .../mellon/postResponse doesn't contains the set-cookie in its Response Header?
Help,thank you.

@CHAORYU
Copy link
Author

CHAORYU commented Jul 22, 2020

ps:this is the networking log File
Archive 20-07-22 03-29-04.txt

@CHAORYU CHAORYU changed the title /mellon/postResponse does not create a sesstion and the login flows entered a indefinite loop /mellon/postResponse does not create a sesstion and the login flows entered an indefinite loop Jul 22, 2020
@thijskh
Copy link

thijskh commented Aug 26, 2020

The project is not closed and quite alive.

After your login succeeds on postResponse you are redirected again to mellon/login. This is indeed not expected. However, this is hard to debug without any logging finromation or information about your configuration. Likely it helps to enable Mellon diagnostics. Based on the logs you can probably make a start to find out where the problem originates.

@jrajax
Copy link

jrajax commented Sep 10, 2020

May or may not be related, but I once saw similar behavior (an indefinite loop between /postResponse and /login), when the users logged in at the Idp with a username casing different from what is stored in the app behind Mellon. We were using the SAML NameId as the username in the app behind Mellon and since the Idp was case-insensitive on usernames, it happily put the wrong cased username in the SAML assertion. This resulted in the case sensitive app not finding the user and redirecting to the Idp, who found a valid session and sent the browser back to the app, etc.

@a-n-d-i
Copy link

a-n-d-i commented Oct 28, 2020

I had the same issue last week, worked fine on ubuntu 20.04, moved config to a 18.04, redirect loop. Upgraded the machine to 20.04 and it works like a charm. Maybe this helps chasing the issue down or mitigating it.

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

4 participants