当前位置:网站首页>SSO process analysis

SSO process analysis

2022-07-06 06:41:00 Little people actually exist

This article mainly combs the complete single sign on and logout process , The following is the basic requirements of the single point process sorted out in this paper :

  • Cross domain single point : The same domain single point is not in the scope of this paper , A single point in the same domain can pass cokie Realization .
  • Client side authentication : Support the single point server to verify the client accessing the single point , Unregistered services do not allow authentication .
  • Support single sign out : The client needs to register the logout callback . If not configured , It means that the client does not need single sign out ( That is, the user quits from the single point system without quitting the client ,SSO-SERVER Only do unified authentication for this client ).

Single point client registration

A client needs to access the single sign on system , First, you need to register at the single sign on server , Then the server generates the client for it id Configure on the client , For single point authentication .

Sign in

Access the restricted resources of the client directly without logging in

user browser CLIENT1 SSO-SERVER Access without login CLIENT1 visit CLIENT1 Limited resources Request resources Permission authentication , Not logged in 302 sso-page ?redirect=p1&client-id=c1 get:login token check , Not logged in unauth Login window Confidential information post:login Voucher verification Create a global session token Information get:ticket?client-id=1 establish ticket (c1,t1) return ticket Jump to p1?ticket=t1 authentication ticket post:ticket ?ticket=t1&client-id=c1 authentication ticket(c1,t1) Create a child session return token-c1 Create local session return token-c1 Request resources Permission authentication , Logged in Returns the resource user browser CLIENT1 SSO-SERVER

Access the client's restricted resources when logged in

user browser CLIENT2 SSO-SERVER Access when logged in CLIENT2 visit CLIENT2 Limited resources Request resources Permission authentication , Not logged in 302 sso-page ?redirect=p2&client-id=c2 get:login token check , Logged in token Information get:ticket?client-id=2 establish ticket (c2,t2) return ticket Jump to p1?ticket=t2 authentication ticket post:ticket ?ticket=t2&client-id=c2 authentication ticket(c2,t2) Create a child session return token-c2 Create local session return token-c2 Request resources Permission authentication , Logged in Returns the resource user browser CLIENT2 SSO-SERVER

Log out

The single sign out process from the client and the single sign out process from the server are actually the same , So here is only a single sign out from the client .

user browser CLIENT1 SSO-SERVER from CLIENT1-WEB sign out post:logout asynchronous post:logout radio broadcast logout Messages to clients Destroy master session Hezi session Destroy parts session logout success user browser CLIENT1 SSO-SERVER
原网站

版权声明
本文为[Little people actually exist]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060627361885.html