Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Oauth Toolkit as SSO server

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.

like image 648
Viraj Kaulkar Avatar asked Nov 23 '25 18:11

Viraj Kaulkar


1 Answers

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.

like image 61
WaterGenie Avatar answered Nov 26 '25 08:11

WaterGenie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!