A single logout implementation method in heterogeneous cross-domain web applications
An implementation method and web application technology, applied in the field of web applications, can solve the problems of inability to cross-domain, low logout efficiency, and no support for cross-domain sending requests, and achieve the effect of simple technical implementation and high logout efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] A method for implementing single logout in a heterogeneous cross-domain Web application, the implementation process of the method is as follows:
[0031] 1. Each integrated terminal of single logout shall provide its own logout URL (according to actual needs, not necessary).
[0032] 2. Register and save the logout URL of the integrated terminal at the integrated terminal;
[0033] 3. The integrated terminal provides a unified logout URL, which accepts a parameter callback_url (rebound address);
[0034] 4. All the logout links on the pages of the integrated end and the integrated end are all linked to the unified logout URL of the integrated end;
[0035] 5. When requesting a unified logout URL, the backend of the integration end first performs the logout operations of the integration end (logout session, clear cookies, etc.), and then responds to the client in a certain format with all the logout URLs of the integrated end saved by the integration end ( ...
Embodiment 2
[0037] On the basis of Embodiment 1, the method described in this embodiment responds to the client (browser) by dynamically responding to a piece of html code, and the html features are as follows:
[0038] The html code contains a hidden ;
[0039] Should contains several label, each The src attribute of the tag points to a logout URL of the integrated side;
[0040] The onload event triggers a javascript function, which is mainly responsible for the page jump after logout (jump to callback_url).
Embodiment 3
[0042] Such as figure 1 As shown, on the basis of embodiment 2, the specific operation process of the method described in this embodiment is as follows:
[0043] 1. The client browser sends a unified logout request to the integration terminal;
[0044] 2. After the integration end executes the local logout operation, it responds with a piece of html code containing the logout URL of each integrated end;
[0045] 3. Client browser through The tag automatically sends a logout request to each integrated end;
[0046] 4. Each integrated terminal completes the logout operation.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
