(Django) Sharing authentication across two sites that are on different domains

后端 未结 4 1692
你的背包
你的背包 2020-12-24 15:18

I have two sites say foo.com and bar.com and are both Django based. Primary registration occurs on foo.com (I\'d like the main user db to be here) and I\'d like for three th

4条回答
  •  梦谈多话
    2020-12-24 15:38

    Your 3rd requirement could easily be solved by sharing the same database between the two sites (therefore having the same Users table.

    The 1st requirement is tricky because of cross domain issues (the session cookie will not be shared).

    What you are really looking for is a Single Sign On (SSO). You might consider django-openid.

提交回复
热议问题