-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Authentication failed: SAML login failed: ['invalid_response'] #83
Comments
Review how you build the request and be sure that endpoint that ACS endpoint that you registered at the IdP matches the URL of the view that process the SAMLResponse (acs endpoint) that uses the request object to calculate it. |
I am experiencing this issue as well. I have narrowed this issue down to where saml2 validated the response from the SAML IDP. It appears to be coming from
|
I probably spent about 6 hours debbuging this, but the issue came down to the request data (generated from python social auth SAML backend) using my local host port of '8000' instead of the https port '443'. It is odd, because the metadata generation (part of this onelogin library) generates the correct reply url. But appearently it uses a different function to construct the reply back url when making a request.
|
Guys, do you have solution for this? Also when I included the Solution? Thanks |
I am having the same issue with django/social-auth
UPDATE Okay, if the actual port is different than the port in the browser then the problem occurs.
okay |
I'm having a similar issue, but in my case its |
Hey Guys, Im also facing same issue as stated earlier by coler-j. Im using my company login as idp. But when i replace with my company entity id(https://xxx.yyy.net/metadata) and acs url(https://xxx.yyy.net/saml/acs/), its not working. But after that, im getting invalid user error. Am i missing with any attributes. |
Even I'm facing the same issue. When I do
I get the invalid response from auth.get_errors() I'm using Django 3.0+ Nginx + Gunicorn. Is there any fix for this? Thanks UPDATE: Since I was using Nginx and Gunicorn, Gunicorn was running locally so the request object's http_host was getting value localhost. So I hardcoded the http_host key's value to our URL. (example: xyz.com) and this worked.
|
I am still facing this issue
any solution around this? |
I am having the same issue with django in a kubernetes cluster. I have raised an issue here as your suggestion for using UPDATE It works after adding X-Forwarded-Port = 443 as a custom header within the [Google load balancer] (https://cloud.google.com/load-balancing/docs/custom-headers) and setting |
Using the settings below worked for me:
More info: https://docs.djangoproject.com/en/3.2/ref/settings/#use-x-forwarded-host |
I got it fixed by modifying the code in the onelogin/saml2/utils.py file. Comment out Lines 292-299: ''' if ':' in current_host: I don't know why they have code to specifically remove port information when matching the ACS path to the configured ACS value, but it was breaking a valid configuration. EDIT: At the time of this writing, they've updated the repo to no longer remove the port info, but the updated code is not released in a tagged version yet. If you're using v1.11.0, the fixed above still applies. |
Dear Team, |
I am facing this error - |
The response URL is adding a port number to the URL.
(The response was received at https://www.site.com:80/complete/saml/ instead of https://www.site.com/complete/saml/)
I am connecting to a ADFS Server. Is this a SP issue? or a IDP setting issue?
The text was updated successfully, but these errors were encountered: