How to create single sign-on and profile for a network of three sites using Django?

How to create single sign-on and profile for a network of three sites using Django?

I have a network of three sites, and instead of having the user create a profile on each of the three sites, I would like for the user only to register once, and then be able to use all three.

Is there an elegant solution to this problem?

+3
source share
3 answers

Let the sites exchange databases. Therefore, they will have a common user table.

Take a look at the django site structure: http://docs.djangoproject.com/en/dev/ref/contrib/sites/

+3
source

Depends on your server (s).

? dcrodjer.

, Single Signon OAuth, .

: site1.example.com site2.example.com site3.example.com siteN.example.com

auth oauth.example.com

+1

, , , Django. - :

site1.mydomain.com site2.mydomain.com site3.mydomain.com

- mydomain.com.

, mydomain.com Django, ". mydomain.com" ( - , site1..3). , mydomain.com, .

And the easiest way to share server and session data on the server side is to make ubsites 1,2,3 use two databases, one small database shared by mydomain.com for authorization and session data, and the other for a specific site.

0
source

Source: https://habr.com/ru/post/1783561/


All Articles