Hi,
You probably need to set LOGIN_REDIRECT_URL [1] to point correct url. What happens next depends your SSO tools and how they handle passing logged in user information to your app.
[1]
https://docs.djangoproject.com/en/1.10/ref/settings/#login-redirect-url
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be86285c-7e27-4792-9df2-f9703d557921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Jani Tiainen
On Wednesday 08 March 2017 05:26:02 Arun S wrote:
> My Project, i would want to redirect login page to a SSO page.
> and handle redirection in Django.
Don't solve what others already did for you:
https://djangopackages.org/packages/p/django-allauth/
--
Melvyn Sopacua
On Wednesday 08 March 2017 20:10:26 Arun S wrote:
> Using the django_allauth package, i could see it supports most of the
> social accounts that can use used for redirection.
> But what if i want to add a custom link within a corporate account.???
If that corporate account follows Oauth/Oauth2 then you can use the framework to write your own provider. But, if you don't plan on adding anything else down the road, it may be overkill.
The principle with any SSO redirect is the same though:
0) Configure at the SSO where you receive the result of the login attempt (say /login/success)
1) Redirect the login to the SSO
2) At /login/success store the data you receive and mark the user logged in.
The data you receive at /login/success should identify your user.
--
Melvyn Sopacua
Hi,
My Project, i would want to redirect login page to a SSO page.
and handle redirection in Django.