I have two sites that are very closely linked and both are built with django. They have the same set of users.
我有两个网站非常紧密地联系在一起,都是用django构建的。它们有相同的用户集。
How would I tell on one site if the user is authenticated on the other?
如果用户在另一个站点上通过了身份验证,我如何在一个站点上进行识别?
1 个解决方案
#1
1
Use a session backend that uses a common store (a database, or redis), which is accessible to both; or openid as suggested by alf.
使用会话后端使用公共存储(数据库或redis),这两个存储都可以访问;或alf建议的openid。
#1
1
Use a session backend that uses a common store (a database, or redis), which is accessible to both; or openid as suggested by alf.
使用会话后端使用公共存储(数据库或redis),这两个存储都可以访问;或alf建议的openid。