A license authentication method and computer equipment

By introducing nodes that enable the license authentication function in the LAN and providing the license authorization file, the problems of insufficient security and low efficiency of the traditional license authentication method are solved, and efficient and reliable license management in the LAN are achieved.

CN115834129BActive Publication Date: 2024-11-19XFUSION DIGITAL TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202211310382.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-25
Publication Date
2024-11-19
Estimated Expiration
2042-10-25

AI Technical Summary

Technical Problem

The traditional License authentication method has problems such as insufficient security and low authentication efficiency in the client/server architecture. Especially in large-scale distributed usage scenarios, the update of License file requires the device to be operated separately, forming a great amount of time and manpower. Cost, low certification efficiency.

Method used

Introduce nodes that enable the license authentication function in the LAN. After searching and activate the usage permissions of the target client, they provide license authorization files to other nodes to realize license management in the LAN, reduce dependence on the central server, improve authentication efficiency and enhance security sex.

Benefits of technology

Through the inter-node license authentication service within the local area network, the connection demand for central servers is reduced, the authentication efficiency is improved, the problem that local authentication information is easily forged and copied is solved, and the reliability and security of license authentication is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834129B_ABST
    Figure CN115834129B_ABST
Patent Text Reader

Abstract

The present application discloses a license authentication method and computer equipment, which relates to the field of communication technology and can improve the efficiency and security of license authentication. The method is applied to a first node in a local area network; the first node contains an activated target client; the method comprises: receiving a license authentication request sent by a second node; the license authentication request is used to request verification of the second node's use authority to the target client; the second node is a node in the local area network, and the second node contains an unactivated target client; when it is determined that the second node has the use authority of the target client, a license authorization file is sent to the second node; the license authorization file is used for the second node to activate the target client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a license authentication method and computer equipment. Background Art

[0002] Currently, in software with a client / server (C / S) architecture, security authentication of the client is performed through a license authentication method.

[0003] The traditional license authentication method mainly adopts the key verification mechanism, and verifies through the license file pre-stored by the client manufacturer. Among them, the license file mainly includes product authentication information (which can be in the form of a string or a fixed file). The disadvantages of the traditional license authentication method are: product authentication information is easy to be forged and copied, which leads to a greater risk of the client's license being stolen, reducing the security and reliability of the network. In addition, in large-scale distributed usage scenarios, the update of the license file requires separate operation of the device, resulting in a huge time and labor cost, and low authentication efficiency.

[0004] Therefore, the license authentication method provided in the related art has the problems of insufficient security and low authentication efficiency. Summary of the invention

[0005] The present application provides a license authentication method and a computer device, which can improve the efficiency and security of license authentication.

[0006] In a first aspect, the present application provides a license authentication method, which is applied to a first node in a local area network; the first node includes an activated target client; the method includes: receiving a license authentication request sent by a second node; the license authentication request is used to request verification of the second node's use authority for the target client; the second node is a node in the local area network, and the second node includes an unactivated target client; when it is determined that the second node has the use authority of the target client, sending a license authorization file to the second node; the license authorization file is used by the second node to activate the target client.

[0007] It is understandable that after activating the target client, the first node can enable its own license authentication function and provide license authentication services for other nodes in the local area network. In this way, compared with the method in the related art where each node in the local area network needs to perform license authentication with the central server, the embodiment of the present application only performs license authentication with the central server once, and can perform license management on all nodes in the local area network, solving the problem of difficulty in connecting some nodes in the local area network with the central server, providing a convenient authentication method for complex network environments, and improving authentication efficiency.

[0008] In addition, compared with the method in the related art in which the license authorization file is pre-stored in each node and each node performs local verification, the embodiment of the present application provides a license authentication service by enabling a node with a license authentication function in a local area network, and sends the license authorization file after verifying that the node has the right to use the target client; the problem that the authentication information is easily forged and copied in local verification is solved, and the reliability and security of the license authentication are ensured.

[0009] In a possible implementation, before receiving the license authentication request sent by the second node, the method further includes: searching whether there is a node with a license authentication function enabled in the local area network; and if there is no node with a license authentication function enabled in the local area network, enabling the license authentication function of the first node.

[0010] It is understandable that after completing the license authentication, the first node has the license authentication function and can provide license authentication services for other nodes in the local area network. However, while the first node is performing license authentication, other nodes in the local area network may have completed license authentication. Therefore, after the first node activates the target client, it is necessary to search again whether there is a node in the local area network that has enabled the license authentication function, and then decide whether to enable the license authentication function.

[0011] In another possible implementation, the above-mentioned search for whether there is a node with a license authentication function enabled in the local area network includes: obtaining identity information of at least one node in the local area network; when the identity information of at least one node includes a license authentication identifier, determining that there is a node with a license authentication function enabled in the local area network; wherein the license authentication identifier is used to indicate that the corresponding node has enabled the license authentication function; when the identity information of at least one node does not include the license authentication identifier, determining that there is no node with a license authentication function enabled in the local area network.

[0012] It is understandable that when the first node performs license authentication, it needs to determine to whom to perform the license authentication. Therefore, the first node first searches whether there is a node with the license authentication function enabled in the local area network. If so, the first node authenticates the node with the license authentication function enabled in the local area network; if not, the first node can authenticate the central server.

[0013] In another possible implementation, enabling the license authentication function of the first node includes: obtaining information of a node having usage rights of the target client in the local area network, and adding a license authentication identifier to the identity information of the first node.

[0014] It can be understood that the first node obtains the information of the node with the target client's usage rights in the local area network, so that when the first node receives the license authentication request from other nodes in the local area network, it can confirm whether the node has the target client's usage rights. At the same time, the first node modifies its own identity information and adds the license authentication identifier to the identity information. In this way, other nodes in the local area network know that the first node has enabled the license authentication function by querying the identity information of the first node.

[0015] In another possible implementation, before receiving the license authentication request sent by the second node, the above method also includes: storing the authentication interface information of the first node in a database of the local area network; the authentication interface information defines the communication method for performing license authentication between the first node and the second node, which is used for the second node to obtain and send a license authentication request to the first node based on the communication method.

[0016] It can be understood that since the authentication interface information defines the communication method for other nodes in the local area network to communicate with the first node for license authentication, storing the authentication interface information of the first node in the database of the local area network can enable other nodes in the local area network to obtain and send a license authentication request to the first node based on the communication method.

[0017] In a second aspect, the present application provides a license authentication method, which is applied to a second node in a local area network; the second node includes an unactivated target client; the method includes: finding a first node in the local area network that has an authentication service function enabled; sending a license authentication request to the first node, the license authentication request is used by the first node to determine whether the second node has the right to use the target client, and when it is determined that the second node has the right to use the target client, sending a license authorization file to the first node; the license authorization file is used by the second node to activate the target client; receiving the license authorization file sent by the first node; and activating the target client according to the license authorization file.

[0018] It is understandable that a node in a local area network (any node in the local area network that has not activated the target client) can perform license authentication on a node in the local area network that has enabled the license authentication function. Specifically, after finding a node in the local area network that has enabled the license authentication function, the node in the local area network sends a license authentication request (used to determine whether the node has the right to use the target client) to the node that has enabled the license authentication function, and if the node has the right to use the target client, sends a license authorization file (used to activate the target client) to the node. In this way, compared to the method in the related art in which each node in the local area network needs to perform license authentication on a central server, the embodiment of the present application only performs license authentication with the central server once, and can perform license management on all nodes in the local area network, solving the problem of difficulty in connecting some nodes in the local area network to the central server, providing a convenient authentication method for complex network environments, and improving authentication efficiency.

[0019] In addition, compared with the method in the related art in which the license authorization file is pre-stored in each node and each node performs local verification, the embodiment of the present application provides a license authentication service by enabling a node with a license authentication function in a local area network, and sends the license authorization file after verifying that the node has the right to use the target client; the problem that the authentication information is easily forged and copied in local verification is solved, and the reliability and security of the license authentication are ensured.

[0020] In a possible implementation, the above-mentioned searching for the first node with an authentication service function in the local area network includes: obtaining identity information of a node in the local area network; taking a node whose identity information includes a license authentication identifier as the first node; wherein the license authentication identifier is used to indicate that the corresponding node has enabled the license authentication function.

[0021] It is understandable that when performing license authentication, the second node needs to determine to whom to perform license authentication. Therefore, the second node first searches for the first node with the license authentication function enabled in the local area network and performs authentication with the first node.

[0022] In another possible implementation, the above-mentioned sending of a license authentication request to the first node includes: obtaining authentication interface information of the first node from a database of the local area network; the authentication interface information of the first node defines a communication method for performing license authentication between the second node and the first node; and sending a license authentication request to the first node according to the communication method.

[0023] It is understandable that the interface defines the way a node interacts with an external device, and different interfaces have different functions. For example, the authentication interface of the first node defines the communication method for other interfaces (such as the second node) in the local area network to perform license authentication with the first node. Therefore, if the second node needs to perform license authentication with the first node, it needs to send a license authentication request to the first node through the authentication interface of the first node.

[0024] In another possible implementation, after activating the target client according to the license authorization file, the method further includes: determining that a fault exists in the first node; obtaining the communication status of the second node; and enabling the license authentication function of the second node when the communication status of the second node meets preset conditions.

[0025] It can be understood that, in the method provided in the embodiment of the present application, when a failure occurs in the first node for enabling the license authentication function, causing the license authorization to be unable to proceed, a new node is selected from the nodes of the activated target client in the local area network to enable the license authentication function, and the license authentication service is provided in place of the first node, thereby ensuring that the license authentication service is not interrupted, improving the efficiency of the license authentication, and ensuring the reliability of the license authentication.

[0026] In a third aspect, the present application provides a license authentication device, which is applied to a first node in a local area network; the first node includes an activated target client, and the device includes: a receiving module, which is used to receive a license authentication request sent by a second node; the license authentication request is used to request verification of the second node's use authority for the target client; the second node is a node in the local area network, and the second node includes an unactivated target client; a sending module, which is used to send a license authorization file to the second node when it is determined that the second node has the use authority of the target client; the license authorization file is used for the second node to activate the target client.

[0027] In a possible implementation, the above-mentioned license authentication device also includes: a search module and an activation module; wherein the search module is used to search whether there is a node with a license authentication function activated in the local area network; the activation module is used to activate the license authentication function of the first node when there is no node with a license authentication function activated in the local area network.

[0028] In another possible implementation, the above-mentioned search module is specifically used to obtain the identity information of at least one node in the local area network; when the identity information of at least one node includes a license authentication identifier, it is determined that there is a node in the local area network with a license authentication function enabled; wherein the license authentication identifier is used to indicate that the corresponding node has enabled the license authentication function; when the identity information of at least one node does not include a license authentication identifier, it is determined that there is no node in the local area network with a license authentication function enabled.

[0029] In another possible implementation, the activation module is specifically used to obtain information of nodes in the local area network that have the use authority of the target client, and to add a license authentication identifier to the identity information of the first node.

[0030] In another possible implementation, the above-mentioned license authentication device also includes: a storage module, which is used to store the authentication interface information of the first node in a database of the local area network; the authentication interface information defines the communication method for license authentication between the first node and the second node, and is used for the second node to obtain and send a license authentication request to the first node based on the communication method.

[0031] In a fourth aspect, the present application also provides a license authentication device, which is applied to a second node in a local area network; the second node includes an unactivated target client, and the device includes: a search module, used to find a first node in the local area network that has an authentication service function enabled; a sending module, used to send a license authentication request to the first node, the license authentication request is used by the first node to determine whether the second node has the right to use the target client, and when it is determined that the second node has the right to use the target client, send a license authorization file to the first node; the license authorization file is used by the second node to activate the target client; a receiving module, used to receive the license authorization file sent by the first node; an activation module, used to activate the target client according to the license authorization file.

[0032] In a possible implementation, the search module is specifically used to obtain identity information of nodes in the local area network; a node whose identity information includes a license authentication identifier is used as the first node; wherein the license authentication identifier is used to indicate that the corresponding node has enabled the license authentication function.

[0033] In another possible implementation, the above-mentioned sending module is specifically used to obtain the authentication interface information of the first node from the database of the local area network; the authentication interface information of the first node defines the communication method for license authentication between the second node and the first node; and according to the communication method, a license authentication request is sent to the first node.

[0034] In another possible implementation, the above-mentioned license authentication device also includes: a fault recovery module, used to determine whether the first node has a fault; obtain the communication status of the second node; and enable the license authentication function of the second node when the communication status of the second node meets the preset conditions.

[0035] In a fifth aspect, the present application provides a license authentication device, applied to a first node in a local area network; the first node includes an activated target client; the device includes: an interface and a logic circuit, the logic circuit is used to execute any one of the license authentication methods provided in the first aspect above.

[0036] In a sixth aspect, the present application provides a license authentication device, which is applied to a second node in a local area network; the second node includes an unactivated target client; the device includes: an interface and a logic circuit, and the logic circuit is used to execute any one of the license authentication methods provided in the above second aspect.

[0037] In a seventh aspect, the present application provides a computer device, comprising a processor and a memory; the processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor so that the computer device implements any one of the license authentication methods provided in the first and second aspects above.

[0038] In an eighth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer executes any one of the license authentication methods provided in the first and second aspects above.

[0039] In a ninth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes any one of the license authentication methods provided in the first and second aspects above.

[0040] For the specific description of the third to ninth aspects and their various implementations in the present application, reference may be made to the detailed description in the first and second aspects and their various implementations; and for the beneficial effects of the third to ninth aspects and their various implementations, reference may be made to the analysis of the beneficial effects in the first and second aspects and their various implementations, which will not be repeated here.

[0041] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A schematic diagram of the structure of the hardware environment involved in a license authentication method provided in an embodiment of the present application;

[0043] Figure 2 A license authentication method provided in this application embodiment Figure 1 ;

[0044] Figure 3 A license authentication method provided in this application embodiment Figure 2 ;

[0045] Figure 4 A license authentication method provided in this application embodiment Figure 3 ;

[0046] Figure 5 A license authentication method provided in this application embodiment Figure 4 ;

[0047] Figure 6A schematic diagram of the structure of a license authentication device provided in an embodiment of the present application Figure 1 ;

[0048] Figure 7 A schematic diagram of the structure of a license authentication device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0049] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0050] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0051] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application 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 limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0052] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0053] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0054] As described in the background technology, the traditional license authentication method mainly adopts a key verification mechanism, which is verified through a license file pre-stored by the client manufacturer. Among them, the license file mainly includes product authentication information (which can be in the form of a string or a fixed file). The disadvantages of the traditional license authentication method are: the product authentication information is easy to be forged and copied, which leads to a greater risk of the client's license being stolen, reducing the security and reliability of the network. In addition, in large-scale distributed usage scenarios, the update of the license file requires separate operation of the device, resulting in a huge time and labor cost, and the authentication efficiency is low.

[0055] Therefore, the license authentication method provided in the related art has the problems of insufficient security and low authentication efficiency.

[0056] In view of the above technical problems, the embodiment of the present application provides a license authentication method, the idea of ​​which is that a node in a local area network (any node in the local area network that has not activated the target client) can perform license authentication on a node in the local area network that has enabled the license authentication function. Specifically, after the node in the local area network finds the node in the local area network that has enabled the license authentication function, it sends a license authentication request (used to determine whether the node has the right to use the target client) to the node that has enabled the license authentication function, and if the node has the right to use the target client, it sends a license authorization file (used to activate the target client) to the node. In this way, compared with the method in the related art in which each node in the local area network needs to perform license authentication on the central server, the embodiment of the present application can perform license authentication with the central server once, and can perform license management on all nodes in the local area network, solving the problem of difficulty in connecting some nodes in the local area network to the central server, providing a convenient authentication method for complex network environments, and improving authentication efficiency.

[0057] In addition, compared with the method in the related art in which the license authorization file is pre-stored in each node and each node performs local verification, the embodiment of the present application provides a license authentication service by enabling a node with a license authentication function in a local area network, and sends the license authorization file after verifying that the node has the right to use the target client; the problem that the authentication information is easily forged and copied in local verification is solved, and the reliability and security of the license authentication are ensured.

[0058] The embodiments provided in this application are described in detail below in conjunction with the accompanying drawings.

[0059] See also Figure 1 The operating environment involved in the embodiment of the present application is: a central server and a local area network composed of multiple clients, wherein the network topology structure of the local area network is a distributed network structure.

[0060] The central server is located at a remote end and is used to provide data management, data sharing, data maintenance, and concurrency control, etc. Optionally, the central server can be a single server, or a server cluster consisting of multiple servers. In some implementations, the server cluster can also be a distributed cluster.

[0061] Client is a device used to install software applications and provide local services to users. Exemplarily, the client can be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, virtual machine, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) and virtual reality (VR) devices. The present disclosure does not impose any special restrictions on the specific form of the client.

[0062] Exemplarily, the software application installed on the client may be Microsoft Office or Computer Aided Design Software (AutoCAD), etc.

[0063] It should be noted that the execution subject of the license authentication method provided in the embodiment of the present application is not limited. For example, the method can be executed by any client in the local area network.

[0064] The following is a detailed introduction to a software license authentication method provided in an embodiment of the present application.

[0065] In some embodiments, the local area network includes multiple nodes, and the multiple nodes may include a first node and a second node (each client in the local area network can be regarded as a node). Taking the license authentication process of the first node and the second node as an example, the license authentication method provided in the embodiment of the present application is explained.

[0066] 1. License authentication process of the first node.

[0067] In some embodiments, the first node is any node in the local area network that needs to perform license authentication (for example, the first node can be the first node in the local area network to perform license authentication). Figure 2 As shown, the license authentication process of the first node can be implemented as follows:

[0068] S101. A first node searches a local area network for a node with a license authentication function enabled.

[0069] Among them, License refers to the software license, which is a standard contract signed between the software author and the user to stipulate and restrict the user's rights to use the software (and the source code of the software).

[0070] License authentication refers to confirming whether a node has the right to use the software according to the license file. Exemplarily, the license authentication in the embodiment of the present application refers to confirming whether a node has the right to use the target client. The target client can be any client of the software to be activated on the node.

[0071] The license authentication function refers to the ability to perform license authentication and generate a license authorization file.

[0072] In some embodiments, the above-mentioned search for whether there is a node with a license authentication function enabled in the local area network can be implemented as the following steps:

[0073] Step a1: Obtain identity information of at least one node in the local area network.

[0074] The node identity information includes the node identity, which is used to characterize the function of the node in the local area network. For example, if the node identity is a license authentication identifier, it means that the node has enabled the license authentication function and can provide license authentication services for other nodes in the local area network.

[0075] As a possible implementation method, the first node sends an identity query request to at least one node (such as each node) in the local area network, and the identity query request is used to obtain the identity information of the node; accordingly, at least one node in the local area network responds to the identity query information sent by the first node and returns its own identity information to the first node.

[0076] Step a2: When the identity information of at least one node includes a license authentication identifier, determine whether there is a node with a license authentication function enabled in the local area network.

[0077] The license authentication flag is used to indicate that the corresponding node has enabled the license authentication function.

[0078] Step a3: When the identity information of at least one node does not include the license authentication identifier, determine that there is no node with the license authentication function enabled in the local area network.

[0079] It is understandable that when the first node performs license authentication, it needs to determine to whom to perform the license authentication. Therefore, the first node first searches whether there is a node with the license authentication function enabled in the local area network. If so, the first node authenticates the node with the license authentication function enabled in the local area network; if not, the first node executes the following step S102 to authenticate to the central server.

[0080] S102: When there is no node with a license authentication function enabled in the local area network, the first node sends a first license authentication request to the central server.

[0081] The first license authentication request is used to request verification of the first node's permission to use the target client.

[0082] Exemplarily, the first license authentication request may include device information of the first node and information of the target client, etc. The device information of the first node may be: a hardware address (media access control, MAC) and / or an Internet protocol (internet protocol, IP) address of the first node; the information of the target client may be a name of the target client and / or an identification code (identification, ID) of the target client, etc.

[0083] S103: When determining that the first node has the use authority of the target client, the central server sends a first license authorization file to the first node.

[0084] The first license authorization file is used by the first node to activate the target client. Exemplarily, the first license authorization file may include an activation code of the target client, so that after receiving the first license authorization file, the first node may activate the target client according to the authorization activation code.

[0085] In some embodiments, when the central server determines that the first node has the right to use the target client, the central server uses the public key to encrypt the authorization activation code of the target client, generates a first license authorization file based on the encrypted authorization activation code, and sends the first license authorization file to the first node.

[0086] In some embodiments, the above method further includes: the central server determining, based on the first license authentication request, whether the first node has the use authority of the target client.

[0087] As a possible implementation, the central server includes a license management file, which records the information of nodes in the local area network that have the target client's use rights. For example, assuming that the local area network includes: node 1, node 2, node 3 and node 4; wherein the nodes that have the target client's use rights are: node 1, node 2 and node 3, then the above license management file may include the content shown in the following Table 1:

[0088] Table 1

[0089] Authorized Software Used by Time limit Target Client Node 1 2022.01.01-2023.01.01 Target Client Node 2 2022.02.01-2023.02.01 Target Client Node 3 2022.03.01-2023.03.01

[0090] In this way, the central server can determine whether the first node has the use permission of the target client according to the identifier of the first node carried in the first license authentication request and the identifier of the node having the use permission of the target client in the license management file.

[0091] Exemplarily, assuming that the first license authentication request includes the device information of the first node and the information of the target client, the central server compares the first license authentication request with the license management file to determine that the first node has the right to use the target client, and that the first node's use period for the target client is 2022.01.01-2023.01.01.

[0092] S104: The first node activates the target client according to the first license authorization file.

[0093] In some embodiments, after receiving the first license authorization file, the first node uses the private key to decrypt the first license authorization file, obtains the authorization activation code of the target client, and uses the authorization activation code to activate the target client.

[0094] S105: The central server sends the license management file to the first node.

[0095] In some embodiments, when it is determined that the first node has the use authority of the target client, the central server is further used to send a license management file to the first node so that the first node has a license authentication function.

[0096] It should be noted that the embodiment of the present application does not limit the execution order between the above step S104 and step S105. For example, step S104 may be executed first and then step S105; or, step S105 may be executed first and then step S104; or, step S104 and step S105 may be executed simultaneously.

[0097] S106: The first node searches whether there is a node with a license authentication function enabled in the local area network.

[0098] In some embodiments, the first node may search for a node with a license authentication function in the local area network according to the method provided in the above steps a1 to a3, which will not be described in detail here.

[0099] It is understandable that, in the process of performing license authentication with the central server, the first node receives the license management information sent by the central server, so that the first node has the license authentication function, and therefore, the first node can provide license authentication services for other nodes in the local area network. However, in the process of performing license authentication with the central server, other nodes in the local area network may have completed the license authentication, so after the first node activates the target client, it is necessary to search again whether there is a node in the local area network that has the license authentication function turned on, and then decide whether to turn on the license authentication function.

[0100] S107: When there is no node with a license authentication function enabled in the local area network, enable the license authentication function of the first node.

[0101] In some embodiments, enabling the license authentication function of the first node can be implemented as follows: the first node obtains information about nodes in the local area network that have the right to use the target client (for example, the information can be obtained by obtaining the above-mentioned license management file), so that when the first node receives a license authentication request from other nodes in the local area network, it can confirm whether the node has the right to use the target client. At the same time, the first node modifies its own identity information and adds a license authentication identifier to the identity information, so that other nodes in the local area network know that the first node has enabled the license authentication function by querying the identity information of the first node.

[0102] It can be understood that when there is no node with the license authentication function enabled in the local area network, the first node enables the license authentication function to provide license authentication services for other nodes in the local area network. In this way, other nodes in the local area network do not need to authenticate to the central server, and the license authentication can be completed only within the local area network, thereby improving authentication efficiency, reducing resource consumption, and saving costs.

[0103] S108. Store the authentication interface information of the first node in a database of the local area network.

[0104] Among them, the authentication interface information defines the communication method for other nodes in the local area network (for example, other nodes other than the first node in the local area network) to perform license authentication with the first node, and is used for other nodes in the local area network to obtain and send a license authentication request to the first node based on the communication method.

[0105] It can be understood that since the authentication interface information defines the communication method for other nodes in the local area network to communicate with the first node for license authentication, storing the authentication interface information of the first node in the database of the local area network can enable other nodes in the local area network to obtain and send a license authentication request to the first node based on the communication method.

[0106] Exemplarily, the authentication interface of the first node can be an application component that communicates based on remote call technology (Webservice) across operating system platforms; or, the authentication interface of the first node can be a transmission channel constructed based on a full-duplex communication protocol (Websocket) based on the transmission control protocol (TCP).

[0107] In some embodiments, the first node encrypts the authentication interface information of the first node and stores the encrypted authentication interface information in a database of the local area network. This can reduce the risk of the authentication interface information being stolen and improve the security and reliability of license authentication.

[0108] The database of the local area network is a device (such as a server) used to store data in the local area network. All nodes in the local area network can access the database and store or obtain data in the database. It is understandable that the database of the local area network can only be accessed by nodes in the local area network, and nodes that do not belong to the local area network do not have access rights. Therefore, storing the authentication node information in the database of the local area network can avoid the risk of being stolen by other devices and ensure the security of license authentication.

[0109] It should be noted that the embodiment of the present application does not limit the execution order of step S108. For example, step S108 can be executed after step S104 and before step S107; or, step S108 can be executed after step S107.

[0110] It can be understood that the embodiments in the above steps S101-S108 provide a process for the first node in the local area network to perform license authentication. It can be seen that after activating the target client, the first node can enable its own license authentication function to provide license authentication services for other nodes in the local area network. In this way, compared with the method in the related art where each node in the local area network needs to perform license authentication with the central server, the embodiment of the present application only performs license authentication with the central server once, and can perform license management on all nodes in the local area network, solving the problem of some nodes in the local area network having difficulty connecting to the central server, providing a convenient authentication method for complex network environments, and improving authentication efficiency.

[0111] 2. License authentication process of the second node.

[0112] In some embodiments, after the first node enables the license authentication function, the second node can perform license authentication on the first node. The second node is a node that includes an inactivated target client. For example, Figure 3 As shown, the license authentication process of the second node can be implemented as follows:

[0113] S201. The second node searches for the first node with a license authentication function enabled in a local area network.

[0114] The first node is a node that completes the activation of the target client and turns on the license authentication function. Exemplarily, the first node can be a node that activates the target client and turns on the license authentication function in the manner provided in the above steps S101-108.

[0115] In some embodiments, searching for the first node in the local area network that has a license authentication function enabled may be implemented as follows:

[0116] Step b1: Obtain identity information of at least one node in the local area network.

[0117] As a possible implementation method, the second node sends an identity query request to at least one node in the local area network, and the identity query request is used to obtain the identity information of the node; accordingly, at least one node in the local area network returns the identity information to the second node in response to the identity query information sent by the second node.

[0118] Step b2: The node whose identity information includes the license authentication identifier is used as the first node.

[0119] The license authentication flag is used to indicate that the corresponding node has enabled the license authentication function.

[0120] In some embodiments, the second node screens the identity information of at least one node, and uses the node whose identity information includes the license authentication identifier as the first node. Exemplarily, it is assumed that at least one node in the local area network includes: node 1, node 2, node 3, and node 4. Among them, the identity information of node 1 includes the license authentication identifier, and node 1 is used as the first node.

[0121] It is understandable that when performing license authentication, the second node needs to determine to whom to perform license authentication. Therefore, the second node first searches for the first node with the license authentication function enabled in the local area network and performs authentication with the first node.

[0122] S202: The second node sends a second license authentication request to the first node.

[0123] The second license authentication request is used by the first node to determine whether the second node has the right to use the target client, and when it is determined that the second node has the right to use the target client, the second license authorization file is sent to the first node; the second license authorization file is used by the second node to activate the target client.

[0124] Exemplarily, the second license authentication request may include device information of the second node (eg, MAC address and / or IP address of the second node, etc.) and information of the target client (eg, name of the target client and / or ID of the target client, etc.).

[0125] In some embodiments, the above step S202 can be implemented as the following steps:

[0126] Step c1: Obtain authentication interface information of the first node from a database in the local area network.

[0127] In some embodiments, the second node obtains the encrypted authentication interface information of the first node from the database of the local area network, and uses the private key to decrypt the encrypted authentication interface information of the first node to obtain the authentication interface information of the first node. In this way, the second node can obtain the communication method for performing license authentication with the first node based on the authentication interface information of the first node.

[0128] Step c2: Send a license authentication request to the first node according to the communication mode defined by the authentication interface of the first node.

[0129] It is understandable that the interface defines the way a node interacts with an external device, and different interfaces have different functions. For example, the authentication interface of the first node defines the communication method for other interfaces (such as the second node) in the local area network to perform license authentication with the first node. Therefore, if the second node needs to perform license authentication with the first node, it needs to send a license authentication request to the first node through the authentication interface of the first node.

[0130] In some embodiments, before step S202, the method further includes the first node and the second node mutually verifying the authenticity of each other's identities. Exemplarily, the verification process can be implemented as the following steps:

[0131] Step d1: The second node sends its authentication certificate to the first node.

[0132] The authentication certificate of the second node may provide the identity information of the second node, which is used to indicate the authenticity of the identity of the second node. Exemplarily, the authentication certificate of the second node may be a digital certificate, such as an arbitrary character string.

[0133] Exemplarily, the second node may use a public key to encrypt the authentication certificate of the second node, and send the encrypted authentication certificate of the second node to the first node.

[0134] Step d2: The first node verifies the authenticity of the identity of the second node based on the authentication certificate of the second node.

[0135] Exemplarily, after receiving the encrypted authentication certificate of the second node, the first node uses the private key to decrypt the authentication certificate of the second node to obtain the authentication certificate of the second node, and verifies whether the identity of the second node is authentic based on the authentication certificate of the second node. If the identity of the second node is authentic, the first node executes the following step d3.

[0136] Step d3: The first node sends its authentication certificate to the second node.

[0137] Exemplarily, the authentication certificate of the first node may provide identity information of the first node, which is used to characterize the authenticity of the identity of the first node.

[0138] Exemplarily, the first node may use a public key to encrypt the authentication certificate of the first node, and send the encrypted authentication certificate of the first node to the second node.

[0139] Step d4: The second node verifies the authenticity of the identity of the first node based on the authentication certificate of the first node.

[0140] Exemplarily, after receiving the encrypted authentication certificate of the first node, the second node uses the private key to decrypt the authentication certificate of the second node, obtains the authentication certificate of the first node, and verifies whether the identity of the first node is authentic. If the identity of the second node is authentic, the second node executes the above step S202.

[0141] S203: When determining that the second node has the use authority of the target client, the first node sends a second license authorization file to the second node.

[0142] In some embodiments, the second license authorization file may include an authorization activation code of the target client, which is used to activate the target client. In this way, the above step S203 can be implemented as follows: when the first node determines that the second node has the right to use the target client, the authorization activation code of the target client is encrypted using the public key, a second license authorization file is generated according to the encrypted authorization activation code, and the second license authorization file is sent to the second node.

[0143] In some embodiments, the first node determines whether the second node has the use authority of the target client according to the second license authentication request.

[0144] As a possible implementation method, the first node includes a License management file (the License management file records information about nodes in the local area network that have permission to use the target client. Exemplarily, the License management file can be in the form shown in Table 1). The first node can determine whether the second node has permission to use the target client based on the second License authentication request and the License management file.

[0145] S204: The second node activates the target client according to the second license authorization file.

[0146] In some embodiments, after receiving the second license authorization file, the second node uses the private key to decrypt the second license authorization file, obtains the authorization activation code of the target client, and uses the authorization activation code to activate the target client.

[0147] In some embodiments, after the second node activates the target client, the method further includes: letting other nodes in the local area network know that the second node has activated the target client. In this way, when the first node fails and a new authentication node needs to be elected, other nodes in the local area network can know the node with the right to vote.

[0148] As a possible implementation manner, the second node broadcasts its own device information to other nodes in the local area network in the form of a broadcast message, so that other nodes in the local area network know that the second node has activated the target client.

[0149] As another possible implementation manner, the second node stores its own device information and authentication interface information in a database of the local area network, and then other nodes in the local area network can learn from the database of the local area network that the second node has activated the target client.

[0150] S205: The first node sends the license management file to the second node.

[0151] In some embodiments, when it is determined that the second node has the use authority of the target client, the first node is further configured to send the license management file to the second node, so that the second node has a license authentication function.

[0152] It should be noted that the embodiment of the present application does not limit the execution order between the above step S204 and step S205. For example, step S204 may be executed first and then step S205; or, step S205 may be executed first and then step S204; or, step S204 and step S205 may be executed simultaneously.

[0153] It can be understood that the embodiment in the above steps S201-S205 provides a process in which a second node in a local area network (the second node can be any node in the local area network that has not activated the target client) performs license authentication on a node in the local area network that has a license authentication function enabled. It can be seen that after the second node finds the first node in the local area network that has a license authentication function enabled, it sends a second license authentication request to the first node, and the first node determines whether the second node has the right to use the target client according to the second license authentication request, and if the second node has the right to use the target client, it sends a license authorization file to the second node for the second node to activate the target client. In this way, compared with the method in the related art in which each node in the local area network needs to perform license authentication on the central server, the embodiment of the present application only performs license authentication with the central server once, and can perform license management on all nodes in the local area network, which solves the problem that some nodes in the local area network are difficult to connect to the central server, provides a convenient authentication method for complex network environments, and improves authentication efficiency.

[0154] In addition, compared with the method in the related art in which the license authorization file is pre-stored in each node and each node performs local verification, the embodiment of the present application provides a license authentication service by enabling a node with a license authentication function in a local area network, and sends the license authorization file after verifying that the node has the right to use the target client; the problem that the authentication information is easily forged and copied in local verification is solved, and the reliability and security of the license authentication are ensured.

[0155] 3. Fault recovery mechanism.

[0156] In some embodiments, after the first node starts the license authentication function and starts to provide license authentication services to other nodes in the local area network, the method further includes determining whether the first node has a fault, and if the first node has a fault, electing a new node to start the license authentication function and replace the first node to provide authentication services. Figure 4 As shown, it can be implemented as the following steps:

[0157] S301: The target node determines that a first node has a fault.

[0158] The target node may be any one or more nodes in the local area network other than the first node that contain the activated target client. Exemplarily, the target node may be the second node that activates the target client according to the method provided in the above steps S201-S205.

[0159] In some embodiments, after the target node communicates with the first node for the first time, a heartbeat connection is maintained between the target node and the first node, so that the target node can determine whether the first node has a fault through a heartbeat message (used to monitor the operating status of the first node, and illustratively, the heartbeat message can be in the form of a string). Exemplarily, after the heartbeat message between the target node and the first node is lost, the target node attempts to connect to the first node, and if the connection fails, the target node confirms that the first node has a fault.

[0160] S302: The target node obtains its own communication status.

[0161] In some embodiments, the target node uses a health evaluation algorithm to score its own communication status. Among them, the health evaluation algorithm may include multiple evaluation indicators, and the priority and weight of each evaluation indicator can be set manually. Exemplarily, the evaluation indicators of the health evaluation algorithm include but are not limited to the following indicators: performance data evaluation indicators, network communication status evaluation indicators, and communication interface quantity evaluation indicators. Among them, the performance data evaluation indicator is used to evaluate the performance parameters of the node, such as the node's memory data, processor parameters, etc.; the network communication status evaluation indicator is used to evaluate the node's network communication status, for example, the node's network throughput, the node's network traffic, etc.; the communication interface quantity evaluation indicator is used to evaluate the number of other nodes that can be connected to the node.

[0162] Exemplarily, assuming that the health evaluation algorithm includes: performance data evaluation indicators, network communication status evaluation indicators and communication interface quantity evaluation indicators, the health evaluation algorithm is used to score the communication status of the target node, where the performance quantity evaluation indicator of the target node scores 25 points, the network communication status evaluation indicator of the target node scores 35 points, and the communication interface quantity evaluation indicator of the target node scores 30 points. The communication status score of the target node is 90 points.

[0163] S303: When the communication status of the target node meets the preset conditions, the target node starts the license authentication function.

[0164] As a possible implementation, the preset condition may be that the communication status score of the target node is greater than or equal to a preset threshold. Exemplarily, when the communication status score of the target node is greater than or equal to the preset threshold, the license authentication function of the target node is enabled. Exemplarily, assuming that the preset threshold is 89 points and the communication status score of the target node is 90 points, the license authentication function of the target node is enabled.

[0165] As another possible implementation, the preset condition may be that the communication status score of the target node is greater than the communication status scores of other nodes in the local area network that have activated the target client. Exemplarily, the target node may store its own communication status score in a database of the local area network, and simultaneously obtain the communication status scores of other nodes in the local area network that have activated the target client from the database of the local area network, and enable the license authentication function of the target node when the communication status score of the target node is greater than the communication status scores of other nodes in the local area network that have activated the target client.

[0166] For example, assuming that the communication status score of the target node is 90 points, the other nodes in the local area network that have activated the target client are: node 3 and node 4; among them, the communication status score of node 3 is 78 points, and the communication status score of node 4 is 80 points. The communication status score of the target node is the highest, and the license authentication function of the target node is enabled.

[0167] In some embodiments, after the target node turns on the license authentication function, the method further includes: storing the authentication interface information of the target node in a database of the local area network. The authentication interface information defines the communication method for other nodes in the local area network to perform license authentication with the target node, and is used for other nodes in the local area network to obtain and send a license authentication request to the target node based on the communication method.

[0168] In some embodiments, after the target node turns on the license authentication function, the above method also includes: the target node generates a new sub-authentication certificate in a self-signed manner based on the authentication certificate preset at the factory. Among them, the sub-authentication certificate is used by other nodes in the local area network to verify the authenticity of the identity of the target node. It can be understood that license authentication can only be performed after the target node and other nodes in the local area network confirm the authenticity of each other's identities, so that the security of license authentication can be ensured. In addition, since the target node needs to be authenticated with multiple nodes in the local area network, in order to avoid malicious network attacks, the target node can generate a sub-authentication certificate (temporary certificate) in a self-signed manner and perform license authentication with the nodes in the local area network.

[0169] It can be understood that, in the method provided in the embodiment of the present application, when a failure occurs in the first node for enabling the license authentication function, causing the license authorization to be unable to proceed, a new node is selected from the nodes of the activated target client in the local area network to enable the license authentication function, and the license authentication service is provided in place of the first node, thereby ensuring that the license authentication service is not interrupted, improving the efficiency of the license authentication, and ensuring the reliability of the license authentication.

[0170] To facilitate understanding, the following takes the example of the second node in the local area network (the second node can be any node in the local area network that has not activated the target client) performing license authentication on the first node and activating the target client; and, in the event of a failure in the first node, the second node participates in the election of a new authentication node (a node that replaces the first node to provide license authentication services) as an example to illustrate the method provided in the embodiment of the present application.

[0171] For example, Figure 5 As shown, the process of the second node performing license authentication and the second node participating in the election of a new authentication node can be implemented as the following steps:

[0172] Se1. The second node first determines whether its target client is activated.

[0173] If not, execute the following step Se2.

[0174] If so, execute the following step Se5.

[0175] Se2. The second node searches for the first node in the local area network that has the license authentication function enabled.

[0176] In some embodiments, the second node searches whether there is a first node with a license authentication function enabled in the local area network. If so, the following step Se3 is executed; if not, the second node can perform license authentication to the central server.

[0177] Se3. The second node performs license authentication on the first node.

[0178] Specifically, the second node sends a second license authentication request to the first node. The second license authentication request is used by the first node to determine whether the second node has the right to use the target client, and when it is determined that the second node has the right to use the target client, the second license authorization file is sent to the first node; the second license authorization file is used by the second node to activate the target client.

[0179] In the case that the second node has the use authority of the target client, the second node receives the second License authorization file sent by the first node, and activates the target client according to the second License authorization file.

[0180] Se4. The second node determines whether the target client is activated successfully.

[0181] If activation is unsuccessful, return to the above step Se2.

[0182] If activation is successful, execute the following step Se5.

[0183] Se5. Update the information of the node of the activated target client in the local area network.

[0184] In some embodiments, after the second node activates the target client, the second node broadcasts its own device information to other nodes in the local area network in the form of a broadcast message, so that other nodes in the local area network know that the second node has activated the target client.

[0185] Se6, the second section again searches whether there is a first node with the license authentication function enabled in the local area network.

[0186] If so, the second node enters a waiting state.

[0187] If not present, the second node executes the following steps Se7.

[0188] Se7. The second node participates in the election of a new authentication node.

[0189] It is understandable that after the second node activates the target client, if the second node cannot find the first node, it is determined that the first node has failed and a new authentication node needs to be re-elected to replace the first node to provide license authentication services.

[0190] Se8. The second node determines whether the new authentication node is itself.

[0191] If not, the second node enters a waiting state.

[0192] If so, the second node executes the following steps Se9.

[0193] Se9. The second node stores its own authentication interface information in the database of the local area network.

[0194] Se10. Enable the license authentication function on the second node.

[0195] It can be seen that the method provided in the embodiment of the present application only requires one node in the local area network to perform license authentication with the central server once, and license management can be performed on all nodes in the local area network, which solves the problem of difficulty in connecting some nodes in the local area network with the central server, provides a convenient authentication method for complex network environments, and improves authentication efficiency.

[0196] In addition, the embodiment of the present application also provides a fault recovery mechanism, which can select a new node to enable the license authentication function when the first node providing the license authentication service in the local area network fails, and replace the first node to provide the license authentication service, thereby ensuring that the license authentication service is not interrupted and improving the reliability of the license authentication.

[0197] like Figure 6 As shown, an embodiment of the present application provides a license authentication device, which is applied to a first node in a local area network; the first node includes an activated target client. The license authentication device 400 includes: a receiving module 401 and a sending module 402. In other embodiments, the license authentication device 400 may also include: a search module 403, an opening module 404 and a storage module 405.

[0198] The receiving module 401 is used to receive a license authentication request sent by the second node; the license authentication request is used to request verification of the second node's authority to use the target client; the second node is a node in the local area network, and the second node includes an unactivated target client.

[0199] The sending module 402 is used to send a license authorization file to the second node when it is determined that the second node has the use authority of the target client; the license authorization file is used by the second node to activate the target client.

[0200] In a possible implementation, the search module 403 is used to search whether there is a node with a license authentication function enabled in the local area network; the enable module 404 is used to enable the license authentication function of the first node when there is no node with a license authentication function enabled in the local area network.

[0201] In another possible implementation, the above-mentioned search module 403 is specifically used to obtain the identity information of at least one node in the local area network; when the identity information of at least one node includes a license authentication identifier, it is determined that there is a node with a license authentication function enabled in the local area network; wherein the license authentication identifier is used to indicate that the corresponding node has enabled the license authentication function; when the identity information of at least one node does not include a license authentication identifier, it is determined that there is no node with a license authentication function enabled in the local area network.

[0202] In another possible implementation, the enabling module 404 is specifically configured to obtain information of nodes in the local area network that have the right to use the target client, and to add a license authentication identifier to the identity information of the first node.

[0203] In another possible implementation, the storage module 405 is used to store the authentication interface information of the first node in a database of the local area network; the authentication interface information defines the communication method for license authentication between the first node and the second node, and is used for the second node to obtain and send a license authentication request to the first node based on the communication method.

[0204] like Figure 7 As shown, an embodiment of the present application provides a license authentication device, which is applied to a second node in a local area network; the second node includes an unactivated target client. The license authentication device 500 includes: a search module 501, a sending module 502, a receiving module 503 and an activation module 504. In other embodiments, the license authentication device 500 may also include: a fault recovery module 505.

[0205] The search module 501 is used to search for the first node with the authentication service function enabled in the local area network.

[0206] The sending module 502 is used to send a license authentication request to the first node. The license authentication request is used by the first node to determine whether the second node has the right to use the target client, and when it is determined that the second node has the right to use the target client, the license authorization file is sent to the first node; the license authorization file is used by the second node to activate the target client.

[0207] The receiving module 503 is configured to receive a license authorization file sent by the first node.

[0208] The activation module 504 is used to activate the target client according to the license authorization file.

[0209] In a possible implementation, the search module 501 is specifically used to obtain identity information of nodes in the local area network; a node whose identity information includes a license authentication identifier is used as the first node; wherein the license authentication identifier is used to indicate that the corresponding node has enabled the license authentication function.

[0210] In another possible implementation, the sending module 502 is specifically used to obtain the authentication interface information of the first node from the database of the local area network; the authentication interface information of the first node defines the communication method for license authentication between the second node and the first node; and according to the communication method, a license authentication request is sent to the first node.

[0211] In another possible implementation, the fault recovery module 505 is used to determine whether a fault exists in the first node; obtain the communication status of the second node; and enable the license authentication function of the second node when the communication status of the second node meets a preset condition.

[0212] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the license authentication device is divided into different functional modules to complete all or part of the functions described above.

[0213] The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by computer instructions to instruct the relevant hardware, and the program can be stored in the above computer-readable storage medium. When the program is executed, it may include the processes of the above method embodiments. The computer-readable storage medium can be any of the above embodiments or memory. The above computer-readable storage medium can also be an external storage device of the above license authentication device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the above license authentication device. Further, the above computer-readable storage medium can also include both the internal storage unit of the above license authentication device and an external storage device. The above computer-readable storage medium is used to store the above computer program and other programs and data required by the above license authentication device. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.

[0214] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program product is run on a computer, the computer is enabled to execute any one of the license authentication methods provided in the above embodiments.

[0215] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other changes to the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit can implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0216] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0217] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A license authentication method, characterized in that: The method is applied to a first node in a local area network; the first node includes an activated target client, and the first node is used to enable a license authentication function to provide license authentication services for other nodes in the local area network; the method includes: receiving a license authentication request sent by a second node; the license authentication request is used to request verification of the second node's permission to use the target client; the second node is a node in the local area network, and the second node includes the unactivated target client; When it is determined that the second node has the right to use the target client, a license authorization file is sent to the second node; the license authorization file is used by the second node to activate the target client.

2. The method according to claim 1, characterized in that: Before receiving the license authentication request sent by the second node, the method further includes: Find out whether there is a node with license authentication function enabled in the local area network; In the case that there is no node with a license authentication function enabled in the local area network, the license authentication function of the first node is enabled.

3. The method according to claim 2, characterized in that The searching whether there is a node with a license authentication function enabled in the local area network includes: Obtaining identity information of at least one node in the local area network; In a case where the identity information of the at least one node includes a license authentication identifier, determining that there is a node in the local area network that has a license authentication function enabled; wherein the license authentication identifier is used to indicate that the corresponding node has a license authentication function enabled; When the identity information of the at least one node does not include a license authentication identifier, it is determined that no node with a license authentication function enabled exists in the local area network.

4. The method according to claim 2 or 3, characterized in that: The enabling of the license authentication function of the first node includes: The information of the node having the use authority of the target client in the local area network is obtained, and the license authentication identifier is added to the identity information of the first node.

5. The method according to any one of claims 1 to 3, characterized in that: Before receiving the license authentication request sent by the second node, the method further includes: The authentication interface information of the first node is stored in a database of the local area network; the authentication interface information defines a communication method for performing license authentication between the first node and the second node, and is used by the second node to obtain and send the license authentication request to the first node based on the communication method.

6. A license authentication method, characterized in that: The method is applied to a second node in a local area network; The second node includes an inactivated target client; the method comprises: Finding the first node in the local area network that has an authentication service function enabled; Sending a license authentication request to the first node, wherein the license authentication request is used by the first node to determine whether the second node has the right to use the target client, and when it is determined that the second node has the right to use the target client, sending a license authorization file to the first node; the license authorization file is used by the second node to activate the target client; Receive the license authorization file sent by the first node; Activate the target client according to the License authorization file.

7. The method according to claim 6, characterized in that The step of searching for a first node having an authentication service function in the local area network includes: Obtaining identity information of nodes in the local area network; The node whose identity information includes a license authentication identifier is used as the first node; wherein the license authentication identifier is used to indicate that the corresponding node has enabled a license authentication function.

8. The method according to claim 6 or 7, characterized in that: The sending a license authentication request to the first node includes: Acquire authentication interface information of the first node from a database of the local area network; the authentication interface information of the first node defines a communication method for performing license authentication between the second node and the first node; According to the communication mode, a license authentication request is sent to the first node.

9. The method according to claim 6 or 7, characterized in that: After activating the target client according to the license authorization file, the method further includes: Determining that the first node has a fault; Acquire the communication status of the second node; When the communication status of the second node meets a preset condition, a license authentication function of the second node is enabled.

10. A computer device, characterized in that: The computer device comprises a processor and a memory; the processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor to enable the computer device to implement the method according to any one of claims 1 to 5 or 6 to 9.

Citation Information

Patent Citations

  • Access authentication method for wireless mesh network

    CN102421095A

  • Permission determination method and device for storage cluster, equipment and storage medium

    CN110909379A

  • Method and system of saftware using license

    CN1831836A

  • Method for license authentication, and node, system and computer-readable storage medium for the same

    US20220012310A1

  • Decentralized Processing Of Interactions On Delivery

    US20220131845A1