某网站A的用户登录之后,点击我的网站B的链接,也能登录状态。相当于网站A的账号在我的网站B的也能用,登陆状态也同步
脑子现在一团浆糊,不知道有没有描述清楚
望大神提供一下思路。网上查了一下,大概有两种方法
开发认证服务器
跨域cookie
都看的云里雾里不知道什么方法比较简单易用
问了问大神,说可以设置秘钥,用户点击网站B的时候把秘钥和用户ID加密当做参数传递
人生最曼妙的风景,竟是内心的淡定与从容!
One end successfully logs in and calls the session generation interface of other systems;
This seems to be oAuth2. If you call it directly to generate a session, you probably need to do a redirect to set the cookie
The simplest single sign-on is to use cookies, although it is not secure.
Two websites with the same main domain name can use cookies to achieve single sign-in. If they have different domain names, they need to share an authentication server.
CAS can’t meet your needs? ?
One end successfully logs in and calls the session generation interface of other systems;
This seems to be oAuth2. If you call it directly to generate a session, you probably need to do a redirect to set the cookie
The simplest single sign-on is to use cookies, although it is not secure.
Two websites with the same main domain name can use cookies to achieve single sign-in. If they have different domain names, they need to share an authentication server.
CAS can’t meet your needs? ?