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

USE_JWT only for Rest framework, not for /admin #120

Closed agger-magenta closed 5 years ago

agger-magenta commented 5 years ago

We're enabling SAML SSO login over a rest framework, so I set USE_JWT to True.

That's well and good. However, if I want to access the Django Admin, which will also be with SAML login to the same IDP, we do not want to use JWT. So it should ignore that case.

There should be an option to designate routes that will and will not use JWT. I'd like to hear of any workarounds that won't require me to patch views.py.

agger-magenta commented 5 years ago

This is not really a problem after all, the important thing is overriding the correct login URLs.