Authorized client instance management method and system

Through the authorized client instance management method, multi-level authorization technology and GRPC protocol are used to solve the problem that the existing authorization method cannot be customized, realize flexible authorization management and resource pooling, and improve the security and applicability of the application system. .

CN118245991BActive Publication Date: 2024-09-17BEIJING BIG DATA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410659208.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-17
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

The existing authorization method does not support customized authorization for actual business scenarios. It can only limit user types and timestamps, and cannot provide customized and customized advanced configurations according to the actual needs of customers.

Method used

Through the authorized client instance management method, the authorized client sends an instance creation request to the authorization service platform, generates an instance authorization code, and creates an instance in the application system. It supports multi-level authorization technology and uses the GRPC protocol to communicate with the authorization service platform to achieve automatic Discovery and authorization files are automatically parsed and verified to adapt to the needs of different business scenarios.

Benefits of technology

It realizes flexible authorization management based on actual business needs, supports instance resource pooling, ensures the security and resource limitations of the application system, and is suitable for multi-level authorization requirements within the enterprise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118245991B
    Figure CN118245991B
Patent Text Reader

Abstract

An embodiment of the present application provides an authorization client instance management method and system, the method comprising: the authorization client sends an instance creation request to an authorization service platform, wherein the authorization client is implanted in an application system, and the application system and the authorization service platform are deployed in the same cluster environment; the authorization service platform receives the instance creation request, determines whether the number of available instances is 0, and generates an instance authorization code if the number of available instances is not 0, and sends it to the authorization client, wherein each instance corresponds to an instance authorization code; when the number of available instances is 0, there is no response; the authorization client receives the instance authorization code, creates an instance in the application system, and deploys the application system and the authorization service platform in the same cluster environment, the authorization client can automatically obtain the instance authorization code from the resource pool of the authorization service platform, and issue it on demand within the limit, without having to apply for it from the licensing center each time it is used.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of authorization and authentication, and in particular, to a method and system for managing an authorization client instance. Background Art

[0002] The rapid development of informatization has prompted enterprises to continuously develop application software for users in all walks of life. It has become particularly important to protect the security of application software. Effective measures need to be taken to improve the security of self-developed application software and avoid the threat of cracking due to piracy. This is also a manifestation of responsibility for the safety of customers. Generally speaking, for customers who use the Internet as the application operating environment, they can perform authorization and restriction operations by accessing the interface provided by the development company online. They do not need to worry about the problem of the authorization code or license being cracked. In addition, online authorization is convenient and easy to use and widely used, so most corporate customers will choose online authorization.

[0003] Currently, the main anti-counterfeiting technology used is digital signature, which can verify the authenticity of data through public key. In other words, only the owner of the private key can obtain the data verified by the digital signature. Therefore, unless the private key is leaked (usually stored on the server), no one can forge a digital signature.

[0004] During the license generation process, the server will use the asymmetric private key to digitally sign the license, and the client will use the corresponding public key to verify the digital signature. Only when the verification is passed will the content of the license be verified again.

[0005] In order to increase the difficulty of cracking application software, the following methods are usually adopted:

[0006] First, application timestamp: add a release timestamp to the license file. If the time specified in the license file is less than the current timestamp, the license file cannot be used even if the system time is modified. In this way, the use of expired license files in new versions of application software is restricted.

[0007] Second, code decompilation: Enhance the difficulty of code decompilation and avoid using easily decompiled code to verify the license file, especially when the verification code is directly changed to True, and the code storing the public key string should be carefully avoided from being directly replaced. The verification code can be embedded in the binary code and the code is obfuscated to increase the difficulty of cracking.

[0008] However, the above method does not support custom authorization for actual business scenarios. It only restricts user type and timestamp. It requires customized and customized advanced configuration based on actual customer needs. Summary of the invention

[0009] Embodiments of the present application provide a method, apparatus, computer device, and storage medium for managing an authorized client instance.

[0010] A first aspect of an embodiment of the present application provides a method for managing an authorized client instance, including:

[0011] The authorization client sends an instance creation request to the authorization service platform, wherein the authorization client is embedded in the application system, and the application system and the authorization service platform are deployed in the same cluster environment;

[0012] The authorization service platform receives the instance creation request and determines whether the number of available instances is 0. If the number of available instances is not 0, it generates an instance authorization code and sends it to the authorization client. Each instance corresponds to an instance authorization code. If the number of available instances is 0, there is no response.

[0013] The authorization client receives the instance authorization code and creates an instance in the application system.

[0014] In an optional embodiment of the present application, determining whether the available instance is 0 includes:

[0015] The preset number of instances is compared with the actual number of instances that have been created. When the actual number of instances that have been created is less than the preset number of instances, it is determined that the available instances are not 0; when the actual number of instances that have been created is equal to the preset number of instances, it is determined that the available instances are 0.

[0016] In an optional embodiment of the present application, before the authorization client sends the instance creation request to the authorization service platform, the method further includes:

[0017] The authorization service platform obtains the application system authorization code, decrypts the application system authorization code, obtains the decrypted authorization code, and sends it to the application system;

[0018] The application system parses the configuration item information of the authorization client SDK, obtains the configuration item information, verifies the decrypted authorization code and the configuration item information, and after the verification passes, determines that the application system authorization is successful.

[0019] In an optional embodiment of the present application, the application system authorization code is generated based on the licensing center platform according to the client identification information, the authorization service platform identification information, the valid period of the application system, the application system identification information and name, and the number of application instances.

[0020] In an optional embodiment of the present application, the application system communicates with the deployment authorization service platform via the GRPC protocol.

[0021] In an optional embodiment of the present application, the method further includes:

[0022] Each application system monitors and obtains user authorization access behavior information, builds an application change set, establishes a distributed blockchain, and generates an access change coefficient from the access change set , if the coefficient of variation is accessed > Preset change threshold and send the first warning instruction to the authorized service platform; if the access change coefficient When the value is less than or equal to the preset change threshold, the first qualified instruction is sent to the authorized service platform;

[0023] Use the trained authorization authentication model to plan the application system authentication steps to obtain several verification matching item sets, which include: identity authentication matching information items, license matching information items, device management matching information items, and geographic location authentication matching information items. Generate information verification coefficients based on the matching item sets. , if the information verification coefficient ≥ first threshold When the information verification coefficient is <First threshold When , a second warning instruction is generated;

[0024] After the authorization service platform identifies the user's first qualified instruction and the second qualified instruction, it determines the priority authorization level and executes the authorization behavior on the user;

[0025] When the first warning instruction and the second warning instruction are received, the corresponding security response strategy is triggered.

[0026] In an optional embodiment of the present application, the method further includes:

[0027] Collect and obtain user authorized access behavior information, including user login IP, application operation, access content and access traffic information;

[0028] Summarize user access behavior information, extract the user's access frequency change value fwbd, access content change value nrbd, access time change value sjbd, access permission change value qxbd and access device change value sbbd, and identify the access change ratio Compared with the time interval , construct an application change set; the access change ratio Generated by the following formula:

[0029]

[0030] in, , , , , ,and , , , , and is the preset proportional coefficient of the access frequency change value fwbd, the access content change value nrbd, the access time change value sjbd, the access permission change value qxbd and the access device change value sbbd, is a constant correction factor.

[0031] In an optional embodiment of the present application, the time interval is Generated by the following formula:

[0032]

[0033] in, represents the time interval between the user's jth and j+1th visits, m represents the user's total number of visits, and calculates the time interval between all user visits The sum of the time intervals to obtain the user .

[0034] In an optional embodiment of the present application, according to the access change ratio Compared with the time interval , after dimensionless processing, the corresponding data values ​​are mapped to regions and the corresponding data values ​​are mapped to intervals Then generate the access variation coefficient according to the following formula :

[0035]

[0036] in, is the preset mean of the access change ratio, is the preset mean value of the time interval ratio, n is a positive integer greater than 1, ,n, is the number of access behavior information; and is the weight value; , ,and .

[0037] A second aspect of the embodiments of the present application provides an authorized client instance management system, including:

[0038] The authorization client is used to send an instance creation request to the authorization service platform, and is also used to receive the instance authorization code and create the instance in the application system, wherein the authorization client is embedded in the application system, and the application system and the authorization service platform are deployed in the same cluster environment;

[0039] The authorization service platform is connected to the authorization client to receive instance creation requests, determine whether the number of available instances is 0, and if the number of available instances is not 0, generate an instance authorization code and send it to the authorization client, where each instance corresponds to an instance authorization code; if the number of available instances is 0, there is no response. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] Figure 1 A flowchart of a method for managing an authorized client instance provided in one embodiment of the present application;

[0042] Figure 2 A flowchart of a method for managing an authorized client instance provided in another embodiment of the present application;

[0043] Figure 3 A flowchart of a method for managing an authorized client instance provided in yet another embodiment of the present application;

[0044] Figure 4 A flowchart of a method for managing an authorized client instance provided in yet another embodiment of the present application;

[0045] Figure 5 A schematic diagram of the structure of an authorized client instance management system provided for one embodiment of the present application. DETAILED DESCRIPTION

[0046] In the process of implementing this application, the inventors found that the current authorization method does not support customized authorization for actual business scenarios, but only restricts user type and timestamp. It requires customized and customized advanced configuration based on actual customer needs.

[0047] In response to the above problems, an embodiment of the present application provides an authorization client instance management method, wherein the authorization client sends an instance creation request to the authorization service platform, wherein the authorization client is implanted in an application system, and the application system and the authorization service platform are deployed in the same cluster environment; the authorization service platform receives the instance creation request, determines whether the number of available instances is 0, and generates an instance authorization code if the number of available instances is not 0, and sends it to the authorization client, wherein each instance corresponds to an instance authorization code; when the number of available instances is 0, there is no response; the authorization client receives the instance authorization code, creates an instance in the application system, and deploys the application system and the authorization service platform in the same cluster environment. For application systems that require instance authorization, the authorization client implanted in the application system can automatically obtain the instance authorization code from the resource pool of the authorization service platform, and issue it on demand within the limit, without the need to apply for it from the licensing center each time it is used.

[0048] The solutions in the embodiments of the present application can be implemented using various computer languages, for example, the object-oriented programming language Java and the interpreted scripting language JavaScript.

[0049] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0050] See also Figure 1 The authorization client instance management method provided in the embodiment of the present application includes the following steps S1 to S4:

[0051] S1, the authorization client sends an instance creation request to the authorization service platform, wherein the authorization client is embedded in the application system, and the application system and the authorization service platform are deployed in the same cluster environment.

[0052] In an optional embodiment of the present application, before the authorization client sends the instance creation request to the authorization service platform, the method further includes:

[0053] The authorization service platform obtains the application system authorization code, decrypts the application system authorization code, obtains the decrypted authorization code, and sends it to the application system;

[0054] The application system parses the configuration item information of the authorization client SDK, obtains the configuration item information, verifies the decrypted authorization code and the configuration item information, and after the verification passes, determines that the application system authorization is successful.

[0055] In an optional embodiment of the present application, the application system communicates with the deployment authorization service platform via the GRPC protocol.

[0056] In an optional embodiment of the present application, an authorization service platform and an application system implanted with an authorization client SDK are deployed in a customer site cluster environment. The authorization service platform obtains cluster identification information, i.e., the authorization service platform identification information, for use when applying for authorization. The uniqueness of the authorization service platform identification information and the application system identification information determines the application system in the customer site cluster environment, making it impossible to use across cluster environments, thereby ensuring the spatial security of the authorization file.

[0057] S2, the authorization service platform receives the instance creation request and determines whether the number of available instances is 0. If the number of available instances is not 0, an instance authorization code is generated and sent to the authorization client, where each instance corresponds to an instance authorization code; if the number of available instances is 0, there is no response.

[0058] In an optional embodiment of the present application, determining whether the available instance is 0 includes:

[0059] The preset number of instances is compared with the actual number of instances that have been created. When the actual number of instances that have been created is less than the preset number of instances, it is determined that the available instances are not 0; when the actual number of instances that have been created is equal to the preset number of instances, it is determined that the available instances are 0.

[0060] S3: The authorization client receives the instance authorization code and creates an instance in the application system.

[0061] In an optional embodiment of the present application, the application system authorization code is generated based on the licensing center platform according to the client identification information, the authorization service platform identification information, the valid period of the application system, the application system identification information and name, and the number of application instances.

[0062] In an optional embodiment of the present application, when creating an instance in the application system, the creation limit is controlled according to the total number of instances of the application system authorization code. Each time an instance is created, the authorization client SDK automatically obtains the instance authorization code from the authorization service platform through the GRPC protocol, and generates an instance authorization code each time an instance is created. If the number of instances exceeds the creation limit of the authorization application, the authorization service platform stops generating instance authorization codes. In addition, if the application system returns the instance, the total number of instances remains unchanged, the number of available instances increases, the authorization service platform returns to normal, and a new instance authorization code is generated.

[0063] See also Figure 2 In an optional embodiment of the present application, the application system is deployed through the following steps:

[0064] S21, obtaining at least one application system corresponding to the authorization client, implanting the authorization client SDK into the application system, and writing the application system identification code and name into the application system, wherein the authorization client SDK has a built-in authorization client and encapsulates the procedures of registering instances of the authorization client, querying instance authorization, querying application system authorization, and registering application systems for invocation;

[0065] S22, deploy each application system in the target cluster corresponding to the authorized client, wherein the application system automatically communicates with the authorization service platform through the GRPC protocol based on the authorized client SDK, and determines the uniqueness of the application system through the application system identification code and name combined with the authorization service platform identification information, wherein the GRPC protocol is used to connect the authorization service platform and the application system services.

[0066] In an optional embodiment of the present application, the step of obtaining the application system corresponding to the authorized client includes:

[0067] The application system corresponding to the authorized client is exported from the licensing center platform in the form of a file. The application system exported in the form of a file is used as a product file when deploying the product in the customer's on-site cluster environment. Before deployment, the authorized client SDK needs to be implanted into the developed application source code. At the same time, the product logo and product name will be written as the application system identification information and name, so that the authorization service platform can perform business translation of the authorized client SDK.

[0068] In an optional embodiment of the present application, the product may be an application migration system. In the case where the product is an application migration system, instances include but are not limited to migration application instances.

[0069] In an optional embodiment of the present application, after deploying each application system in the target cluster corresponding to the authorized client, the method further includes:

[0070] The authorization service platform obtains the application system authorization code, decrypts the application system authorization code, obtains authorization information, and sends it to the application system. The application system authorization code is generated based on the client identification information, the authorization service platform identification information, the validity period of the application system, the application system identification information and name, and the number of application instances;

[0071] The application system parses the configuration item information of the authorization client SDK, obtains the configuration item information, verifies the authorization information and the configuration item information, and after the verification passes, determines that the application system authorization is successful.

[0072] See also Figure 3 In an optional embodiment of the present application, the application system is updated by the following steps:

[0073] S31, after the application system is successfully authorized, the application system verifies whether the current time is within the valid period of the application system;

[0074] S32, when the current time is within the valid period of the application system, enable the use permission of the application system;

[0075] S33, when the current time is not within the valid period of the application system in the decrypted authorization code, a prompt message for updating the valid period of the application system is generated and sent to the authorization service platform.

[0076] In an optional embodiment of the present application, the method further includes:

[0077] The authorization service platform obtains the application system authorization code, decrypts the application system authorization code, obtains the decrypted authorization code, and sends it to the application system;

[0078] The application system parses the configuration item information of the authorization client SDK, obtains the configuration item information, verifies the decrypted authorization code and the configuration item information, and after the verification passes, determines that the application system authorization is successful.

[0079] In an optional embodiment of the present application, the verification of the decrypted authorization code and the configuration item information includes:

[0080] Compare the decrypted authorization code with the client identification information, authorization service platform identification information, application system validity period, application system identification information and name, and application instance quantity in the configuration item information;

[0081] If the decrypted authorization code is consistent with the client identification information, authorization service platform identification information, application system validity period, application system identification information and name, and application instance quantity in the configuration item information, the verification is deemed to have passed;

[0082] If the decrypted authorization code is inconsistent with any of the client identification information, authorization service platform identification information, application system validity period, application system identification information and name, and number of application instances in the configuration item information, the verification is deemed to have failed. In particular, if the decrypted authorization code is inconsistent with the validity period in the configuration item information, a prompt message for the application system to update the validity period is generated and sent to the authorization service platform.

[0083] In an optional embodiment of the present application, after generating prompt information for updating the effective period of the application system and sending it to the authorization service platform, the method further includes:

[0084] The authorization service platform obtains the updated application system authorization code, decrypts the updated application system authorization code, obtains the updated decrypted authorization code, and sends it to the application system;

[0085] The application system verifies the updated and decrypted authorization code and configuration item information. After the verification passes, it is determined that the application system authorization is successful.

[0086] See also Figure 4 In an optional embodiment of the present application, before step S1, the method further includes:

[0087] S41, the licensing center platform generates an application system authorization code corresponding to the target cluster, wherein the application system authorization code is generated according to the client identification information, the authorization service platform identification information, the valid period of the application system, the application system identification information and name, and the number of application instances, and the authorization client SDK is embedded in the application system information, and the application system information includes the identification information and name of the application system;

[0088] S42, deploying an authorization service platform and a preset application system in the target cluster, wherein the application system communicates with the deployment authorization service platform through a GRPC protocol;

[0089] S43, the authorization service platform obtains the application system authorization code, decrypts the application system authorization code, obtains the decrypted authorization code, and sends it to the application system;

[0090] S44, the application system parses the configuration item information of the authorization client SDK, obtains the configuration item information, verifies the decrypted authorization code and the configuration item information, and after the verification passes, determines that the application system authorization is successful, so that the application system is allowed to log in to the use instance.

[0091] In an optional embodiment of the present application, the information for applying for authorization is filled in at a licensing center in the cluster environment that provides the application system, including the user, third-party application information, project information, cluster identification information (authorization service platform identification information) of the deployed application system, valid timestamp, number of instances, and number of application systems. After a successful application, the approval process of the connected third party is triggered, and the approval is completed by the designated person in charge. After the approval is completed, the authorization code of the application system is obtained from the licensing center.

[0092] In an optional embodiment of the present application, in a customer on-site cluster environment, the authorization service platform automatically discovers that an application system needs to be authorized when it is used for the first time, and gives the authorization code of the application system obtained from the licensing center platform offline to the designated person in charge, and then pastes the authorization code under the application system corresponding to the authorization service platform.

[0093] In an optional embodiment of the present application, the authorization service platform obtains the application system authorization code and decrypts the application system authorization code, including:

[0094] The authorization service platform decrypts the application system authorization code based on the preset private key.

[0095] In an optional embodiment of the present application, the licensing center platform and the authorization service platform may not be in the same cluster environment. The licensing center platform can be deployed in a cluster environment that provides application system services as an entry point for applying for authorization; the authorization service platform is deployed together with the application system that the customer needs to use in the customer's on-site cluster environment, and has the ability to automatically discover applications, offline authorization, and automatically verify authorization information.

[0096] In an optional embodiment of the present application, the deploying the authorization service platform in the target cluster includes:

[0097] Create a new namespace in the target cluster and deploy the authorization file and authorization service platform in the namespace.

[0098] Bind the authorization file to the authorization service platform, wherein the authorization file includes target cluster identification information, client identification information, application system identification information and name.

[0099] In an optional embodiment of the present application, the method further includes:

[0100] After the application system is successfully authorized, the application system verifies whether the decrypted authorization code is consistent with the target cluster identification information, client identification information, application system identification information and name in the authorization file;

[0101] When the decrypted authorization code is consistent with the target cluster identification information, client identification information, application system identification information and name in the authorization file, the current application system is displayed on the authorization service platform.

[0102] In an optional embodiment of the present application, the license center platform is a central end, at least one target cluster is a remote end, and the license center platform is deployed by the following steps:

[0103] Deploy a file corresponding to each target cluster, which includes the authorization service platform identification information, the effective period of the application system, the application system identification information, and the number of application instances.

[0104] In an optional embodiment of the present application, the licensing center platform generates an application system authorization code corresponding to the target cluster through an asymmetric encryption algorithm.

[0105] In an optional embodiment of the present application, the method further includes:

[0106] Each application system monitors and obtains user authorization access behavior information, builds an application change set, establishes a distributed blockchain, and generates an access change coefficient from the access change set , if the coefficient of variation is accessed > Preset change threshold and send the first warning instruction to the authorized service platform; if the access change coefficient When the value is less than or equal to the preset change threshold, the first qualified instruction is sent to the authorized service platform;

[0107] Use the trained authorization authentication model to plan the application system authentication steps to obtain several verification matching item sets, which include: identity authentication matching information items, license matching information items, device management matching information items, and geographic location authentication matching information items. Generate information verification coefficients based on the matching item sets. , if the information verification coefficient ≥ first threshold When the information verification coefficient is <First threshold When , a second warning instruction is generated;

[0108] After the authorization service platform identifies the user's first qualified instruction and the second qualified instruction, it determines the priority authorization level and executes the authorization behavior on the user;

[0109] When the first warning instruction and the second warning instruction are received, the corresponding security response strategy is triggered.

[0110] In an optional embodiment of the present application, the method further includes:

[0111] Collect and obtain user authorized access behavior information, including user login IP, application operation, access content and access traffic information;

[0112] Summarize user access behavior information, extract the user's access frequency change value fwbd, access content change value nrbd, access time change value sjbd, access permission change value qxbd and access device change value sbbd, and identify the access change ratio Compared with the time interval , construct an application change set; the access change ratio Generated by the following formula:

[0113]

[0114] in, , , , , ,and , , , , and is the preset proportional coefficient of the access frequency change value fwbd, the access content change value nrbd, the access time change value sjbd, the access permission change value qxbd and the access device change value sbbd, is a constant correction factor.

[0115] In an optional embodiment of the present application, the time interval is Generated by the following formula:

[0116]

[0117] in, represents the time interval between the user's jth and j+1th visits, m represents the user's total number of visits, and calculates the time interval between all user visits The sum of the time intervals to obtain the user .

[0118] In an optional embodiment of the present application, according to the access change ratio Compared with the time interval , after dimensionless processing, the corresponding data values ​​are mapped to regions and the corresponding data values ​​are mapped to intervals Then generate the access variation coefficient according to the following formula :

[0119]

[0120] in, is the preset mean of the access change ratio, is the preset mean value of the time interval ratio, n is a positive integer greater than 1, ,n, is the number of access behavior information; and is the weight value; , ,and .

[0121] In the authorization client instance management method disclosed in the present invention, based on the multi-level authorization technology, a GRPC channel is established between the authorization client SDK and the authorization service platform to realize automatic discovery of the application system and automatic parsing and verification of the authorization file. The authorization client SDK supports two development languages, JAVA and GoLang, and performs secondary development according to actual business scenario requirements to meet the multi-level authorization requirements of various core business scenarios, and is adapted to the application systems developed within the enterprise, with strong applicability and scalability.

[0122] In the authorized client instance management method disclosed in the present invention, based on the authorized instance resource pooling technology, for application systems that need to operate business by creating instance resources, the authorized client automatically obtains the instance authorization code from the authorization service platform when creating an instance, and verifies whether the number of instances exceeds the authorized limit. If the limit is exceeded, creation cannot continue, but creation can continue within the limit. In addition, in the instance resource pool required for applications deployed in a cluster environment, flexible scheduling of instances is supported. Within a limited number of instances, instance creation and instance return and re-creation are performed, and the instance authorization code is also updated synchronously.

[0123] In the authorization client instance management method disclosed in the present invention, multi-level authorization technology is adopted, and the core business logic is implemented in the authorization service client SDK to meet the unified management of offline authorization and authorization information of multiple products in different project environments, so that it can perform multi-level protection for independently developed application software in the non-Internet environment of confidential units, and realize advanced authorization, security protection, resource limitation and effective monetization.

[0124] It should be understood that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0125] See also Figure 5 An embodiment of the present application provides an authorized client instance management system, including:

[0126] The authorization client is used to send an instance creation request to the authorization service platform, and is also used to receive the instance authorization code and create the instance in the application system, wherein the authorization client is embedded in the application system, and the application system and the authorization service platform are deployed in the same cluster environment;

[0127] The authorization service platform is connected to the authorization client to receive instance creation requests, determine whether the number of available instances is 0, and if the number of available instances is not 0, generate an instance authorization code and send it to the authorization client, where each instance corresponds to an instance authorization code; if the number of available instances is 0, there is no response.

[0128] In an optional embodiment of the present application, the authorized client instance management system further includes:

[0129] The licensing center platform is used to generate an application system authorization code corresponding to the target cluster, wherein the application system authorization code is generated according to the client identification information, the authorization service platform identification information, the valid period of the application system, the application system identification information and name, and the number of application instances, and the authorization client SDK is embedded in the application system information, and the application system information includes the identification information and name of the application system;

[0130] The preset application system deployed in the target cluster is used to parse the configuration item information of the authorization client SDK, obtain the configuration item information, verify the decrypted authorization code and the configuration item information, and after the verification, determine that the application system authorization is successful, so that the application system is allowed to log in to the use instance, wherein the application system communicates with the deployment authorization service platform through the GRPC protocol;

[0131] The authorization service platform is deployed in the target cluster, and is also used to obtain the application system authorization code, decrypt the application system authorization code, obtain the decrypted authorization code, and send it to the application system.

[0132] For the specific definition of the above-mentioned authorized client instance management system, please refer to the definition of the method above, which will not be repeated here. Each module in the above-mentioned authorized client instance management system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0133] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0134] Obviously, those skilled in the art can make various changes and modifications 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.

Claims

1. A method for managing an authorized client instance, characterized in that: include: The authorization client sends an instance creation request to the authorization service platform, wherein the authorization client is embedded in the application system, and the application system and the authorization service platform are deployed in the same cluster environment; The authorization service platform receives the instance creation request and determines whether the number of available instances is 0. If the number of available instances is not 0, it generates an instance authorization code and sends it to the authorization client. Each instance corresponds to an instance authorization code. If the number of available instances is 0, there is no response. The authorization client receives the instance authorization code and creates an instance in the application system. Wherein, the method further comprises: Each application system monitors and obtains user authorization access behavior information, builds an application change set, establishes a distributed blockchain, and generates an access change coefficient from the access change set , if the coefficient of variation is accessed > Preset change threshold and send the first warning instruction to the authorized service platform; if the access change coefficient When the value is less than or equal to the preset change threshold, the first qualified instruction is sent to the authorized service platform; Use the trained authorization authentication model to plan the application system authentication steps to obtain several verification matching item sets, which include: identity authentication matching information items, license matching information items, device management matching information items, and geographic location authentication matching information items. Generate information verification coefficients based on the matching item sets. , if the information verification coefficient ≥First threshold When the information verification coefficient is <First threshold When , a second warning instruction is generated; After the authorization service platform identifies the user's first qualified instruction and the second qualified instruction, it determines the priority authorization level and executes the authorization behavior on the user; When the first warning instruction and the second warning instruction are received, the corresponding security response strategy is triggered. Wherein, the method further comprises: Collect and obtain user authorized access behavior information, including user login IP, application operation, access content and access traffic information; Summarize user access behavior information, extract the user's access frequency change value fwbd, access content change value nrbd, access time change value sjbd, access permission change value qxbd and access device change value sbbd, and identify the access change ratio Compared with the time interval , construct an application change set; the access change ratio Generated by the following formula: ; in, , , , , ,and , , , , and is the preset proportional coefficient of the access frequency change value fwbd, the access content change value nrbd, the access time change value sjbd, the access permission change value qxbd and the access device change value sbbd, is a constant correction factor.

2. The method according to claim 1, characterized in that The step of determining whether the available instance is 0 includes: The preset number of instances is compared with the actual number of instances that have been created. When the actual number of instances that have been created is less than the preset number of instances, it is determined that the available instances are not 0; when the actual number of instances that have been created is equal to the preset number of instances, it is determined that the available instances are 0.

3. The method according to claim 1, characterized in that Before the authorization client sends the instance creation request to the authorization service platform, the method further includes: The authorization service platform obtains the application system authorization code, decrypts the application system authorization code, obtains the decrypted authorization code, and sends it to the application system; The application system parses the configuration item information of the authorization client SDK, obtains the configuration item information, verifies the decrypted authorization code and the configuration item information, and after the verification passes, determines that the application system authorization is successful.

4. The method according to claim 3, characterized in that The application system authorization code is generated based on the licensing center platform according to the client identification information, the authorization service platform identification information, the valid period of the application system, the application system identification information and name, and the number of application instances.

5. The method according to claim 3, characterized in that: The application system communicates with the deployment authorization service platform via the GRPC protocol.

6. The method according to claim 1, characterized in that The time interval is Generated by the following formula: ; in, represents the time interval between the user's jth and j+1th visits, m represents the user's total number of visits, and calculates the time interval between all user visits The sum of the time intervals to obtain the user .

7. The method according to claim 6, characterized in that Based on visit change ratio Compared with the time interval , after dimensionless processing, the corresponding data values ​​are mapped to regions and the corresponding data values ​​are mapped to intervals Then generate the access variation coefficient according to the following formula : ; in, is the preset mean of the access change ratio, is the preset mean value of the time interval ratio, n is a positive integer greater than 1, ,2,...,n,is the number of access behavior information; B i For the i The access change ratio of access behavior information, and is the weight value; , ,and .

8. An authorized client instance management system, characterized in that: include: The authorization client is used to send an instance creation request to the authorization service platform, and is also used to receive the instance authorization code and create the instance in the application system, wherein the authorization client is embedded in the application system, and the application system and the authorization service platform are deployed in the same cluster environment; The authorization service platform is connected to the authorization client to receive the instance creation request, determine whether the number of available instances is 0, and if the number of available instances is not 0, generate an instance authorization code and send it to the authorization client, where each instance corresponds to an instance authorization code; if the number of available instances is 0, there is no response. Among them, each application system monitors and obtains user authorization access behavior information, builds an application change set, establishes a distributed blockchain, and generates an access change coefficient from the access change set , if the coefficient of variation is accessed > Preset change threshold and send the first warning instruction to the authorized service platform; if the access change coefficient When the value is less than or equal to the preset change threshold, the first qualified instruction is sent to the authorized service platform; Use the trained authorization authentication model to plan the application system authentication steps to obtain several verification matching item sets, which include: identity authentication matching information items, license matching information items, device management matching information items, and geographic location authentication matching information items. Generate information verification coefficients based on the matching item sets. , if the information verification coefficient ≥First threshold When the information verification coefficient is <First threshold When , a second warning instruction is generated; After the authorization service platform identifies the user's first qualified instruction and the second qualified instruction, it determines the priority authorization level and executes the authorization behavior on the user; When the first warning instruction and the second warning instruction are received, the corresponding security response strategy is triggered. Among them, collect and obtain user authorized access behavior information, including user login IP, application operation, access content and access traffic information; Summarize user access behavior information, extract the user's access frequency change value fwbd, access content change value nrbd, access time change value sjbd, access permission change value qxbd and access device change value sbbd, and identify the access change ratio Compared with the time interval , construct an application change set; the access change ratio Generated by the following formula: ; in, , , , , ,and , , , , and is the preset proportional coefficient of the access frequency change value fwbd, the access content change value nrbd, the access time change value sjbd, the access permission change value qxbd and the access device change value sbbd, is a constant correction factor.