Thursday, March 9, 2017

Re: Redirection to SSO using Django

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

No comments:

Post a Comment