Django Oauth Toolkit as SSO server

901 views Asked by At

I want to know can we use Django oauth Toolkit (DOT) as SSO server?

I am using Django Rest Framework in backend.

Steps I need to achieve :

  1. On clicking the Login Button in the client server, it redirects to the server asking to authorise.

  2. If already logged in it will return the auth code.

  3. If not logged in open the log in prompt.

  4. On successful login step 2 will followed.

Thanks.

1

There are 1 answers

0
WaterGenie On

Yes, DOT supports OpenID Connect so you can set it up as an SSO server.

Once configured, your server should have the o/authorize endpoint where you can redirect your clients when logging in. DOT will handle the authorization request for you (step 2-4).

With the authorization code, DOT also provides the o/token endpoint for access and id tokens request as well.