-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Login failed always returned #1
Comments
First of all, thanks for checking out this package and for giving feedback! Do you have a bit more info?
|
Okay so here is my settings.py URL is I'm using python 2.7.5 I'm sure it's something simple but unfortunately i'm new to both adfs and django. Thanks for your help. |
Everything looks configured ok.
I'm setting an error message when raising the PermissionDenied exception in |
I tried all of your recommendations but still couldn't get it to work. Still the same error.
|
What happens if you manually perform the steps outlined in this blog? http://blog.scottlogic.com/2015/03/09/OAUTH2-Authentication-with-ADFS-3.0.html You can start from part D. Access Token using the authorization code your browser address bar displays on the page showing login failed. For making the requests you can user Curl or a REST client like http://restclient.net/ I'll see whether I can implement issue #2 ASAP to assist in troubleshooting. |
I've tried this manually and id didn't work, it just returned the login failed message. |
So it's working now? |
Apologies for the confusion - no it still doesn't work. When I change the redirect url in adfs to a page that doesn't attempt to use he code returned via a rest client I can then get the access token. If I do it so that it points to the correct page the token becomes invalid. I'm assuming that as its a one use code that it's being used before I can test it. |
stupid thought: are the clocks in sync between the adfs server and the machine running Django? Any way, I'll try working on the debug logging so we can narrow down the issue. |
Yes they are and are both set to UTC. That would be awesome. |
I managed to replicate your issue. Change your value of If the identifier is a URL, is sets the I'll update the documentation accordingly. The extra debugging output is on it's way. |
Okay so I've changed the target |
Still getting the same error with a new relaying party and endpoint. |
There's logging added in a separate branch of this repo. You should be able to install it like so:
You'll have to activate logging in your settings.py
|
FYI, you can now also just download v0.0.3 from https://pypi.python.org/pypi/django-auth-adfs |
I've managed to get it working now. Thanks for all your help |
Great to see you got it working. I hope the new debugging output was of any help? |
Hi, I got a similar error event in ADFS but in another context. Would you mind explaining what "my trust issuer " is. Maybe it can help me in a very difficult troubleshooting of a new ADFS installation. Thanks a lot. |
What do you refer to when you say “my trust issuer”? Where did you see it/read it? Without more context helping will be difficult. |
Sorry, it's mentioned in the reply: shadoweski commented on 22 Feb 2016 It says: Thanks |
The setting he is referring to is this one: http://django-auth-adfs.readthedocs.io/en/latest/configuration.html#issuer Also see here: http://django-auth-adfs.readthedocs.io/en/latest/adfs_config_guide.html#step-4-determine-configuration-settings |
remove paramter "resource" from authorization endpoint if version is …
* Updated to match BSD-2 Clause License Retrieved license content from: https://opensource.org/license/bsd-2-clause/ * linting
I've tried configuring this and all i get is Login failed after I've submitted my credentials to ADFS. I get t a long code response in the browser but nothing else.
The text was updated successfully, but these errors were encountered: