Double identity verification device and method
Through the dual identity authentication device, the browser-side JS module and the traffic gateway module are used to realize dual identity authentication of the traffic gateway and business applications, solving the problems of traffic control and identity authentication between applications after integration, and achieving senseless integration and efficient security verification. , reducing the application modification requirements.
Patent Information
- Application Number
- CN202410876047.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-02
AI Technical Summary
After an enterprise integrates multiple business applications into a unified platform, traffic control and authentication between applications become problems. Traditional solutions require centralized traffic management and unified user identity services, resulting in complex technology, high costs, and affecting user experience.
Use a dual identity authentication device, including browser-side JS module, traffic gateway and identity verification module, to achieve dual identity authentication of the traffic gateway and business applications through one login, reduce application front-end modifications, and use F5 local traffic manager and service worker agent Perform traffic routing and request forwarding to achieve senseless integration.
It achieves effective centralized control and security verification of application traffic, reduces the burden of transforming business applications, maintains the flexibility and efficiency of integration, supports application integration of different user systems, and improves the convenience and security of integration.
Smart Images

Figure CN118413403B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of system identity authentication, and in particular to a dual identity authentication device and method. Background Art
[0002] In the context of modern digital transformation, a key challenge faced by enterprises or groups when integrating their external business applications is how to effectively manage and protect application traffic while ensuring security and user experience. With the diversification and Internetization of enterprise services, many large group companies have multiple external business applications. In order to improve user experience and management efficiency, these applications often need to be integrated into a unified external platform. However, this integration process is accompanied by several significant technical challenges.
[0003] First, when the group's multiple business applications are integrated into a unified platform, traffic control between applications becomes a problem. Traditionally, these independent applications may manage their own traffic, but once integrated, a centralized traffic management system is needed to ensure overall stability and security and prevent unauthorized access or malicious attacks.
[0004] Secondly, although the existing traffic gateway technology can achieve basic traffic routing and partial identity authentication, it usually requires all integrated applications to use a unified user identity service, which is not always feasible in actual operations. Because different applications may have their own independent user management systems, requiring them to migrate all to a unified system is not only technically complex and costly, but may also affect the user experience.
[0005] In addition, the authentication and security measures during the integration process often require a lot of changes to the application front-end, especially the front-end routing, which increases the difficulty of development and maintenance. Traditional solutions often require developers to go deep into the front-end code of the application and make customized adjustments, which is time-consuming and may introduce new errors.
[0006] In view of the above problems, there is an urgent need for an innovative technical solution that can not only achieve effective centralized control and security verification of application traffic, but also reduce the burden of transformation of the application itself, and maintain the flexibility and efficiency of integration. The present invention utilizes the dual identity authentication mechanism of the traffic gateway and the platform, as well as the lightweight proxy technology of the front end, to achieve seamless integration of applications, solving the core problems in the above background technology. With one login, users can complete dual identity authentication with the traffic gateway and the application at the same time, and there is no need to make substantial front-end modifications to the original business application, which significantly improves the convenience and security of application integration. Summary of the invention
[0007] In order to achieve effective centralized control and security verification of application traffic, reduce the burden of transformation on the application itself, and maintain the flexibility and efficiency of integration, the present invention proposes a dual identity authentication device, which is applied to an integrated management platform integrating multiple business applications; the dual identity authentication device includes:
[0008] The browser side, the JS module of the front end of the integrated management platform, the gateway module containing multiple traffic gateways, the identity authentication module of the back end of the integrated management platform and the integrated business applications; among them:
[0009] The browser is used to initiate a login request or a business application jump request to the JS module;
[0010] The JS module is used to forward the login request to the identity authentication module through the directed traffic gateway in the gateway module;
[0011] The identity authentication module is used to verify the user information of the login request, and after the verification is passed, it requests the corresponding traffic gateway to obtain a gateway identity token bound to the corresponding user information, and after the request is successful, it returns the gateway identity token to the browser end to complete the gateway identity authentication;
[0012] The traffic gateway is used to return a gateway identity token to the identity authentication module based on the request sent by the identity authentication module;
[0013] The identity authentication module is also used to generate a user information ticket through the corresponding user information and send it to the corresponding business application when the browser initiates a business application jump request;
[0014] The JS module is also used to send a business application jump request carrying a gateway identity token to the directed traffic gateway in the gateway module;
[0015] The traffic gateway is also used to verify the gateway identity token in the business application jump request, and forward the business application jump request to the corresponding business application after successful verification;
[0016] The business application is used to obtain an application access token from the identity authentication module when receiving a business application jump request, obtain user information from the identity authentication module through the application access token and the user information ticket, and verify the user information. If the verification is successful, an application identity token assembled with the user information is generated, and the business application jump request is implemented. At the same time, the application identity token is returned to the browser side to complete the application identity authentication.
[0017] Further, the gateway module also includes: an F5 local traffic manager;
[0018] The JS module is specifically used to forward the login request or business application jump request initiated by the browser to the F5 local traffic manager through the service worker proxy when receiving the login request or business application jump request initiated by the browser;
[0019] The F5 local traffic manager is used to direct the traffic gateway according to the selection policy configured therein, and send the received login request or business application jump request to the directed traffic gateway.
[0020] Furthermore, the business application specifically includes: an application front end and an application back end;
[0021] The application front end is used to receive the user information ticket sent by the identity authentication module and send it to the application back end;
[0022] The application backend is used to obtain an application access token from the identity authentication module when receiving a business application jump request, obtain user information from the identity authentication module through the application access token and the user information ticket, and verify the user information. If the verification is successful, an application identity token assembled with the user information is generated, and the application identity token is returned to the browser end;
[0023] The application front end is also used to implement the business application jump request after the application back end is verified.
[0024] The present invention also proposes a dual identity authentication method, which is applied to a dual identity authentication device, comprising:
[0025] Initiate a login request to the JS module through the browser;
[0026] Forward the login request to the authentication module using the directed traffic gateway through the JS module;
[0027] The user information of the login request is verified through the identity authentication module. After the verification is passed, the corresponding traffic gateway is requested to bind the gateway identity token with the corresponding user information. After the request is successful, the gateway identity token is returned to the browser to complete the gateway identity authentication;
[0028] Initiate a business application jump request to the JS module through the browser side; when the business application jump request is initiated on the browser side, the identity authentication module generates a user information ticket based on the corresponding user information and sends it to the corresponding business application; the business application jump request includes a gateway identity token;
[0029] Send a business application redirect request to the directed traffic gateway through the JS module;
[0030] Verify the gateway identity token in the business application jump request through the directed traffic gateway, and forward the business application jump request to the corresponding business application after successful verification;
[0031] The business application obtains the application access token from the identity authentication module, obtains the user information from the identity authentication module through the application access token and the user information ticket, and verifies the user information. If the verification passes, an application identity token assembled with the user information is generated, and the business application jump request is implemented. At the same time, the application identity token is returned to the browser to complete the application identity authentication.
[0032] Furthermore, the application identity authentication specifically includes:
[0033] Receive the user information ticket sent by the identity authentication module through the application front end, and send it to the application back end;
[0034] Obtain an application access token from the authentication module through the application backend;
[0035] Obtain user information from the authentication module using the application access token and user information ticket through the application backend;
[0036] The user information is verified through the application backend. If the verification is successful, an application identity token assembled with the user information is generated and returned to the browser. At the same time, the business application jump request is implemented through the application frontend.
[0037] Furthermore, the JS module uses the directed traffic gateway to forward the login request to the identity authentication module, specifically:
[0038] Use the service worker proxy through the JS module to forward the login request to the F5 local traffic manager;
[0039] The F5 local traffic manager uses its configured selection strategy to direct the traffic gateway and sends the received login request to the directed traffic gateway;
[0040] Forwarding the login request to the identity authentication module using routing rules through a traffic gateway;
[0041] The JS module is used to send a business application redirection request to the directed traffic gateway, specifically:
[0042] Use the service worker proxy through the JS module to forward the business application jump request to the F5 local traffic manager;
[0043] The F5 local traffic manager uses its configured selection policy to direct the traffic gateway and sends the received business application jump request to the directed traffic gateway.
[0044] Furthermore, obtaining the application access token from the identity authentication module through the application backend specifically includes:
[0045] Obtain an application access token from the authentication module using the API key through the application backend;
[0046] The API key pair is verified by the identity authentication module, and if the verification is successful, an application access token is returned to the application backend; the API key pair is the application ID and application key generated by the identity authentication module to the application backend.
[0047] Furthermore, the dual identity authentication method further includes:
[0048] Initiate a business application request to the JS module through the browser; the business application request includes a gateway identity token and an application identity token;
[0049] Use the service worker proxy to pre-process business application requests through the JS module, and forward the processed business application requests to the F5 local traffic manager;
[0050] The F5 local traffic manager uses its configured selection policy to direct the traffic gateway and sends the received business application request to the directed traffic gateway;
[0051] Verify the gateway identity token in the business application request through the directed traffic gateway, and forward the business application request to the application backend of the corresponding business application after successful verification;
[0052] Verify the application identity token in the business application request through the application backend, and if the verification is successful, execute the business logic corresponding to the business application request, and return response information to the corresponding traffic gateway; the response information includes a response status code; the response status code is used to indicate whether the application identity token verification is successful or not;
[0053] The response status code is verified through the traffic gateway. If the status code is a successful verification, the response information is returned to the browser. If the status code is a failed verification, the login is exited.
[0054] Compared with the prior art, the present invention has at least the following beneficial effects:
[0055] (1) In the present invention, the JS module uses the directed traffic gateway to forward the login request to the identity authentication module; the identity authentication module verifies the user information of the login request, and after the verification is successful, the corresponding traffic gateway is requested to obtain the gateway identity token bound to the corresponding user information, and after the request is successful, the gateway identity token is returned to the browser side to complete the gateway identity authentication; the browser side initiates a business application jump request to the JS module; the JS module sends the business application jump request to the directed traffic gateway; the directed traffic gateway verifies the gateway identity token in the business application jump request, and after the verification is successful, the business application jump request is forwarded to the corresponding business application; the business application verifies the user information, and if the verification is successful, an application identity token is generated, and the business application jump request is realized, and the application identity token is returned to the browser side to complete the application identity authentication; that is, the present invention completes the dual identity authentication of the traffic gateway and the business application through one login, which not only realizes the effective centralized control and security verification of the business application traffic, but also reduces the transformation burden of the business application itself, while maintaining the flexibility and efficiency of the integration, and realizing the seamless integration of the business application;
[0056] (2) When facing a multi-user system (i.e., different applications correspond to different user management systems), the present invention realizes the integration of various business applications with different user systems on the same platform (integrated management platform) through a double identity authentication method, thereby improving the degree of freedom of the integrated management platform in business application integration;
[0057] (3) The present invention realizes dual identity authentication of the traffic gateway and business applications through the JS module and identity authentication module and the traffic gateway at the front end of the integrated management platform, thereby reducing the invasive modification requirements required when integrating business applications into the same platform and improving the convenience of the integrated management platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 is an interaction sequence diagram of a dual authentication device;
[0059] Figure 2 This is an interactive flow chart for application authentication. DETAILED DESCRIPTION
[0060] The following are specific embodiments of the present invention and the accompanying drawings to further describe the technical solution of the present invention, but the present invention is not limited to these embodiments.
[0061] Embodiment 1
[0062] In order to complete the dual identity authentication of the traffic gateway and the business application through a single login, the present invention proposes a dual identity authentication device, which is applied to an integrated management platform integrating multiple business applications; Figure 1 As shown, the dual identity authentication device includes:
[0063] The browser side, the JS module of the front end of the integrated management platform, the gateway module containing multiple traffic gateways, the identity authentication module of the back end of the integrated management platform and the integrated business applications; among them:
[0064] The browser is used to initiate a login request or a business application jump request to the JS module;
[0065] The JS module is used to forward the login request to the identity authentication module through the directed traffic gateway in the gateway module;
[0066] The traffic gateway forwards the login request to the identity authentication module based on the routing rules;
[0067] The identity authentication module is used to verify the user information of the login request, and after the verification is passed, it requests the corresponding traffic gateway to obtain a gateway identity token bound to the corresponding user information, and after the request is successful, it returns the gateway identity token to the browser end to complete the gateway identity authentication;
[0068] It should be noted that the user must first log in to the integrated management platform. Therefore, the user information of the login request needs to be verified through the identity authentication module. In this embodiment, the integrated management platform is logged in by scanning the code, and the identity authentication module is used to implement unified identity authentication for users in different user management systems.
[0069] The traffic gateway is used to return a gateway identity token to the identity authentication module based on the request sent by the identity authentication module;
[0070] The identity authentication module is also used to generate a user information ticket through the corresponding user information and send it to the corresponding business application when the browser initiates a business application jump request;
[0071] The JS module is also used to send a business application jump request carrying a gateway identity token to the directed traffic gateway in the gateway module;
[0072] The gateway module also includes: an F5 local traffic manager;
[0073] The JS module is specifically used to forward the login request or business application jump request initiated by the browser to the F5 local traffic manager through the service worker proxy when receiving the login request or business application jump request initiated by the browser;
[0074] The F5 local traffic manager is used to direct the traffic gateway according to the selection policy configured therein, and send the received login request or business application jump request to the directed traffic gateway.
[0075] The traffic gateway is also used to verify the gateway identity token in the business application jump request, and forward the business application jump request to the corresponding business application after successful verification;
[0076] The business application is used to obtain an application access token from the identity authentication module when receiving a business application jump request, obtain user information from the identity authentication module through the application access token and the user information ticket, and verify the user information. If the verification is successful, an application identity token assembled with the user information is generated, and the business application jump request is implemented. At the same time, the application identity token is returned to the browser side to complete the application identity authentication.
[0077] The business application specifically includes: an application front end and an application back end;
[0078] The application front end is used to receive the user information ticket sent by the identity authentication module and send it to the application back end;
[0079] The application backend is used to obtain an application access token from the identity authentication module when receiving a business application jump request, obtain user information from the identity authentication module through the application access token and the user information ticket, and verify the user information. If the verification is successful, an application identity token assembled with the user information is generated, and the application identity token is returned to the browser end;
[0080] The application front end is also used to implement a business application jump request (such as jumping to a business application interface after logging in) after the application back end is verified.
[0081] In the present invention, business applications do not need to use a unified user identity service. The innovation of the present invention is that it solves this limitation in traditional integration, that is, it does not require all integrated business applications to use a unified user identity service system. The present invention implements double-layer identity authentication through an intermediate layer (JS module and identity authentication module at the front end of the traffic gateway and the integrated management platform), allowing various business applications with different user systems to be integrated on the same platform. Specifically, when a user logs in to the integrated management platform for the first time, the platform will request a gateway identity token (Token A) bound to user information through the identity authentication RESTful API interface of the traffic gateway, and store it on the browser side. When the user continues to click on the integrated business application (generating a business application jump request), the application front end will receive a user information ticket (Ticket), and then the application back end will interact with the identity authentication module to obtain the application identity token (Token B). After obtaining Token A and Token B, the user's request in the business application will be proxied by the JS module, and each request will carry these two tokens to complete the identity authentication of the traffic gateway (Token A) and the identity authentication of the business application (Token B) respectively.
[0082] Embodiment 2
[0083] like Figure 1 As shown, the present invention also proposes a dual identity authentication method, which is applied to a dual identity authentication device, comprising:
[0084] Initiate a login request to the JS module through the browser;
[0085] The JS module uses the directed traffic gateway to forward the login request to the authentication module, specifically:
[0086] Use the service worker proxy through the JS module to forward the login request to the F5 local traffic manager;
[0087] The F5 local traffic manager uses its configured selection strategy (such as load balancing strategy) to direct the traffic gateway and sends the received login request to the directed traffic gateway;
[0088] Forwarding the login request to the identity authentication module using routing rules through a traffic gateway;
[0089] It should be noted that routing rules are a set of definitions that describe how a request should be processed when it meets certain conditions (such as the URL path of the request, HTTP method, request header, request body content, cookies, etc.). These rules determine the direction of traffic. When a request arrives at the traffic gateway, the traffic gateway matches it with the configured routing rules based on the characteristics of the request. This may include checking whether the URL path of the request matches the path template defined by a rule, or checking whether specific fields and their values exist in the request header. Once a request successfully matches a routing rule, the traffic gateway forwards the request to the corresponding backend service (such as the identity authentication module in this embodiment) according to the target URI (Uniform Resource Identifier) specified by the rule. The target URI can be a specific server address, service name, load balancer address, or other gateway.
[0090] The user information of the login request is verified through the identity authentication module. After the verification is passed, the corresponding traffic gateway is requested to obtain the gateway identity token bound to the corresponding user information. After the request is successful, the gateway identity token is returned to the browser to complete the gateway identity authentication. Specifically, after the request is successful, the gateway identity token is placed as a payload in the response and returned to the browser through the corresponding traffic gateway, F5 local traffic manager, and JS module in sequence. What needs to be explained here is that when passing through the JS module, the JS module will parse the gateway identity token, that is, token A returned from the response, and then store it in the cache of the corresponding network domain on the browser.
[0091] Initiate a business application jump request to the JS module through the browser side; when the business application jump request is initiated on the browser side, the identity authentication module generates a user information ticket based on the corresponding user information and sends it to the corresponding business application; the business application jump request includes a gateway identity token;
[0092] Send a business application redirect request to the directed traffic gateway through the JS module; specifically:
[0093] Use the service worker proxy through the JS module to forward the business application jump request to the F5 local traffic manager;
[0094] The F5 local traffic manager uses its configured selection policy to direct the traffic gateway and sends the received business application jump request to the directed traffic gateway.
[0095] It should be noted that the traffic gateway corresponding to the login request (set as traffic gateway A) and the traffic gateway corresponding to the business application jump request (set as traffic gateway B) are not necessarily the same, but because the gateway identity token is shared among multiple traffic gateways, even if they are not the same traffic gateway, traffic gateway B can verify the gateway identity token in the business application jump request.
[0096] The directed traffic gateway verifies the gateway identity token Token A in the business application jump request, and forwards the business application jump request to the corresponding business application after successful verification;
[0097] The business application obtains the application access token from the identity authentication module, obtains the user information from the identity authentication module through the application access token and the user information ticket, and verifies the user information. If the verification passes, an application identity token Token B assembled with the user information is generated, and the business application jump request is implemented. At the same time, the application identity token is returned to the browser to complete the application identity authentication.
[0098] It should be noted that returning the application identity token to the browser side specifically means: returning the response information to the browser side through the corresponding traffic gateway and F5 local traffic manager in turn; the response information includes the verification status code, or the verification status code and the application identity token Token B. It should be explained here that when the user information is verified, the response information includes the verification status code and the application identity token Token B, and when the verification fails, the response information does not include the application identity token Token B; the verification status code is used to indicate whether the user information is verified or not; therefore, when passing through the traffic gateway, the traffic gateway will verify the "verification status code" (i.e., the http response status code). If it is a verification status code, it will continue to return the response information to the F5 local traffic manager, and if it is a verification failure status code, the login will be jumped out.
[0099] like Figure 2 As shown, the application identity authentication specifically includes:
[0100] Receive the user information ticket sent by the identity authentication module through the application front end, and send it to the application back end;
[0101] Obtain an application access token from the authentication module through the application backend, including:
[0102] Obtain an application access token from the authentication module using the API key through the application backend;
[0103] The API key pair is verified by the identity authentication module, and if the verification is successful, an application access token is returned to the application backend; the API key pair is the application ID and application key generated by the identity authentication module to the application backend.
[0104] The application backend uses the application access token and user information ticket to obtain user information from the identity authentication module. If the corresponding user information can be obtained, it means that the verification is successful;
[0105] The user information is verified through the application backend. If the verification is successful, an application identity token assembled with the user information is generated and returned to the browser. At the same time, the business application jump request is implemented through the application frontend. It should be noted that since the business application has its own user management system, after obtaining the user information, it is necessary to verify whether the user information is correct through the application backend.
[0106] The dual identity authentication method further comprises:
[0107] Initiate a business application request to the JS module through the browser; the business application request includes a gateway identity token and an application identity token;
[0108] Use the service worker proxy to pre-process business application requests through the JS module, and forward the processed business application requests to the F5 local traffic manager;
[0109] It should be noted that after the user enters the integrated business application, in order to avoid damage and intrusive modification to the original routes of the original business application front-end, the JS module will use the browser's service worker standard interface to intercept the requests initiated by the user, and automatically complete all subsequent request paths on the business application based on the path feature " / zgtapp / abc / " when the user first jumps into the business application page (i.e. preprocess the business application requests), so that all requests initiated by the business application pass through the traffic gateway and comply with relevant routing rules.
[0110] The F5 local traffic manager uses its configured selection policy to direct the traffic gateway and sends the received business application request to the directed traffic gateway;
[0111] Verify the gateway identity token A in the business application request through the directed traffic gateway, and forward the business application request to the application backend of the corresponding business application after successful verification;
[0112] Verify the application identity token Token B in the business application request through the application backend. If the verification is successful, execute the business logic corresponding to the business application request and return response information to the corresponding traffic gateway; the response information includes a response status code; the response status code is used to indicate whether the application identity token verification is successful or not;
[0113] The response status code is verified through the traffic gateway. If the status code is a successful verification, the response information is returned to the browser through the F5 local traffic manager. If the status code is a failed verification, the login is exited.
[0114] In the present invention, a login request is forwarded to an identity authentication module by using a directed traffic gateway through a JS module; the user information of the login request is verified through the identity authentication module, and after the verification is passed, a gateway identity token bound with the corresponding user information is requested from the corresponding traffic gateway, and after the request is successful, the gateway identity token is returned to the browser side to complete the gateway identity authentication; a business application jump request is initiated to the JS module through the browser side; a business application jump request is sent to the directed traffic gateway through the JS module; the gateway identity token in the business application jump request is verified through the directed traffic gateway, and after the verification is successful, the business application jump request is forwarded to the corresponding business application; the user information is verified through the business application, and an application identity token is generated if the verification is passed, and the business application jump request is realized, and the application identity token is returned to the browser side to complete the application identity authentication; that is, the present invention completes the dual identity authentication of the traffic gateway and the business application through one login, which not only realizes the effective centralized control and security verification of the business application traffic, but also reduces the transformation burden of the business application itself, while maintaining the flexibility and efficiency of the integration, and realizing the seamless integration of the business application.
[0115] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0116] In addition, in the present invention, descriptions such as "first", "second", "one", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0117] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0118] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
Claims
1. A dual identity authentication device, characterized in that: Applied to a comprehensive management platform integrating multiple business applications; the dual identity authentication device includes: The browser side, the JS module of the front end of the integrated management platform, the gateway module containing multiple traffic gateways, the identity authentication module of the back end of the integrated management platform and the integrated business applications; among them: The browser is used to initiate a login request or a business application jump request to the JS module; The JS module is used to forward the login request to the identity authentication module through the directed traffic gateway in the gateway module; The identity authentication module is used to verify the user information of the login request, and after the verification is passed, it requests the corresponding traffic gateway to obtain a gateway identity token bound to the corresponding user information, and after the request is successful, it returns the gateway identity token to the browser end to complete the gateway identity authentication; The traffic gateway is used to return a gateway identity token to the identity authentication module based on the request sent by the identity authentication module; The identity authentication module is also used to generate a user information ticket through the corresponding user information and send it to the corresponding business application when the browser initiates a business application jump request; The JS module is also used to send a business application jump request carrying a gateway identity token to the directed traffic gateway in the gateway module; The traffic gateway is also used to verify the gateway identity token in the business application jump request, and forward the business application jump request to the corresponding business application after successful verification; The business application is used to obtain an application access token from the identity authentication module when receiving a business application jump request, obtain user information from the identity authentication module through the application access token and the user information ticket, and verify the user information. If the verification is successful, an application identity token assembled with the user information is generated, and the business application jump request is implemented. At the same time, the application identity token is returned to the browser side to complete the application identity authentication.
2. A dual identity authentication device according to claim 1, characterized in that: The gateway module also includes: an F5 local traffic manager; The JS module is specifically used to forward the login request or business application jump request initiated by the browser to the F5 local traffic manager through the service worker proxy when receiving the login request or business application jump request initiated by the browser; The F5 local traffic manager is used to direct the traffic gateway according to the selection policy configured therein, and send the received login request or business application jump request to the directed traffic gateway.
3. A dual identity authentication device according to claim 2, characterized in that: The business application specifically includes: an application front end and an application back end; The application front end is used to receive the user information ticket sent by the identity authentication module and send it to the application back end; The application backend is used to obtain an application access token from the identity authentication module when receiving a business application jump request, obtain user information from the identity authentication module through the application access token and the user information ticket, and verify the user information. If the verification is successful, an application identity token assembled with the user information is generated, and the application identity token is returned to the browser end; The application front end is also used to implement the business application jump request after the application back end is verified.
4. A dual identity authentication method, characterized in that: For dual authentication devices, including: Initiate a login request to the JS module through the browser; Forward the login request to the authentication module using the directed traffic gateway through the JS module; The user information of the login request is verified through the identity authentication module. After the verification is passed, the corresponding traffic gateway is requested to bind the gateway identity token with the corresponding user information. After the request is successful, the gateway identity token is returned to the browser to complete the gateway identity authentication; Initiate a business application jump request to the JS module through the browser side; when the business application jump request is initiated on the browser side, the identity authentication module generates a user information ticket based on the corresponding user information and sends it to the corresponding business application; the business application jump request includes a gateway identity token; Send a business application redirect request to the directed traffic gateway through the JS module; Verify the gateway identity token in the business application jump request through the directed traffic gateway, and forward the business application jump request to the corresponding business application after successful verification; The business application obtains the application access token from the identity authentication module, obtains the user information from the identity authentication module through the application access token and the user information ticket, and verifies the user information. If the verification passes, an application identity token assembled with the user information is generated, and the business application jump request is implemented. At the same time, the application identity token is returned to the browser to complete the application identity authentication.
5. A dual identity authentication method according to claim 4, characterized in that: The application identity authentication specifically includes: Receive the user information ticket sent by the identity authentication module through the application front end, and send it to the application back end; Obtain an application access token from the authentication module through the application backend; Obtain user information from the authentication module using the application access token and user information ticket through the application backend; The user information is verified through the application backend. If the verification is successful, an application identity token assembled with the user information is generated and returned to the browser. At the same time, the business application jump request is implemented through the application frontend.
6. A dual identity authentication method according to claim 5, characterized in that: The JS module uses the directed traffic gateway to forward the login request to the authentication module, specifically: Use the service worker proxy through the JS module to forward the login request to the F5 local traffic manager; The F5 local traffic manager uses its configured selection strategy to direct the traffic gateway and sends the received login request to the directed traffic gateway; Forwarding the login request to the identity authentication module using routing rules through a traffic gateway; The JS module is used to send a business application redirection request to the directed traffic gateway, specifically: Use the service worker proxy through the JS module to forward the business application jump request to the F5 local traffic manager; The F5 local traffic manager uses its configured selection policy to direct the traffic gateway and sends the received business application jump request to the directed traffic gateway.
7. A dual identity authentication method according to claim 6, characterized in that: The step of obtaining an application access token from an identity authentication module through the application backend specifically includes: Obtain an application access token from the authentication module using the API key through the application backend; The API key pair is verified by the identity authentication module, and if the verification is successful, an application access token is returned to the application backend; the API key pair is the application ID and application key generated by the identity authentication module to the application backend.
8. A dual identity authentication method according to claim 6, characterized in that: The dual identity authentication method further comprises: Initiate a business application request to the JS module through the browser; the business application request includes a gateway identity token and an application identity token; Use the service worker proxy to pre-process business application requests through the JS module, and forward the processed business application requests to the F5 local traffic manager; The F5 local traffic manager uses its configured selection policy to direct the traffic gateway and sends the received business application request to the directed traffic gateway; Verify the gateway identity token in the business application request through the directed traffic gateway, and forward the business application request to the application backend of the corresponding business application after successful verification; Verify the application identity token in the business application request through the application backend, and if the verification is successful, execute the business logic corresponding to the business application request, and return response information to the corresponding traffic gateway; the response information includes a response status code; the response status code is used to indicate whether the application identity token verification is successful or not; The response status code is verified through the traffic gateway. If the status code is a successful verification, the response information is returned to the browser. If the status code is a failed verification, the login is exited.
