Creating single sign-on with django-cas and django-mama-cas

I need to create single sign-on for a django site. My search led me to django-mama-cas and django-cas-ng, but I'm not sure if I can use or use them separately or together.

The obligatory CAS_SERVER_URL parameter for django-cas-ng also confuses me, because it seems that I might need a third-party service for django-cas-ng to work.

https://github.com/jbittel/django-mama-cas , https://github.com/mingchen/django-cas-ng

+5
source share
1 answer

They work together, but not in a single Django project. On the one hand, you need to create a Django project and install django-mama-cas . Say you already installed it, and it lives in cas-server.example.com .

On the other hand, if you have another django project living at foobar.example.com , you need to modify this project by installing and configuring django-cas-ng . Here you must set CAS_SERVER_URL = "cas-server.example.com" .

So, foobar.example.com is the client, cas-server.example.com is the server.

Then, if you have another Django project, say other-project.example.com , you can also set django-cas-ng here two and use Single Sing On to sing in both projects.

+5
source

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


All Articles