Authentication method, device, electronic device and storage medium
By using the authentication plug-in update mechanism in the enterprise identity authentication system, it solves the problem that static and closed systems cannot meet the needs of modern IT environments, achieves rapid docking and stable operation of the identity authentication system, and supports the strategic vision of zero-trust security architecture.
Patent Information
- Application Number
- CN202111362541.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-17
AI Technical Summary
The existing enterprise identity authentication system is static and closed, unable to meet the complex and flexible management needs of modern IT environments, and cannot support the strategic vision of a zero-trust security architecture.
Through the authentication plug-in update mechanism, the target authentication plug-in is determined and loaded according to the needs of the target authentication system, processing and converting authentication requests and results, and realizing the connection between the target authentication system and the network connection device.
It realizes rapid docking of enterprise identity authentication systems, overcomes authentication message transmission problems caused by different formats, enriches the functions of authentication plug-ins, and eliminates the need to upgrade network connection equipment, ensuring stable operation and better user experience.
Smart Images

Figure CN114301622B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to an authentication method, device, electronic equipment and storage medium. Background Art
[0002] Identity authentication in the prior art is the process of determining whether a user is a legitimate user. The most commonly used identity authentication method is that the system checks the username and password entered by the user to see if they are consistent with the username and password of the user stored in the system to determine whether the user's identity is correct. More complex identity authentication methods use some more complex encryption algorithms and protocols, requiring users to present more information to prove their identity.
[0003] Most companies have their own identity authentication systems. In addition to using standard protocols, a large number of companies' identity authentication systems use non-standard protocols or are self-developed systems. The identity authentication systems between these companies are static and closed, and can no longer meet the requirements of the new technology environment, and cannot support the strategic vision of companies to build a zero-trust security architecture. The identity security infrastructure of the zero-trust architecture needs to be able to meet the complex and efficient management requirements of the modern IT environment, and needs to be sufficiently agile and flexible, and needs to manage identities and permissions for more new scenarios and applications. Summary of the invention
[0004] The purpose of the present invention is to provide an authentication method, device, electronic device and storage medium to solve the static and closed problems between the identity authentication systems of enterprises in the prior art, and to achieve rapid docking of enterprise identity authentication systems through an authentication plug-in update mechanism.
[0005] The present invention provides an authentication method, comprising:
[0006] Determine the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected;
[0007] Loading and running the target authentication plug-in on the network connection device;
[0008] The target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request; wherein the target authentication request is a request filed to the target authentication system.
[0009] According to an authentication method provided by the present invention, the target authentication plug-in processes the received target authentication request to obtain the authentication result of the target authentication request, including:
[0010] The received target authentication request is converted into a format suitable for processing by the target authentication system, and / or the authentication result received from the target authentication system is converted into a preset format.
[0011] The present invention provides an authentication method, wherein the target authentication plug-in processes a received target authentication request to obtain an authentication result of the target authentication request, including:
[0012] Converting the received target authentication request into a form suitable for processing by the target authentication system;
[0013] receiving a first authentication result from the target authentication system;
[0014] Based on the target authentication request, obtaining a second authentication result;
[0015] The authentication result of the target authentication request is obtained according to the first authentication result and the second authentication result, and the authentication result of the target authentication request is converted into a preset format.
[0016] The present invention provides an authentication method, wherein the method determines a corresponding target authentication plug-in according to the requirements of a target authentication system to be connected, and comprises:
[0017] Setting a configuration unit of a target authentication plug-in; wherein the configuration unit is used to receive a configuration value adapted to the requirements of the target authentication system;
[0018] Setting an initialization unit of the target authentication plug-in; wherein the initialization unit is used to initialize the target authentication plug-in according to the configuration value transmitted by the configuration interface;
[0019] According to the requirements of the target authentication system, a core processing unit of the target authentication plug-in is set; wherein the core processing unit is used to convert the received target authentication request into a form suitable for processing by the target authentication system, and / or convert the received authentication result into a pre-set form;
[0020] A termination unit of the target authentication plug-in is set; wherein the termination unit is used to implement the finishing work after the authentication is completed.
[0021] The present invention provides an authentication method, wherein the method determines a corresponding target authentication plug-in according to the requirements of a target authentication system to be connected, and comprises:
[0022] Setting a configuration unit of a target authentication plug-in; wherein the configuration unit is used to receive a configuration value adapted to the requirements of the target authentication system;
[0023] Setting an initialization unit of the target authentication plug-in; wherein the initialization unit is used to initialize the target authentication plug-in according to the configuration value transmitted by the configuration interface;
[0024] According to the requirements of the target authentication system, a core processing unit of the target authentication plug-in is set; wherein the core processing unit is used to convert the received target authentication request into a form suitable for processing by the target authentication system, and receive a first authentication result from the target authentication system; is used to obtain a second authentication result based on the target authentication request; is also used to obtain an authentication result of the target authentication request based on the first authentication result and the second authentication result, and convert the authentication result of the target authentication request into a pre-set form;
[0025] A termination unit of the target authentication plug-in is set; wherein the termination unit is used to implement the finishing work after the authentication is completed.
[0026] The present invention provides an authentication method, wherein the target authentication plug-in is loaded and run on a network connection device, comprising:
[0027] Loading the target authentication plug-in on the network connection device;
[0028] The configuration value is delivered to the target authentication plug-in according to the requirement of the target authentication system, and the target authentication plug-in is initialized according to the configuration value.
[0029] The present invention provides an authentication method, before loading and running the target authentication plug-in on the network connection device, the method further includes:
[0030] Encrypting the target authentication plug-in to obtain an encrypted target authentication plug-in;
[0031] Accordingly, loading and running the target authentication plug-in on the network connection device includes:
[0032] receiving the encrypted target authentication plug-in on the network connected device;
[0033] The encrypted target authentication plug-in is decrypted, and if the decryption is successful, the target authentication plug-in is loaded and run on the network connection device.
[0034] The present invention also provides an authentication device, comprising:
[0035] The target authentication plug-in development module is used to determine the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected;
[0036] A target authentication plug-in loading module, used to load and run the target authentication plug-in on a network connection device;
[0037] The target authentication plug-in application module is used for the target authentication plug-in to process the received target authentication request to obtain the authentication result of the target authentication request; wherein the target authentication request is a request filed to the target authentication system.
[0038] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any step of the authentication method when executing the program.
[0039] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any one of the authentication methods when executed by a processor.
[0040] The present invention also provides a computer program product, which includes computer executable instructions, and when the instructions are executed, they are used to implement the steps of any one of the authentication methods.
[0041] The present invention provides an authentication method, device, electronic device and storage medium, which determine the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected; load and run the target authentication plug-in on the network connection device; the target authentication plug-in processes the received target authentication request to obtain the authentication result of the target authentication request. Based on the target authentication plug-in, the present invention can realize the connection between the target authentication system and the network connection device, and overcome the problem that the authentication message cannot be transmitted due to different formats. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is a flowchart of the authentication method provided by the present invention;
[0044] Figure 2 It is a structural schematic diagram of the authentication device provided by the present invention;
[0045] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0047] Combine the following Figure 1-Figure 3 The authentication method, device, electronic device and storage medium of the present invention are described.
[0048] Figure 1 The flowchart of the authentication method provided by the present invention is as follows: Figure 1 As shown, the authentication method provided by the present invention includes:
[0049] Step 110: Determine a corresponding target authentication plug-in according to the requirements of the target authentication system to be connected.
[0050] In this embodiment, the target authentication system to be connected includes the identity authentication system of the connected user. The identity authentication system of each connected user is different. The authentication systems of a large number of users use non-standard protocols or are systems developed independently by users. In other embodiments, the target authentication system to be connected can also be a device authentication system. Different device authentication systems also have the problem of inconsistent authentication standards, and therefore can also be applied to the method of the present invention.
[0051] A plug-in is a program written in accordance with a certain standard application program interface and is used to process files of a specific type. In this embodiment, the target authentication plug-in is a plug-in that matches the target authentication system to be connected and can implement authentication.
[0052] In this step, based on the specific requirements of the target authentication system to be connected, a corresponding target authentication plug-in can be determined for it. The target authentication plug-in can be determined by developing a corresponding target authentication plug-in according to the requirements of the target authentication system to be connected, or by selecting a plug-in that matches the target authentication system from existing authentication plug-ins. In this embodiment, the method for determining the target authentication plug-in is not limited.
[0053] Step 120: Load and run the target authentication plug-in on the network connection device.
[0054] The network connection device is used to connect to the identity authentication systems of various enterprises and can run without relying on the target authentication plug-in. However, the target authentication plug-in must rely on the network connection device to play its own function, and it cannot run normally only by the target authentication plug-in itself. In other words, the target authentication plug-in can be loaded onto the network connection device to run and dynamically update without causing any changes to the network connection device. In this embodiment, the network connection device can be a gateway.
[0055] Furthermore, the network connection device provides various services that enable the target authentication plug-in to be applied, including providing a loading method so that the target authentication plug-in can be loaded into the application program, thereby exchanging data with the target authentication plug-in.
[0056] Step 130: The target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request; wherein the target authentication request is a request filed to the target authentication system.
[0057] In this embodiment, the target authentication request refers to a request for identity authentication made by a user to a target authentication system, that is, a request for determining whether a user is a legitimate user.
[0058] The target authentication plug-in receives the target authentication request, performs authentication-related processing and sends it to the target authentication system, obtains the processing result of the target authentication system on the target authentication request, and returns it to the request initiator of the target authentication request.
[0059] The authentication method provided by the present invention determines the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected; loads and runs the target authentication plug-in on the network connection device; the target authentication plug-in processes the received target authentication request to obtain the authentication result of the target authentication request; the authentication method provided by the present invention can quickly complete the connection with the target authentication system, and due to the target authentication plug-in update mechanism, the network connection device itself does not need to be upgraded, so that the network connection device can run stably and bring a better user experience.
[0060] Based on any of the above embodiments, in this embodiment, the target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request, including:
[0061] The received target authentication request is converted into a format suitable for processing by the target authentication system, and / or the authentication result received from the target authentication system is converted into a preset format.
[0062] As mentioned in the previous description, the protocol used by the target authentication system may be different from the protocol used in the network connection device. Once the two protocols are different, the message that can be transmitted in the network connection device will not be recognized by the target authentication system, and vice versa, the message that can be transmitted by the target authentication system will not be recognized by the target authentication system.
[0063] To this end, in this embodiment, the target authentication plug-in is used to implement the format conversion of the message. For example, if the authentication request and response predefined by the network connection device are data in JSON format, and the target authentication system adopts the authentication protocol in XML format, the target authentication plug-in needs to convert the target authentication request from the request data in JSON format to the XML format required by the target authentication system, and then send it to the target authentication system; for another example, the target authentication plug-in will convert the authentication result from the XML format returned by the target authentication system to the JSON format predefined by the network connection device, and then return it to the network connection device.
[0064] The authentication method provided by the present invention can achieve docking between the target authentication system and the network connection device by converting the received target authentication request into a form suitable for processing by the target authentication system, and / or converting the authentication result received from the target authentication system into a pre-set form, thereby overcoming the problem that the authentication message cannot be transmitted due to different formats.
[0065] Based on any of the above embodiments, in this embodiment, the target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request, including:
[0066] Converting the received target authentication request into a form suitable for processing by the target authentication system;
[0067] receiving a first authentication result from the target authentication system;
[0068] Based on the target authentication request, obtaining a second authentication result;
[0069] The authentication result of the target authentication request is obtained according to the first authentication result and the second authentication result, and the authentication result of the target authentication request is converted into a preset format.
[0070] In this embodiment, based on the format agreed upon by the target authentication plug-in and the network connection device, the target authentication plug-in converts the target authentication request into the format required by the target authentication system and sends it to the target authentication system. The target authentication system authenticates the target authentication request, obtains an authentication result as a first authentication result, and sends the first authentication result to the target authentication plug-in. The target authentication plug-in authenticates the target authentication request based on its own processing logic, and obtains an authentication result as a second authentication result. According to the first authentication result and the second authentication result, a final authentication result is obtained.
[0071] That is to say, in the entire authentication process, the target authentication system is only responsible for a part of the authentication process. After obtaining the user information of the target authentication request, the target authentication plug-in will also judge the user's attributes, for example, whether the employee attribute is a formal employee, whether it belongs to a specific organization, etc. Only when the preset authentication conditions are met, the target authentication plug-in will return a successful authentication. Finally, the target plug-in converts the result of the target authentication request into a pre-set format.
[0072] The authentication method provided by the present invention jointly authenticates the target authentication request through the target authentication system and the target authentication plug-in. The target authentication plug-in not only quickly completes the docking of the target authentication system, but also has its own processing logic, enriching the function of the target authentication plug-in. Moreover, due to the target authentication plug-in update mechanism, the network connection device itself does not need to be upgraded, so that the network connection device can run stably, bringing a better user experience.
[0073] Based on any of the above embodiments, in this embodiment, determining the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected includes:
[0074] Setting a configuration unit of a target authentication plug-in; wherein the configuration unit is used to receive a configuration value adapted to the requirements of the target authentication system;
[0075] Setting an initialization unit of the target authentication plug-in; wherein the initialization unit is used to initialize the target authentication plug-in according to the configuration value transmitted by the configuration interface;
[0076] According to the requirements of the target authentication system, a core processing unit of the target authentication plug-in is set; wherein the core processing unit is used to convert the received target authentication request into a form suitable for processing by the target authentication system, and / or convert the received authentication result into a pre-set form;
[0077] A termination unit of the target authentication plug-in is set; wherein the termination unit is used to implement the finishing work after the authentication is completed.
[0078] In this embodiment, the development process of the target authentication plug-in is described.
[0079] In the process of developing a target authentication plug-in, it is necessary to set a configuration unit for the target authentication plug-in. Since different authentication systems may have different requirements, the configuration unit can be used to configure the target authentication plug-in with configuration values that are adapted to the requirements of the target authentication system. In one example, the configuration unit of the target authentication plug-in is defined as an interface named config_define().
[0080] For example, suppose the target authentication system needs to provide three types of information during authentication connection:
[0081] URL address information of the target authentication system;
[0082] AppId, the target authentication system identifies the application identity based on AppId;
[0083] AppKey is used for encryption and verification of data during the authentication request process.
[0084] Then after successfully installing the target authentication plugin, the network connection device calls config_define() and returns the following information:
[0085] URL: string, URL address type;
[0086] AppId: integer;
[0087] AppKey: string.
[0088] At this point, the network connection device can generate a web form based on this information, and the administrator can fill in the relevant configuration. After the configuration is successful, the target authentication plug-in can work normally.
[0089] In the process of developing a target authentication plug-in, it is necessary to set an initialization unit for the target authentication plug-in. Before the target authentication plug-in works, the initialization unit needs to assign configuration values to the parameters in the plug-in so that the target authentication plug-in is ready to work. In an example, the initialization unit is defined as an interface named start_auth(config).
[0090] Based on the example in the configuration unit above, after the administrator has configured it, the network connection device can call start_auth to initialize the authentication plug-in module. The parameter to be passed by the initialization unit is the configuration information filled in by the administrator. The value of config can be:
[0091] {"url":"http: / / a.com","appid":1001,"appkey":"xxxxx"}.
[0092] In the process of developing the target authentication plug-in, it is also necessary to set up a core processing unit for the target authentication plug-in. The core processing unit is the core functional unit of the target authentication plug-in. In this embodiment, the core processing unit at least needs to be able to complete the function of converting the received target authentication request into a form suitable for processing by the target authentication system, and / or converting the received authentication result into a pre-set form. In one example, the core processing unit of the target authentication plug-in is defined as an interface named do_auth(request, response). The format conversion performed by the core processing unit is completed during the development of the target authentication plug-in. How to convert depends on the development document of the target authentication system.
[0093] Based on the examples in the initialization unit above, we can know from the target authentication system's documentation that the three pieces of information, URL, AppId, and AppKey, need to be provided during authentication docking, and the authentication format needs to be converted between JSON and XML. When the network connection device calls do_auth(request, response), it means that user authentication is to be performed. The authentication request data is written in the request parameter, and the return result data is written in the response parameter. The target authentication plug-in implements do_auth. First, it obtains the value of the request parameter: {"username":"user1","password":"xxxxx"}. According to the authentication docking document, the JSON format of the request is converted to XML format. The constructed request can be:
[0094] <? xml version="1.0" encoding="utf-8"? >
[0095] <soap>
[0096] <appid> 1001< / appid>
[0097] <appkey> xxxxx< / appkey>
[0098] <user> user1< / user>
[0099] <pass> xxxxx< / pass>
[0100] < / soap>
[0101] The request is sent to the URL address in config for authentication, and the authentication system returns:
[0102] <? xml version="1.0" encoding="utf-8"? >
[0103] <soap>
[0104] <status> OK< / status>
[0105] <message> success< / message>
[0106] < / soap>
[0107] The target authentication plugin then converts the returned XML into a pre-set JSON format:
[0108] {"result":"ok"}
[0109] The result is saved in the response parameter and returned to the network connection device, and the subsequent process can be carried out according to the authentication result.
[0110] In the process of developing the target authentication plug-in, it is also necessary to set a termination unit for the target authentication plug-in. After the target authentication plug-in completes the authentication work, the termination unit needs to perform the finishing work such as releasing the occupied resources. In one example, the termination unit of the target authentication plug-in is defined as an interface named end_auth().
[0111] The authentication method provided by the present invention develops a target authentication plug-in adapted to the target authentication system according to the requirements of the target authentication system, so that the target authentication plug-in can achieve the connection between the target authentication system and the network connection device.
[0112] Based on any of the above embodiments, in this embodiment, determining the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected includes:
[0113] Setting a configuration unit of a target authentication plug-in; wherein the configuration unit is used to receive a configuration value adapted to the requirements of the target authentication system;
[0114] Setting an initialization unit of the target authentication plug-in; wherein the initialization unit is used to initialize the target authentication plug-in according to the configuration value transmitted by the configuration interface;
[0115] According to the requirements of the target authentication system, a core processing unit of the target authentication plug-in is set; wherein the core processing unit is used to convert the received target authentication request into a form suitable for processing by the target authentication system, and receive a first authentication result from the target authentication system; is used to obtain a second authentication result based on the target authentication request; is also used to obtain an authentication result of the target authentication request based on the first authentication result and the second authentication result, and convert the authentication result of the target authentication request into a pre-set form;
[0116] A termination unit of the target authentication plug-in is set; wherein the termination unit is used to implement the finishing work after the authentication is completed.
[0117] In the previous embodiment, the development process of the target authentication plug-in is described. In this embodiment, another implementation of the development process of the target authentication plug-in is described.
[0118] Compared with the previous embodiment, in this embodiment, there are certain differences in setting the core processing unit of the target authentication plug-in.
[0119] The core processing unit provided in this embodiment not only has the function of protocol format conversion, but also has a partial authentication function. Therefore, when providing the core processing unit, it is necessary to provide authentication logic.
[0120] Based on the previous example, in this example, in addition to authentication, it is also necessary to implement control so that only users with specified roles can log in to the network connection device. In addition to the existing three values such as URL, the administrator is also required to configure the allowed role list role during config. In this example, the role list is configured as regular employees and interns. When the target authentication system succeeds in authentication, in addition to the authentication status, it also needs to return the user's role. The target authentication plug-in can determine whether to allow login based on the administrator's configuration when obtaining the authentication result. Specifically, if a user's account and password are successfully verified, but the role field in the returned success result is: temporary employee, which is not in the allowed list configured by the administrator, the authentication plug-in will still return authentication failure: {"result":"error","error_message":"user role not allowed"}.
[0121] The configuration of other units in the target authentication plug-in is essentially the same as that in the previous embodiment, and therefore will not be repeated in this embodiment.
[0122] The authentication method provided by the present invention develops a target authentication plug-in adapted to the target authentication system according to the requirements of the target authentication system, so that the target authentication plug-in can achieve the connection between the target authentication system and the network connection device, and can also realize part of the authentication function.
[0123] Based on any of the above embodiments, in this embodiment, loading and running the target authentication plug-in on the network connection device includes:
[0124] Loading the target authentication plug-in on the network connection device;
[0125] The configuration value is delivered to the target authentication plug-in according to the requirement of the target authentication system, and the target authentication plug-in is initialized according to the configuration value.
[0126] In this embodiment, after the target authentication plug-in is loaded onto the network connection device, the administrator transfers configuration values to the target authentication plug-in according to the requirements of the target authentication system, and then initializes the target authentication plug-in according to the configuration values.
[0127] In the previous embodiment, the configuration process of the target authentication plug-in has been explained. After the administrator configures it, the content of config will be saved in the database or file. When the user initiates an authentication request, the network connection device first reads the authentication-related configuration content config from the database, and then calls start_auth(config) to initialize the plug-in. The configuration value is passed to the plug-in through the config parameter at this time. After the initialization is completed, do_auth(request, response) is called for authentication. After the authentication is completed, end_auth() is called for the plug-in to finish the work.
[0128] The authentication method provided by the present invention initializes the target authentication plug-in according to the configuration value determined by the requirements of the target authentication system, thereby further enabling the target authentication plug-in to better complete the docking with the target authentication system. Moreover, due to the target authentication plug-in update mechanism, the network connection device itself does not need to be upgraded, so that the network connection device can operate stably, bringing a better user experience, and achieving significant progress.
[0129] Based on any of the above embodiments, in this embodiment, before loading and running the target authentication plug-in on the network connection device, the method further includes:
[0130] Encrypting the target authentication plug-in to obtain an encrypted target authentication plug-in;
[0131] Accordingly, loading and running the target authentication plug-in on the network connection device includes:
[0132] receiving the encrypted target authentication plug-in on the network connected device;
[0133] The encrypted target authentication plug-in is decrypted, and if the decryption is successful, the target authentication plug-in is loaded and run on the network connection device.
[0134] In this embodiment, after the developer completes the development of a customized target authentication plug-in that interfaces with any target authentication system, the developer needs to submit the target authentication plug-in to the target authentication plug-in developer's internal signature system and use the private key to sign it, that is, to encrypt the target authentication plug-in. After the target authentication plug-in is uploaded to the network connection device, the network connection device will use a public key built into it at the beginning to verify the legitimacy of the target authentication plug-in. Only the target authentication plug-in that passes the verification will be loaded into the network connection system and run.
[0135] The authentication method provided by the present invention ensures that the target authentication plug-in will not be forged by encrypting the target authentication plug-in, thereby ensuring the security of the network connection system and enabling the target authentication plug-in to better complete the docking with the target authentication system. Moreover, due to the target authentication plug-in update mechanism, the network connection device itself does not need to be upgraded, so that the network connection device can operate stably, bringing a better user experience and achieving significant progress.
[0136] An authentication device provided by the present invention is described below. The authentication device described below and the authentication method described above can be referenced to each other.
[0137] Figure 2 The structural diagram of the authentication device provided by the present invention is as follows: Figure 2 As shown, the authentication device provided by the present invention includes:
[0138] The target authentication plug-in development module is used to determine the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected;
[0139] A target authentication plug-in loading module, used to load and run the target authentication plug-in on a network connection device;
[0140] The target authentication plug-in application module is used for the target authentication plug-in to process the received target authentication request to obtain the authentication result of the target authentication request; wherein the target authentication request is a request filed to the target authentication system.
[0141] The authentication device provided by the present invention determines the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected through the target authentication plug-in development module 210, and the target authentication plug-in loading module 220 loads and runs the target authentication plug-in on the network connection device; the target authentication plug-in application module 230 processes the received target authentication request through the target authentication plug-in to obtain the authentication result of the target authentication request. The present invention enables the target authentication plug-in to quickly complete the connection with the target authentication system, and due to the target authentication plug-in update mechanism, the network connection device itself does not need to be upgraded, so that the network connection device can run stably, bringing a better user experience, and achieving significant progress.
[0142] Based on any of the above embodiments, in this embodiment, according to an authentication device provided by the present invention, the device further includes:
[0143] The conversion submodule of the target authentication plug-in application module is used to convert the received target authentication request into a form suitable for processing by the target authentication system, and / or convert the authentication result received from the target authentication system into a preset form.
[0144] The authentication device provided by the present invention converts the received target authentication request into a form suitable for processing by the target authentication system through the conversion submodule of the target authentication plug-in application module, and / or converts the authentication result received from the target authentication system into a pre-set form, thereby realizing the connection between the target authentication system and the network connection device, and overcoming the problem that the authentication message cannot be transmitted due to different formats.
[0145] Based on any of the above embodiments, in this embodiment, according to an authentication device provided by the present invention, the device further includes:
[0146] The conversion authentication submodule of the target authentication plug-in application module is used to convert the received target authentication request into a form suitable for processing by the target authentication system; receive a first authentication result from the target authentication system; obtain a second authentication result based on the target authentication request; obtain the authentication result of the target authentication request based on the first authentication result and the second authentication result, and convert the authentication result of the target authentication request into a pre-set form.
[0147] The authentication device provided by the present invention utilizes the target authentication system and the target authentication plug-in to jointly authenticate the target authentication request through the conversion authentication submodule of the target authentication plug-in application module. The target authentication plug-in not only quickly completes the docking of the target authentication system, but also has its own processing logic, enriching the function of the target authentication plug-in. Moreover, due to the target authentication plug-in update mechanism, the network connection device itself does not need to be upgraded, so that the network connection device can run stably, bringing a better user experience.
[0148] Based on any of the above embodiments, in this embodiment, according to an authentication device provided by the present invention, the device further includes:
[0149] A configuration unit of the conversion submodule of the target authentication plug-in development module is used to set the configuration unit of the target authentication plug-in; wherein the configuration unit is used to receive configuration values adapted to the requirements of the target authentication system;
[0150] The initialization unit of the conversion authentication submodule of the target authentication plug-in development module is used to set the initialization unit of the target authentication plug-in; wherein the initialization unit is used to initialize the target authentication plug-in according to the configuration value transmitted by the configuration interface;
[0151] The core processing unit of the conversion authentication submodule of the target authentication plug-in development module is used to set the core processing unit of the target authentication plug-in according to the requirements of the target authentication system; wherein the core processing unit is used to convert the received target authentication request into a form suitable for processing by the target authentication system, and / or convert the received authentication result into a pre-set form;
[0152] The termination unit of the conversion authentication submodule of the target authentication plug-in development module is used to set the termination unit of the target authentication plug-in; wherein, the termination unit is used to implement the finishing work after the authentication is completed.
[0153] The authentication device provided by the present invention develops a target authentication plug-in adapted to the target authentication system according to the requirements of the target authentication system by setting a conversion authentication submodule of the target authentication plug-in development module, thereby enabling the target authentication plug-in to achieve docking between the target authentication system and the network connection device.
[0154] Based on any of the above embodiments, in this embodiment, according to an authentication device provided by the present invention, the device further includes:
[0155] A configuration unit of the conversion submodule of the target authentication plug-in development module is used to set the configuration unit of the target authentication plug-in; wherein the configuration unit is used to receive configuration values adapted to the requirements of the target authentication system;
[0156] The initialization unit of the conversion submodule of the target authentication plug-in development module is used to set the initialization unit of the target authentication plug-in; wherein the initialization unit is used to initialize the target authentication plug-in according to the configuration value transmitted by the configuration interface;
[0157] The core processing unit of the conversion submodule of the target authentication plug-in development module is used to set the core processing unit of the target authentication plug-in according to the requirements of the target authentication system; wherein the core processing unit is used to convert the received target authentication request into a form suitable for processing by the target authentication system, and receive a first authentication result from the target authentication system; is used to obtain a second authentication result based on the target authentication request; is also used to obtain an authentication result of the target authentication request based on the first authentication result and the second authentication result, and convert the authentication result of the target authentication request into a preset form;
[0158] The termination unit of the conversion submodule of the target authentication plug-in development module is used to set the termination unit of the target authentication plug-in; wherein, the termination unit is used to implement the finishing work after the authentication is completed.
[0159] The authentication method provided by the present invention develops a target authentication plug-in adapted to the target authentication system according to the requirements of the target authentication system by setting a conversion submodule of the target authentication plug-in development module, thereby enabling the target authentication plug-in to achieve docking between the target authentication system and the network connection device, and also to achieve partial authentication functions.
[0160] Based on any of the above embodiments, in this embodiment, according to an authentication device provided by the present invention, the device further includes:
[0161] A loading unit of a target authentication plug-in loading module, used to load the target authentication plug-in on a network connection device;
[0162] The initialization unit of the target authentication plug-in loading module is used to transfer configuration values to the target authentication plug-in according to the requirements of the target authentication system, and initialize the target authentication plug-in according to the configuration values.
[0163] The authentication device provided by the present invention initializes the target authentication plug-in according to the configuration value determined by the requirements of the target authentication system by setting the loading unit and the initialization unit of the target authentication plug-in loading module, thereby further enabling the target authentication plug-in to better complete the docking with the target authentication system. Moreover, due to the target authentication plug-in update mechanism, the network connection device itself does not need to be upgraded, so that the network connection device can operate stably, bringing a better user experience, and achieving significant progress.
[0164] Based on any of the above embodiments, in this embodiment, according to an authentication device provided by the present invention, the device further includes:
[0165] A target authentication plug-in encryption module, used to encrypt the target authentication plug-in to obtain an encrypted target authentication plug-in;
[0166] Correspondingly, the target authentication plug-in loading module also includes:
[0167] A receiving unit of the target authentication plug-in loading module is used to receive the encrypted target authentication plug-in on the network connection device;
[0168] The decryption unit of the target authentication plug-in loading module is used to decrypt the encrypted target authentication plug-in, and if the decryption is successful, load and run the target authentication plug-in on the network connection device.
[0169] The authentication device provided by the present invention encrypts the target authentication plug-in by setting a target authentication plug-in encryption module and correspondingly setting a receiving unit and a decryption unit of the target authentication plug-in loading module, thereby ensuring that the target authentication plug-in will not be forged, protecting the security of the network connection system, and enabling the target authentication plug-in to better complete the docking with the target authentication system. Moreover, due to the target authentication plug-in update mechanism, the network connection device itself does not need to be upgraded, so that the network connection device can operate stably, bringing a better user experience, and achieving significant progress.
[0170] In another aspect, the present invention further provides an electronic device, Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3As shown, the electronic device may include a processor 310, a communication bus 340, a memory 330, a communication interface 320, and a computer program stored in the memory 330 and executable on the processor 310, wherein the processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340, and the processor 310 may call the logic instructions in the memory 330 to execute the authentication method, which includes:
[0171] Determine the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected;
[0172] Loading and running the target authentication plug-in on the network connection device;
[0173] The target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request; wherein the target authentication request is a request filed to the target authentication system.
[0174] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, an authentication method can be implemented. The method includes:
[0175] Determine the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected;
[0176] Loading and running the target authentication plug-in on the network connection device;
[0177] The target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request; wherein the target authentication request is a request filed to the target authentication system.
[0178] Finally, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer can implement an authentication method, the method comprising:
[0179] Determine the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected;
[0180] Loading and running the target authentication plug-in on the network connection device;
[0181] The target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request; wherein the target authentication request is a request filed to the target authentication system.
[0182] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0183] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0184] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An authentication method, It is characterized in that include: Determine the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected; Loading and running the target authentication plug-in on the network connection device; The network connection device is used to connect to the target authentication system, and the network connection device includes a gateway; The target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request; wherein the target authentication request is a request made by a user to the target authentication system; Determining the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected includes: Setting a configuration unit of a target authentication plug-in; wherein the configuration unit is used to receive a configuration value adapted to the requirements of the target authentication system; An initialization unit of a target authentication plug-in is set; wherein the initialization unit is used to initialize the target authentication plug-in according to the configuration value transmitted by the configuration interface.
2. The authentication method according to claim 1, It is characterized in that The target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request, including: The received target authentication request is converted into a format suitable for processing by the target authentication system, and / or the authentication result received from the target authentication system is converted into a preset format.
3. The authentication method according to claim 2, It is characterized in that The target authentication plug-in processes the received target authentication request to obtain an authentication result of the target authentication request, including: Converting the received target authentication request into a form suitable for processing by the target authentication system; receiving a first authentication result from the target authentication system; Based on the target authentication request, obtaining a second authentication result; The authentication result of the target authentication request is obtained according to the first authentication result and the second authentication result, and the authentication result of the target authentication request is converted into a preset format.
4. The authentication method according to claim 2, It is characterized in that The step of determining a corresponding target authentication plug-in according to the requirements of the target authentication system to be connected further includes: According to the requirements of the target authentication system, a core processing unit of the target authentication plug-in is set; wherein the core processing unit is used to convert the received target authentication request into a form suitable for processing by the target authentication system, and / or convert the received authentication result into a pre-set form; A termination unit of the target authentication plug-in is set; wherein the termination unit is used to implement the finishing work after the authentication is completed.
5. The authentication method according to claim 3, It is characterized in that The step of determining a corresponding target authentication plug-in according to the requirements of the target authentication system to be connected further includes: According to the requirements of the target authentication system, a core processing unit of the target authentication plug-in is set; wherein the core processing unit is used to convert the received target authentication request into a form suitable for processing by the target authentication system, and receive a first authentication result from the target authentication system; is used to obtain a second authentication result based on the target authentication request; is also used to obtain an authentication result of the target authentication request based on the first authentication result and the second authentication result, and convert the authentication result of the target authentication request into a pre-set form; A termination unit of the target authentication plug-in is set; wherein the termination unit is used to implement the finishing work after the authentication is completed.
6. The authentication method according to claim 4 or 5, It is characterized in that The step of loading and running the target authentication plug-in on the network connection device includes: Loading the target authentication plug-in on the network connection device; The configuration value is delivered to the target authentication plug-in according to the requirement of the target authentication system, and the target authentication plug-in is initialized according to the configuration value.
7. The authentication method according to any one of claims 1 to 5, It is characterized in that Before loading and running the target authentication plug-in on the network connection device, the method further includes: Encrypting the target authentication plug-in to obtain an encrypted target authentication plug-in; Accordingly, loading and running the target authentication plug-in on the network connection device includes: receiving the encrypted target authentication plug-in on the network connected device; The encrypted target authentication plug-in is decrypted, and if the decryption is successful, the target authentication plug-in is loaded and run on the network connection device.
8. An authentication device, It is characterized in that include: The target authentication plug-in development module is used to determine the corresponding target authentication plug-in according to the requirements of the target authentication system to be connected; A target authentication plug-in loading module, used to load and run the target authentication plug-in on a network connection device; The network connection device is used to connect to the target authentication system, and the network connection device includes a gateway; A target authentication plug-in application module, used for the target authentication plug-in to process the received target authentication request to obtain the authentication result of the target authentication request; wherein the target authentication request is a request made by the user to the target authentication system; The device also includes: A configuration unit of the conversion submodule of the target authentication plug-in development module is used to set the configuration unit of the target authentication plug-in; wherein the configuration unit is used to receive configuration values adapted to the requirements of the target authentication system; The initialization unit of the conversion authentication submodule of the target authentication plug-in development module is used to set the initialization unit of the target authentication plug-in; wherein the initialization unit is used to initialize the target authentication plug-in according to the configuration value transmitted by the configuration interface.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the authentication method according to any one of claims 1 to 7 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the authentication method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising computer executable instructions, It is characterized in that When the instructions are executed, they are used to implement the steps of the authentication method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and system for user login with multiple plug-in type authentication ways
CN106790002A
Third-party authentication method, device and application system server
CN106878333A
Service-based authentication access method
CN110417779A
Method for realizing independent authentication of API gateway based on application
CN112818325A
Dual factor authentication with active directory and one time password token combination
CN113316783A
