You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i use SPA i want to generate token, but when i use web i want to navigate to the web home page.
In summary i want to switch ON if i login with Single Page Application (need Token redirect), switch OFF when i login from web (need login into django).
AFAIK, django settings are static, so there seems to be no way around it. You can't mix these two: SPA with Django login, or let the user switch this on and off via a parameter. I was going to suggest changing this in the TRIGGER.BEFORE_LOGIN hook function, but a copy of the settings.SAML2_AUTH is always received by dictor while setting the use_jwt variable, hence changing it inside that hook has no effect.
3)Into users.views_grafana_saml2 copy django_saml2_auth.views.acs and django_saml2_auth.views.signin methods.
4)Into users.views_grafana_saml2.acs FORCE TO USE JWT TOKEN, ALWAYS.
Hi @mostafa,
thanks for support this library!
When i use SPA i want to generate token, but when i use web i want to navigate to the web home page.
In summary i want to switch ON if i login with Single Page Application (need Token redirect), switch OFF when i login from web (need login into django).
How can i do that?
Thanks!
django-saml2-auth/django_saml2_auth/views.py
Lines 133 to 166 in 11b97be
The text was updated successfully, but these errors were encountered: