0

Thank you for taking a look at this question.

I have 2 separate Django projects which are totally independent and host the 2 projects through nginx such as:

http://xxx.xx.x.xxx:8080/ => Django Project A

http://xxx.xx.x.xxx:8000/ => Django Project B

The 2 projects are integrated in such a way that the projects share the same user table of PostgreSQL. Each of the projects has its own login page but I can use the same login credentials to sign in.

The thing is, the 2 projects cannot share login sessions(or cookies?) with each other. So I have to sign in the project A first and later sign in the project B once more(or vice versa) with the same login information.

I've heard that I need to use SSO(Single Sign On) to solve this problem but none of solutions below was able to tackle the issue.

  • django-simple-sso
  • django-cas-provider/consumer
  • MamaCAS
  • Tried to tweak session options on settings.py (e.g. SESSION_COOKIE_DOMAIN)

There could be lack of my understanding of the solutions above but most of the solutions were outdated or not fit for this case.

How could I deal with this issue? Have you solved similar issues?

Jinho Jang
  • 13
  • 4

0 Answers0