fangli / django-saml2-auth

Django SAML2 Authentication Made Easy. Easily integrate with SAML2 SSO identity providers like Okta
Other
504 stars 223 forks source link

Cannot login with Okta setup #103

Open igonnasay opened 5 years ago

igonnasay commented 5 years ago

Wried, after configuration with OKTA, if I had logged in my application (not using smal), then I can login with SAML from OKta and automatically change to the Okta user correctly. However, if i had not logged in, when i try login with SMAL from Okta then: 1) if my urls.py with setting: url(r'^accounts/login/$', django_saml2_auth.views.signin), my application will goto {domain}/login/ page without SAML, I need to type username and password for login.

2) if my urls.py with setting: url(r'^login/$', django_saml2_auth.views.signin), this is an infinate loop between /login /acs.

BTW, my application is https://github.com/hhyo/Archery.

Could you point out what's issue?

igonnasay commented 5 years ago

When i use this setting: url(r'^login/$', django_saml2_auth.views.signin), from OKTA backend, i can see "User single sign on to app (success)". So I think this url mapping should be correct. However, the infinate redirection loop is crazy ...

amit17051980 commented 5 years ago

Did you manage to make it work? Please look into my code, it works fine in the current version. Let me know if you need any support with this.

https://github.com/amit17051980/django-fundamentals