Unified authentication login method and device and electronic equipment

By receiving and verifying authentication login information, displaying the system list and performing simulated authentication, the problem of high cost in building a unified authentication portal within the enterprise is solved, and unified authentication and login for all systems is realized, which improves office efficiency.

CN118916856APending Publication Date: 2024-11-08吉林亿联银行股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310513452.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-08
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the existing technology, when building a unified authentication portal within an enterprise organization, comprehensive user data governance and underlying technology transformation are needed to carry out comprehensive user data governance and underlying technology transformation of each system, resulting in high development costs and inability to connect to passive code systems, and the inability to achieve unified authentication and login.

Method used

By receiving the authentication login information of the target terminal, displaying the preset system list, and after the authentication is passed, determine whether there is associated system login information in the database. If it does not exist, display the login information prompt page, receive the input information for simulated authentication, and obtain the authentication As a result, it jumps to the system page based on the preset proxy address to realize invisible login.

Benefits of technology

It effectively reduces the cost of unified authentication and login, can perform unified authentication and login on all systems, improves office efficiency, and solves the problem that it is impossible to perform unified authentication and login on all systems and has high transformation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916856A_ABST
    Figure CN118916856A_ABST
Patent Text Reader

Abstract

The invention discloses a unified authentication login method and device and electronic equipment, and the method comprises the steps: receiving authentication login information sent by a target terminal, and displaying a preset system list after the authentication login information passes verification, after the target terminal responds to any target preset system in the preset system list, whether target system login information associated with the authentication login information exists in a preset database or not is judged, and a login information prompt page is displayed when the target system login information associated with the authentication login information does not exist in the preset database, and receiving input information of the target terminal responding to the login information prompt page, performing simulation authentication based on the input information and the target preset system information, and skipping to a system page of the target preset system based on the target preset proxy address after the authentication is passed. The technical problems that unified authentication login transformation cannot be carried out on all systems and the transformation cost is relatively high in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a unified authentication login method and device, and an electronic device. Background Art

[0002] When an enterprise organization has a large number of internal business systems (for example, human resources, email, finance, reporting, and business office systems) (for example, more than 5), the organization's employees need to remember the account passwords of each system, which is easy to forget or remember incorrectly, resulting in the inability to log in to the system normally, affecting office efficiency. Therefore, it is necessary to build a unified authentication portal.

[0003] The unified authentication portal, also known as the single sign-on platform, is commonly used for Internet platform login authentication or enterprise internal login authentication, providing users with a safe, convenient, flexible and fast one-stop login authentication service. After a one-time identity authentication, users can enjoy the services of all systems within the authorized scope.

[0004] In the related technology, the commonly used unified authentication portal solutions include: CAS (Central Authentication Service) authentication service, LDAP (Lightweight Directory Access Protocol) directory service, OAUTH2.0 (an open network protocol for authorization) unified account management for authorization authentication, etc., providing user name and password authentication, digital certificate authentication, and dynamic password authentication. The application scenarios based on the above solutions can be roughly divided into two modes: (1) Internet platform use: unified authentication login, which is characterized by using a set of authentication information for login, and no login is required to use the various services of the platform; (2) Internal office use of the company: unified authentication portal, which is characterized by using a set of authentication information for login, and after login, you can enter all office systems that have been connected to the unified authentication portal without restriction and use them normally.

[0005] However, building a unified authentication portal within an enterprise involves various systems and has a wide range of connections. The use of the unified authentication portal solution in related technologies requires the following prerequisites: (1) User data governance: It is necessary to conduct comprehensive user data governance on each system, and change the user data structure and data information according to the unified user identification standard to make the user identification of each docking system unified, for example, a unified user name, ID, etc., to meet the basic docking standard; (2) Underlying technology transformation: After comprehensive data governance, each system needs to transform and dock the login module, user information acquisition module and other modules according to the technical standards for docking with the unified authentication portal platform (such as CAS, LDAP, OAUTH2.0). Therefore, the use of the unified authentication portal solution in related technologies will increase the development cost as the number of docking systems increases, and when the docking system does not have the source code, it cannot be accessed.

[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0007] The embodiment of the present invention provides a unified authentication login method and device, and electronic device, so as to at least solve the technical problem in the related art that unified authentication login cannot be performed on all systems and the modification cost is high.

[0008] According to one aspect of an embodiment of the present invention, a unified authentication login method is provided, comprising: receiving authentication login information sent by a target terminal, and displaying a preset system list when the authentication login information is verified, wherein the preset system list records a plurality of preset systems, and each preset system corresponds to a preset proxy address and preset system information; when the target terminal responds to any target preset system in the preset system list, determining whether there is target system login information associated with the authentication login information in a preset database, wherein the target system login information is login information for the target terminal to access the target preset system; when the target system login information associated with the authentication login information does not exist in the preset database, displaying a login information prompt page, and receiving input information of the target terminal in response to the login information prompt page; performing simulated authentication based on the input information and the target preset system information to obtain an authentication result; when the authentication result indicates that the authentication is passed, jumping to a system page of the target preset system based on the target preset proxy address, wherein the system page is a page in a login state.

[0009] Optionally, before receiving the authentication login information sent by the target terminal, it also includes: obtaining the login address and system page address of the preset system; determining the message information format and session establishment type of the preset system, wherein the message information format is a message format predetermined by the system client of the preset system and the system server of the preset system, and the session establishment type includes: access establishment type, login establishment type; based on the login address, the system page address, the message information format and the session establishment type, constructing the preset system information of the preset system.

[0010] Optionally, the step of determining the message information format and the session establishment type of the preset system includes: sending a survey request message to the preset system, wherein the survey request message at least includes: login information, the login information is used to log in to the preset system, the preset system responds to the survey request message and returns response information; and parsing the response information to obtain the message information format and the session establishment type of the preset system.

[0011] Optionally, after determining the message information format and session establishment type of the preset system, it also includes: based on the domain name type carried in the message information format and the login address, using a preset proxy server to configure the preset proxy address of the preset system; recording the preset system into the preset system list.

[0012] Optionally, after the target terminal responds to any target preset system in the preset system list, it also includes: when the session establishment type carried by the target preset system information is an access establishment type, simulating access to the target preset system based on the login address carried by the target preset system information; when the simulated access is successful, generating an initial session identifier, wherein the initial session identifier is not associated with the session information.

[0013] Optionally, the step of performing simulated authentication based on the input information and the target preset system information includes: when the session establishment type carried by the target preset system information is the access establishment type, constructing a login request message based on the initial session identifier, the input information and the message information format carried by the target preset system information; sending the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message and returns login pass information after the verification is passed, and the login pass information includes: a target session identifier and login attribute information, wherein the target session identifier is associated with the session information; and storing the target session identifier and the login attribute information in a domain name cache.

[0014] Optionally, the step of performing simulated authentication based on the input information and the target preset system information also includes: when the session establishment type carried by the target preset system information is a login establishment type, constructing a login request message based on the input information and the message information format carried by the target preset system information; sending the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message, constructs a target session identifier after the verification is passed, and returns login pass information, wherein the login pass information includes: the target session identifier and login attribute information; and storing the target session identifier and the login attribute information in the domain name cache.

[0015] Optionally, after jumping to the system page of the target preset system based on the target preset proxy address, it also includes: the target system client of the target preset system obtains the target session identifier through the domain name cache; the target system client interacts with the target system server of the target preset system based on the target session identifier, wherein the target system server completes login on the system page based on the session information associated with the target session identifier.

[0016] According to another aspect of an embodiment of the present invention, a unified authentication login device is further provided, comprising: a receiving unit, configured to receive authentication login information sent by a target terminal, and, if the authentication login information is verified, display a preset system list, wherein the preset system list records a plurality of preset systems, and each preset system corresponds to a preset proxy address and preset system information; a judging unit, configured to, if the target terminal responds to any target preset system in the preset system list, determine whether there is target system login information associated with the authentication login information in a preset database, wherein the target system login information is login information for the target terminal to access the target preset system; a display unit, configured to, if the target system login information associated with the authentication login information does not exist in the preset database, display a login information prompt page, and receive input information of the target terminal responding to the login information prompt page; an authentication unit, configured to perform simulated authentication based on the input information and the target preset system information to obtain an authentication result; and a jump unit, configured to, if the authentication result indicates that the authentication is passed, jump to a system page of the target preset system based on the target preset proxy address, wherein the system page is a page in a login state.

[0017] Optionally, the login device also includes: a first acquisition module, used to obtain the login address and system page address of the preset system before receiving the authentication login information sent by the target terminal; a first determination module, used to determine the message information format and session establishment type of the preset system, wherein the message information format is a message format predetermined by the system client of the preset system and the system server of the preset system, and the session establishment type includes: access establishment type, login establishment type; a first construction module, used to construct the preset system information of the preset system based on the login address, the system page address, the message information format and the session establishment type.

[0018] Optionally, the first determination module includes: a first sending submodule, used to send research request information to the preset system, wherein the research request information at least includes: login information, the login information is used to log in to the preset system, and the preset system responds to the research request information and returns response information; a first parsing submodule, used to parse the response information to obtain the message information format of the preset system and the session establishment type.

[0019] Optionally, the login device also includes: a first configuration module, used to configure the preset proxy address of the preset system using a preset proxy server based on the domain name type carried in the message information format and the login address after determining the message information format and session establishment type of the preset system; a first recording module, used to record the preset system to the preset system list.

[0020] Optionally, the login device also includes: a first access module, used to simulate access to the target preset system based on the login address carried by the target preset system information after the target terminal responds to any target preset system in the preset system list, when the session establishment type carried by the target preset system information is an access establishment type; a first generation module, used to generate an initial session identifier when the simulated access is successful, wherein the initial session identifier is not associated with the session information.

[0021] Optionally, the authentication unit includes: a second construction module, used to construct a login request message based on the initial session identifier, the input information and the message information format carried by the target preset system information when the session establishment type carried by the target preset system information is the access establishment type; a first sending module, used to send the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message and returns login pass information after the verification is passed, and the login pass information includes: a target session identifier, login attribute information, and the target session identifier is associated with the session information; a first storage module, used to store the target session identifier and the login attribute information into a domain name cache.

[0022] Optionally, the authentication unit also includes: a third construction module, used to construct a login request message based on the input information and the message information format carried by the target preset system information when the session establishment type carried by the target preset system information is a login establishment type; a second sending module, used to send the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message, constructs a target session identifier after the verification is passed, and returns login pass information, wherein the login pass information includes: the target session identifier and login attribute information; a second storage module, used to store the target session identifier and the login attribute information into a domain name cache.

[0023] Optionally, the login device also includes: a second acquisition module, which is used for the target system client of the target preset system to obtain the target session identifier through the domain name cache after jumping to the system page of the target preset system based on the target preset proxy address; a first interaction module, which is used for the target system client to interact with the target system server of the target preset system based on the target session identifier, wherein the target system server completes the login on the system page based on the session information associated with the target session identifier.

[0024] According to another aspect of an embodiment of the present invention, an electronic device is also provided, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned unified authentication login method.

[0025] In the present disclosure, authentication login information sent by a target terminal is received, and a preset system list is displayed if the authentication login information is verified to be successful. If the target terminal responds to any target preset system in the preset system list, it is determined whether there is target system login information associated with the authentication login information in the preset database. If there is no target system login information associated with the authentication login information in the preset database, a login information prompt page is displayed, and input information of the target terminal in response to the login information prompt page is received. Based on the input information and the target preset system information, a simulated authentication is performed to obtain an authentication result. If the authentication result indicates that the authentication is successful, the system page of the target preset system is jumped to based on the target preset proxy address. In the present disclosure, the preset authentication system server can display a preset system list after the authentication login information is verified. If the target terminal responds to any target preset system in the preset system list, and the target system login information associated with the authentication login information does not exist in its preset database, then the login information prompt page can be displayed, and the input information sent by the target terminal can be received. Then, a simulated authentication is performed based on the input information and the target preset system information. If the authentication is successful, the server can jump to the system page of the target preset system that has been successfully logged in according to the target preset proxy address. This enables unified authentication and login for all systems and effectively reduces costs, thereby solving the technical problem in the related art that all systems cannot be transformed into unified authentication and login and the transformation cost is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0027] Figure 1 is a flow chart of an optional unified authentication login method according to an embodiment of the present invention;

[0028] Figure 2 is a schematic diagram of an optional unified authentication authorization login process according to an embodiment of the present invention;

[0029] Figure 3 is a schematic diagram of an optional unified authentication login device according to an embodiment of the present invention;

[0030] Figure 4 The present invention is a hardware structure block diagram of an electronic device (or mobile device) for a unified authentication login method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0034] The present invention can effectively solve the problem in the related art that it is impossible to uniformly authenticate and connect systems without source code by combining simulated login, domain name replacement, session maintenance and other methods. In addition, when the cost of transformation of certain system projects is too high, the present invention can effectively reduce the project cost. When certain system projects do not have corresponding source codes and cannot be transformed, the present invention can achieve the project goals. In the present invention, users only need to record their account passwords for the first time to achieve seamless login and normal use of any system, thereby improving office efficiency.

[0035] In the present invention, after system development and basic environment construction, scenario and data simulation are carried out, and users can achieve the goal of free login and normal use of each docking system after logging into the unified authentication portal.

[0036] The present invention is described in detail below in conjunction with various embodiments.

[0037] Embodiment 1

[0038] According to an embodiment of the present invention, an embodiment of a unified authentication login method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] Figure 1 is a flowchart of an optional unified authentication login method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0040] Step S101, receiving authentication login information sent by the target terminal, and displaying a preset system list when the authentication login information is verified, wherein the preset system list records multiple preset systems, each of which corresponds to a preset proxy address and preset system information.

[0041] Step S102, when the target terminal responds to any target preset system in the preset system list, it is determined whether there is target system login information associated with the authentication login information in the preset database, wherein the target system login information is the login information for the target terminal to access the target preset system.

[0042] Step S103: if the target system login information associated with the authentication login information does not exist in the preset database, a login information prompt page is displayed, and input information of the target terminal in response to the login information prompt page is received.

[0043] Step S104, based on the input information and the target preset system information, simulated authentication is performed to obtain an authentication result.

[0044] Step S105, when the authentication result indicates that the authentication is passed, jump to the system page of the target preset system based on the target preset proxy address, wherein the system page is a page in a logged-in state.

[0045] Through the above steps, the authentication login information sent by the target terminal can be received, and when the authentication login information is verified, the preset system list can be displayed. When the target terminal responds to any target preset system in the preset system list, it is determined whether there is target system login information associated with the authentication login information in the preset database. When the target system login information associated with the authentication login information does not exist in the preset database, a login information prompt page is displayed, and input information of the target terminal responding to the login information prompt page is received. Based on the input information and the target preset system information, a simulated authentication is performed to obtain an authentication result. When the authentication result indicates that the authentication is passed, the page jumps to the system page of the target preset system based on the target preset proxy address. In an embodiment of the present invention, the preset authentication system server can display a preset system list after the authentication login information is verified. If the target terminal responds to any target preset system in the preset system list, and the target system login information associated with the authentication login information does not exist in its preset database, a login information prompt page can be displayed, and input information sent by the target terminal can be received. Then, a simulated authentication is performed based on the input information and the target preset system information. If the authentication is successful, the server can jump to the system page of the target preset system that has been successfully logged in according to the target preset proxy address. This enables unified authentication and login for all systems and effectively reduces costs, thereby solving the technical problem in the related art that all systems cannot be transformed into unified authentication and login and the transformation cost is high.

[0046] The embodiment of the present invention is described in detail below in combination with the above steps.

[0047] In the embodiment of the present invention, each system has a login function. When a user logs in, the system obtains the information submitted by the current user, including the user name, password, etc. The system can determine whether the information provided by the user is consistent with the user information stored in the system. If they are consistent, the user login is successful and can use the system functions normally. The login status is maintained until the user session is closed.

[0048] In the embodiment of the present invention, the login status is maintained mainly through the session unique identifier stored in the current domain name cache of the client browser (for example, Cookie (i.e., data stored on the user's local terminal), session storage Sessionstorage (i.e., a session storage object used to temporarily save data in the same window (or tab), which will be deleted after closing the window or tab), local storage, global variables). The session unique identifier can be created when accessing the system for the first time, or it can be obtained after a successful login. If it is created at the first access, the identifier will still be used after login; if it is obtained after a successful login, it is generally generated by the background server. The creation type of the session unique identifier is an agreement between the client and the server.

[0049] Optionally, before receiving the authentication login information sent by the target terminal, it also includes: obtaining the login address and system page address of the preset system; determining the message information format and session establishment type of the preset system, wherein the message information format is a message format predetermined by the system client of the preset system and the system server of the preset system, and the session establishment type includes: access establishment type, login establishment type; based on the login address, system page address, message information format and session establishment type, constructing the preset system information of the preset system.

[0050] In an embodiment of the present invention, the preset authentication system server (i.e., the server of the pre-built unified authentication portal) can first obtain the login address (i.e., the client login address of the docking system) and the system page address (i.e., the client homepage address of the docking system) of the preset system (i.e., the system to be docked), and determine the message information format of the preset system (the message information format is a message format predetermined by the system client of the preset system and the system server of the preset system) and the session establishment type (the session establishment type includes: access establishment type and login establishment type). Then, according to the login address, system page address, message information format and session establishment type, the preset system information of the preset system is constructed.

[0051] In the embodiment of the present invention, the message message includes: a message header (Headers) and a message body (Payload). For example, the structure of the message message is as follows:

[0052] Headers:

[0053] Public information General: request url (i.e. request address), request method (i.e. request method), status code (i.e. status code), remote address (i.e. remote address);

[0054] Request Headers: Content-Type (i.e. content type), Cookie (i.e. cache), Host (i.e. host), Origin (i.e. source), Referer (i.e. reference), and custom information;

[0055] Return information Response Headers: Location (i.e. location), Cookie-Set (i.e. cache settings), custom information;

[0056] Payload:

[0057] Request body information Form Data (i.e. form data, including: user name, password, login role, etc.).

[0058] In an embodiment of the present invention, the system client of each preset system and its system server may pre-agree on the message format of interaction, for example, only the host to the host specified by this system can interact, only the source is the source specified by this system can interact, etc.

[0059] Optionally, the step of determining the message information format and session establishment type of the preset system includes: sending research request information to the preset system, wherein the research request information at least includes: login information, the login information is used to log in to the preset system, the preset system responds to the research request information and returns response information; and parsing the response information to obtain the message information format and session establishment type of the preset system.

[0060] In an embodiment of the present invention, in order to determine the message interaction format that the preset system to be connected can receive, the preset authentication system server can first send a research request message to the preset system (the research request message at least includes: login information (i.e., account, password, etc.), and the login information is used to log in to the preset system). The preset system can respond to the research request message and return response information (the response information can reflect the message format required for the front-end and back-end (i.e., system client and system server) of the preset system to interact, for example, the type of domain name that can be interacted with, etc.). Then the preset authentication system server can parse the received response information to obtain the message information format of the preset system and the session establishment type.

[0061] Optionally, after determining the message information format and session establishment type of the preset system, it also includes: based on the domain name type and login address carried in the message information format, using a preset proxy server to configure a preset proxy address of the preset system; and recording the preset system into a preset system list.

[0062] In the embodiment of the present invention, assuming that the preset system to be connected is an OA (Office Automation) system, the following situations exist: (1) The domain name of the unified authentication portal and the domain name of the OA system are in the same first-level domain name, such as the domain name of the unified authentication portal http: / / u**.comp.com, and the domain name of the OA system http: / / oa**.comp.com; (2) The domain name of the unified authentication portal and the domain name of the OA system are not in the same first-level domain name, such as the domain name of the unified authentication portal http: / / u**.comp.com, and the domain name of the OA system http: / / 19*.16*.100.100; (3) The domain name of the unified authentication portal and the domain name of the OA system are not in the same first-level domain name, such as the domain name of the unified authentication portal http: / / u**.comp.com, and the domain name of the OA system http: / / oa**.compcomp.com.

[0063] In the above situations, the domain name of the OA system needs to be proxied. On the client server of the unified authentication portal, the domain name address of the OA system is configured as the proxy address http: / / u**.comp.com / oa. Accessing the proxy address http: / / u**.comp.com / oa is to access the OA system.

[0064] Therefore, in an embodiment of the present invention, it is necessary to first perform domain name proxy processing on the preset system that needs to be connected before the connection between the preset system and the unified authentication portal can be completed. Specifically, according to the domain name type and login address carried in the message information format of the preset system, a preset proxy server (such as nginx (a lightweight Web (web page) server / reverse proxy server) service) can be used to configure the preset proxy address of the preset system. For example, the proxy address (such as http.server.location) in the nginx.conf (i.e., configuration file) of the nginx service is configured. The proxy address includes: the actual address (such as http.server.proxy_pass), the proxy request domain name (such as http.server.proxy_set_headerHost), and the domain name type of the proxy request domain name changes dynamically according to the domain name type specified by the preset system.

[0065] Afterwards, the preset system with the configured proxy address is recorded in the preset system list. In this way, the actual situation of each system can be met, so that each system can smoothly obtain the unique identifier of its own session.

[0066] Step S101, receiving authentication login information sent by the target terminal, and displaying a preset system list when the authentication login information is verified, wherein the preset system list records multiple preset systems, each of which corresponds to a preset proxy address and preset system information.

[0067] In an embodiment of the present invention, a user can send authentication login information (i.e., login information for logging into a unified authentication portal (including account, password, etc.)) to a preset authentication system server through a target terminal. After receiving the authentication login information sent by the target terminal, the preset authentication system server can verify the authentication login information (i.e., verify whether the account and password are correct). If the authentication login information is verified, a preset system list can be displayed. The preset system list records multiple preset systems (i.e., the preset system list displays all preset systems that have been connected), and each preset system corresponds to a preset proxy address and preset system information.

[0068] Step S102, when the target terminal responds to any target preset system in the preset system list, it is determined whether there is target system login information associated with the authentication login information in the preset database, wherein the target system login information is the login information for the target terminal to access the target preset system.

[0069] In an embodiment of the present invention, when a user clicks on any target preset system in the preset system list through a target terminal, the preset authentication system server can first determine whether the user is logging into the target preset system for the first time (i.e., when the target terminal responds to any target preset system in the preset system list, determine whether there is target system login information associated with the authentication login information in the preset database, and the target system login information is the login information for the target terminal to access the target preset system). If it is not the first login, the login information of the target preset system saved in the preset database can be directly used for simulated authentication. After the authentication is passed, the user is directly redirected to the system homepage of the target preset system where the login is completed, which can achieve a senseless login for the user and improve work efficiency.

[0070] Optionally, after the target terminal responds to any target preset system in the preset system list, it also includes: when the session establishment type carried by the target preset system information is an access establishment type, simulating access to the target preset system based on the login address carried by the target preset system information; when the simulated access is successful, generating an initial session identifier, wherein the initial session identifier is not associated with the session information.

[0071] In an embodiment of the present invention, if the unique session identifier of the target preset system is generated when accessing the system for the first time without logging in (that is, when the session establishment type carried by the target preset system information is an access establishment type), the unified authentication portal is required to simulate access to the login page of the target preset system client and record the unique session identifier generated during the access (the session identifier is not associated with the user session information) (that is, simulate access to the target preset system at the login address carried by the target preset system information; if the simulated access is successful, an initial session identifier is generated, and the initial session identifier is not associated with the session information).

[0072] Step S103: if the target system login information associated with the authentication login information does not exist in the preset database, a login information prompt page is displayed, and input information of the target terminal in response to the login information prompt page is received.

[0073] In an embodiment of the present invention, if the user is logging into the target preset system for the first time, he or she needs to enter the corresponding login information (i.e., input information) through the login information prompt page. Specifically, if the target system login information associated with the authentication login information does not exist in the preset database, the preset authentication system server can display the login information prompt page, and after the user enters the information through the target terminal, receive the input information (i.e., receive the input information of the target terminal in response to the login information prompt page).

[0074] Step S104, based on the input information and the target preset system information, simulated authentication is performed to obtain an authentication result.

[0075] Optionally, the step of performing simulated authentication based on the input information and the target preset system information includes: when the session establishment type carried by the target preset system information is an access establishment type, constructing a login request message based on the initial session identifier, the input information and the message information format carried by the target preset system information; sending the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message and returns login pass information after the verification is passed, and the login pass information includes: a target session identifier, login attribute information, and the target session identifier is associated with the session information; and storing the target session identifier and the login attribute information in the domain name cache.

[0076] In an embodiment of the present invention, the preset authentication system server can perform simulated authentication based on the input information and the target preset system information to obtain an authentication result, specifically: the input information entered by the user (or the user information stored in the unified authentication portal background database (i.e., the preset database)), the public information of the preliminary investigation and the request header information (i.e., the message information format carried by the target preset system information) can be assembled into a request message (i.e., a login request message). If the session establishment type carried by the target preset system information is an access establishment type, the login request message also includes a unique session identifier (i.e., an initial session identifier) ​​(i.e., when the session establishment type carried by the target preset system information is an access establishment type, a login request message is constructed based on the initial session identifier, the input information and the message information format carried by the target preset system information), and then the unified authentication portal background server (i.e., the preset authentication system server) sends the request message to the target preset system background server for verification (i.e., the login request message is sent to the target system server of the target preset system). After the target preset system background server passes the verification, the preset authentication system server obtains the returned message header information and message body information (i.e., the login pass information) (i.e., the target system server verifies the input information carried in the login request message, and returns the login pass information after the verification is passed. The login pass information includes: target session identifier, login attribute information (such as role information, permission information, etc.), etc. The current target session identifier has been associated with the session information).

[0077] Afterwards, the preset authentication system server stores the target session identifier and login attribute information into the domain name cache. Specifically, the return message information obtained by the unified authentication portal background server includes the session unique identifier and related information (i.e. login attribute information, such as role information, permission information, etc.), and returns this information to the unified authentication portal client. The unified authentication portal client puts the unique identification information (the session identifier has been associated with the user session information) and related information into the cache under the domain name of the current unified authentication portal. At this point, the current domain name already contains the unique identification information and related information required by the target preset system.

[0078] Optionally, the step of performing simulated authentication based on the input information and the target preset system information also includes: when the session establishment type carried by the target preset system information is a login establishment type, constructing a login request message based on the input information and the message information format carried by the target preset system information; sending the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message, constructs a target session identifier after the verification is passed, and returns login pass information, wherein the login pass information includes: a target session identifier and login attribute information; and storing the target session identifier and the login attribute information in the domain name cache.

[0079] In an embodiment of the present invention, if the session establishment type carried by the target preset system information is a login establishment type, the input information entered by the user (or the user information stored in the unified authentication portal backend database (i.e., the preset database)), the public information of the preliminary investigation, and the request header information (i.e., the message information format carried by the target preset system information) can be assembled into a request message (i.e., a login request message) (i.e., when the session establishment type carried by the target preset system information is a login establishment type, the login request message is constructed based on the input information and the message information format carried by the target preset system information), and then the unified authentication portal backend server (i.e., the preset authentication system server) sends the request message to the target preset system backend server for verification (i.e., the login request message is sent to the target system server of the target preset system). After the target preset system backend server passes the verification, it constructs a unique session identifier (i.e., the target session identifier) ​​and returns the login pass information (the login pass information includes: the target session identifier and the login attribute information). The preset authentication system server obtains the returned message header information and message body information (i.e., login pass information), and stores the target session identifier and login attribute information into the domain name cache. Specifically, the returned message information obtained by the unified authentication portal background server includes the session unique identifier and related information (i.e., login attribute information, such as role information, permission information, etc.), and returns this information to the unified authentication portal client. The unified authentication portal client puts the unique identification information (the session identifier has been associated with the user session information) and related information into the cache under the domain name of the current unified authentication portal. At this point, the current domain name already contains the unique identification information and related information required by the target preset system.

[0080] Step S105, when the authentication result indicates that the authentication is passed, jump to the system page of the target preset system based on the target preset proxy address, wherein the system page is a page in a logged-in state.

[0081] In the embodiment of the present invention, after the simulation authentication is passed (i.e., the target preset system background server verifies the received login information), the preset authentication system server can jump to the system page of the target preset system according to the target preset proxy address of the target preset system, and the system page is a page in the login state. For example, after confirming that the information has been stored, the unified authentication portal client can pop up a new target preset system homepage address tab in the current client browser, and the opened target preset system client can obtain the session unique identifier through the domain name cache, and the target preset system client can carry this session unique identifier to interact with the target preset system server and pass the login authentication normally.

[0082] Optionally, after jumping to the system page of the target preset system based on the target preset proxy address, it also includes: the target system client of the target preset system obtains the target session identifier through the domain name cache; the target system client interacts with the target system server of the target preset system based on the target session identifier, wherein the target system server completes login on the system page based on the session information associated with the target session identifier.

[0083] In an embodiment of the present invention, a target system client of a target preset system can obtain a target session identifier through a domain name cache (session information indicated by the target session identifier includes login information and operation information after login), and then the target system client can interact with a target system server of the target preset system through the target session identifier (i.e., each time an interaction request is made, the request message sent carries the target session identifier), and the target system server completes the login on the system page based on the session information associated with the target session identifier.

[0084] Figure 2 is a schematic diagram of an optional unified authentication authorization login process according to an embodiment of the present invention, such as Figure 2 As shown, it includes: proxy server, unified authentication portal client, unified authentication portal server, preset system client, preset system server. The specific process is as follows:

[0085] (1) The user logs in to the authentication portal through the proxy server, the unified authentication portal server obtains the user information, and after the user information is verified, calls the proxy server to display the system list on the unified authentication portal homepage (the unified authentication portal homepage display system list is implemented through the unified authentication portal homepage of the proxy unified authentication portal client).

[0086] (2) When the user clicks on the preset system label, if the user is logging into the preset system for the first time, a login information maintenance prompt page will pop up. The user enters the user name, password and other information on the login information maintenance prompt page. After the user completes the input, click "Save". The unified authentication portal will perform a simulated login to the preset system; if the user is not logging into the preset system for the first time, a simulated login can be performed directly. In this embodiment, after a successful login, the unified authentication portal will save the account information entered by the user. And close the login information maintenance prompt page. If the login fails, the user will be prompted to re-enter the information. The user returns to the unified authentication portal homepage and clicks on the preset system again. The unified authentication portal uses the user information saved in the background to go to the preset system for authentication. After the authentication is passed, the user enters the preset system and uses it normally.

[0087] (3) The unified authentication portal server can first determine whether the preset system needs to be accessed for the first time to obtain a unique session identifier. If necessary, the unified authentication portal server simulates access to the login page of the preset system client to obtain a unique session identifier, and then obtains user information, obtains system information of the preset system, and assembles a message. If not, the unified authentication portal server directly obtains user information, obtains system information of the preset system, assembles a message, and then performs a simulated login.

[0088] (4) The unified authentication portal server submits the login information to the preset system server for login authentication. After the login authentication is successful, the preset system server returns the session unique identifier and user information.

[0089] (5) The unified authentication portal server processes the login success information and sends the session information to the unified authentication portal client.

[0090] (6) The unified authentication portal client saves the session information and opens the preset system homepage on the proxy server. The proxy server enters the preset system homepage through the proxy address, and the preset system server performs session authentication.

[0091] In the embodiment of the present invention, the cost of the unified authentication login project can be effectively reduced, and the docking of systems without source code can be completed. In this embodiment, the user only needs to record the account password for the first time to achieve seamless login and normal use of any system, thereby improving office efficiency.

[0092] The following is a detailed description in conjunction with another embodiment.

[0093] Embodiment 2

[0094] A unified authentication login device provided in this embodiment includes multiple implementation units, each of which corresponds to each implementation step in the above-mentioned embodiment 1.

[0095] Figure 3 is a schematic diagram of an optional unified authentication login device according to an embodiment of the present invention, such as Figure 3 As shown, the login device may include: a receiving unit 30, a judging unit 31, a display unit 32, an authentication unit 33, and a jump unit 34, wherein:

[0096] The receiving unit 30 is used to receive the authentication login information sent by the target terminal, and display the preset system list when the authentication login information is verified, wherein the preset system list records multiple preset systems, each preset system corresponds to a preset proxy address and preset system information;

[0097] The judging unit 31 is used to judge whether there is target system login information associated with the authentication login information in the preset database when the target terminal responds to any target preset system in the preset system list, wherein the target system login information is login information for the target terminal to access the target preset system;

[0098] The display unit 32 is used to display a login information prompt page when there is no target system login information associated with the authentication login information in the preset database, and receive input information of the target terminal in response to the login information prompt page;

[0099] The authentication unit 33 is used to perform a simulated authentication based on the input information and the target preset system information to obtain an authentication result;

[0100] The jump unit 34 is used to jump to the system page of the target preset system based on the target preset proxy address when the authentication result indicates that the authentication is passed, wherein the system page is a page in the login state.

[0101] The above-mentioned login device can receive the authentication login information sent by the target terminal through the receiving unit 30, and display the preset system list when the authentication login information is verified, and judge whether there is target system login information associated with the authentication login information in the preset database through the judgment unit 31 when the target terminal responds to any target preset system in the preset system list, and display the login information prompt page through the display unit 32 when the target system login information associated with the authentication login information does not exist in the preset database, and receive the input information of the target terminal responding to the login information prompt page, perform simulated authentication based on the input information and the target preset system information through the authentication unit 33 to obtain the authentication result, and jump to the system page of the target preset system based on the target preset proxy address through the jump unit 34 when the authentication result indicates that the authentication is passed. In an embodiment of the present invention, the preset authentication system server can display a preset system list after the authentication login information is verified. If the target terminal responds to any target preset system in the preset system list, and the target system login information associated with the authentication login information does not exist in its preset database, a login information prompt page can be displayed, and input information sent by the target terminal can be received. Then, a simulated authentication is performed based on the input information and the target preset system information. If the authentication is successful, the server can jump to the system page of the target preset system that has been successfully logged in according to the target preset proxy address. This enables unified authentication and login for all systems and effectively reduces costs, thereby solving the technical problem in the related art that all systems cannot be transformed into unified authentication and login and the transformation cost is high.

[0102] Optionally, the login device also includes: a first acquisition module, used to obtain the login address and system page address of the preset system before receiving the authentication login information sent by the target terminal; a first determination module, used to determine the message information format and session establishment type of the preset system, wherein the message information format is a message format predetermined by the system client of the preset system and the system server of the preset system, and the session establishment type includes: access establishment type, login establishment type; a first construction module, used to construct the preset system information of the preset system based on the login address, system page address, message information format and session establishment type.

[0103] Optionally, the first determination module includes: a first sending submodule, used to send a survey request information to a preset system, wherein the survey request information at least includes: login information, the login information is used to log in to the preset system, and the preset system responds to the survey request information and returns response information; a first parsing submodule, used to parse the response information to obtain the message information format of the preset system and the session establishment type.

[0104] Optionally, the login device also includes: a first configuration module, which is used to configure the preset proxy address of the preset system using a preset proxy server based on the domain name type and login address carried in the message information format after determining the message information format and session establishment type of the preset system; and a first recording module, which is used to record the preset system into the preset system list.

[0105] Optionally, the login device also includes: a first access module, used to simulate access to the target preset system based on the login address carried by the target preset system information after the target terminal responds to any target preset system in the preset system list, when the session establishment type carried by the target preset system information is an access establishment type; a first generation module, used to generate an initial session identifier when the simulated access is successful, wherein the initial session identifier is not associated with the session information.

[0106] Optionally, the authentication unit includes: a second construction module, used to construct a login request message based on the initial session identifier, input information and the message information format carried by the target preset system information when the session establishment type carried by the target preset system information is an access establishment type; a first sending module, used to send the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message and returns login pass information after the verification is passed, and the login pass information includes: a target session identifier, login attribute information, and the target session identifier is associated with the session information; a first storage module, used to store the target session identifier and the login attribute information into the domain name cache.

[0107] Optionally, the authentication unit also includes: a third construction module, which is used to construct a login request message based on the input information and the message information format carried by the target preset system information when the session establishment type carried by the target preset system information is a login establishment type; a second sending module, which is used to send the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message, constructs a target session identifier after the verification is passed, and returns login pass information, wherein the login pass information includes: a target session identifier and login attribute information; a second storage module, which is used to store the target session identifier and the login attribute information into the domain name cache.

[0108] Optionally, the login device also includes: a second acquisition module, which is used for the target system client of the target preset system to obtain the target session identifier through the domain name cache after jumping to the system page of the target preset system based on the target preset proxy address; a first interaction module, which is used for the target system client to interact with the target system server of the target preset system based on the target session identifier, wherein the target system server completes the login on the system page based on the session information associated with the target session identifier.

[0109] The above-mentioned login device may also include a processor and a memory. The above-mentioned receiving unit 30, judgment unit 31, display unit 32, authentication unit 33, jump unit 34, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0110] The processor includes a kernel, which retrieves the corresponding program unit from the memory. The kernel can be set to one or more, and by adjusting the kernel parameters, when the authentication result indicates that the authentication is passed, jump to the system page of the target preset system based on the target preset proxy address.

[0111] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0112] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: receiving authentication login information sent by a target terminal, and displaying a preset system list when the authentication login information is verified to be successful, and when the target terminal responds to any target preset system in the preset system list, determining whether there is target system login information associated with the authentication login information in the preset database, and when the target system login information associated with the authentication login information does not exist in the preset database, displaying a login information prompt page, and receiving input information of the target terminal responding to the login information prompt page, performing simulated authentication based on the input information and the target preset system information, and obtaining an authentication result, and when the authentication result indicates that the authentication is successful, jumping to the system page of the target preset system based on the target preset proxy address.

[0113] According to another aspect of an embodiment of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the above-mentioned unified authentication login method.

[0114] Figure 4 1 is a hardware structure block diagram of an electronic device (or mobile device) for a unified authentication login method according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4 402a, 402b, ..., 402n are used to illustrate) processor 402 (processor 402 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 404 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 4 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 4 More or fewer components as shown, or with Figure 4 Different configurations shown.

[0115] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0116] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0117] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0118] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0119] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0121] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A unified authentication login method, characterized in that: include: Receive authentication login information sent by the target terminal, and if the authentication login information is verified, display a preset system list, wherein the preset system list records multiple preset systems, each of which corresponds to a preset proxy address and preset system information; In a case where the target terminal responds to any target preset system in the preset system list, determining whether there is target system login information associated with the authentication login information in the preset database, wherein the target system login information is login information for the target terminal to access the target preset system; If the target system login information associated with the authentication login information does not exist in the preset database, displaying a login information prompt page, and receiving input information from the target terminal in response to the login information prompt page; Performing a simulated authentication based on the input information and target preset system information to obtain an authentication result; When the authentication result indicates that the authentication is passed, the system page of the target preset system is jumped to based on the target preset proxy address, wherein the system page is a page in a logged-in state.

2. The login method according to claim 1, wherein: Before receiving the authentication login information sent by the target terminal, it also includes: Obtain the login address and system page address of the preset system; Determining a message information format and a session establishment type of the preset system, wherein the message information format is a message format predetermined by a system client of the preset system and a system server of the preset system, and the session establishment type includes: an access establishment type and a login establishment type; The preset system information of the preset system is constructed based on the login address, the system page address, the message information format, and the session establishment type.

3. The login method according to claim 2, wherein: The step of determining the message information format and session establishment type of the preset system includes: Sending a research request message to the preset system, wherein the research request message at least includes: login information, the login information is used to log in to the preset system, and the preset system responds to the research request message and returns response information; Parse the response information to obtain the message information format and the session establishment type of the preset system.

4. The login method according to claim 2, wherein: After determining the message information format and session establishment type of the preset system, the method further includes: Based on the domain name type carried in the message information format and the login address, using a preset proxy server to configure the preset proxy address of the preset system; The preset system is recorded in the preset system list.

5. The login method according to claim 1, wherein: After the target terminal responds to any target preset system in the preset system list, the method further includes: When the session establishment type carried in the target preset system information is an access establishment type, simulating access to the target preset system based on the login address carried in the target preset system information; If the simulated access is successful, an initial session identifier is generated, wherein the initial session identifier is not associated with session information.

6. The login method according to claim 5, characterized in that: The step of performing a simulated authentication based on the input information and the target preset system information includes: If the session establishment type carried by the target preset system information is the access establishment type, constructing a login request message based on the initial session identifier, the input information, and the message information format carried by the target preset system information; Sending the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message and returns login pass information after the verification is successful, the login pass information including: a target session identifier and login attribute information, wherein the target session identifier is associated with the session information; The target session identifier and the login attribute information are stored in a domain name cache.

7. The login method according to claim 1, wherein: The step of performing a simulated authentication based on the input information and the target preset system information further includes: In a case where the session establishment type carried by the target preset system information is a login establishment type, constructing a login request message based on the input information and the message information format carried by the target preset system information; Sending the login request message to the target system server of the target preset system, wherein the target system server verifies the input information carried in the login request message, constructs a target session identifier after the verification is passed, and returns login pass information, wherein the login pass information includes: the target session identifier and login attribute information; The target session identifier and the login attribute information are stored in a domain name cache.

8. The login method according to any one of claims 6 or 7, characterized in that: After jumping to the system page of the target preset system based on the target preset proxy address, the method further includes: The target system client of the target preset system obtains the target session identifier through the domain name cache; The target system client interacts with the target system server of the target preset system based on the target session identifier, wherein the target system server completes login on the system page based on the session information associated with the target session identifier.

9. A unified authentication login device, characterized in that: include: a receiving unit, configured to receive authentication login information sent by a target terminal, and, if the authentication login information is verified, display a preset system list, wherein the preset system list records a plurality of preset systems, each of which corresponds to a preset proxy address and preset system information; a determining unit, configured to determine whether there is target system login information associated with the authentication login information in a preset database when the target terminal responds to any target preset system in the preset system list, wherein the target system login information is login information for the target terminal to access the target preset system; a display unit, configured to display a login information prompt page if the target system login information associated with the authentication login information does not exist in the preset database, and receive input information from the target terminal in response to the login information prompt page; An authentication unit, configured to perform a simulated authentication based on the input information and target preset system information to obtain an authentication result; The jump unit is configured to jump to a system page of the target preset system based on a target preset proxy address when the authentication result indicates that the authentication is passed, wherein the system page is a page in a logged-in state.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the unified authentication login method described in any one of claims 1 to 8.