Access control method and device, electronic equipment and storage medium

By receiving access requests and verifying permissions on the server side, the object providing the service is identified, thus implementing access control for the service. This solves the problem of data transmission security in interconnected networks, reduces risks, and improves security.

CN119030734APending Publication Date: 2024-11-26BEIJING WONDERSOFT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410906799.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In interconnected networks, direct data interaction increases the risk of service usage and reduces the security of data transmission.

Method used

After receiving an access request, the server performs permission verification, determines the objects that can provide services based on the service registry, and performs access control through the server to prevent direct access.

Benefits of technology

By implementing access control on the server side, the risks associated with service usage are reduced, and the security of data transmission is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030734A_ABST
    Figure CN119030734A_ABST
Patent Text Reader

Abstract

The invention discloses an access control method and device, electronic equipment and a storage medium, and is applied to a server side, and the access control method comprises the following steps: receiving an access request sent by a first object; performing permission verification on the first object according to the access request; if the permission verification of the first object is passed, determining a second object capable of providing services for the first object according to the access request and a service registry, the service registry comprising information of services registered by at least one service provider at a server; and sending the access request to the second object, so that the second object provides service for the first object according to the access request. By applying the technical scheme provided by the invention, the first object does not directly access the service of the second object, but performs access control through the server, so that the risk of service use is reduced, and the security of data transmission is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to an access control method, device, electronic device and storage medium. Background Art

[0002] In an interconnected network, multiple different services are usually deployed. These services may be provided by different vendors or different departments. Some services may use other services for data processing, or clients may request some services for data processing, which involves data interaction between different services or between clients and services.

[0003] Currently, these data interactions are all carried out directly in the interconnected network, that is, the service or client can directly access the service it needs to request. This direct access method increases the risk of service use and reduces the security of data transmission. Summary of the invention

[0004] The purpose of this application is to provide an access control method, device, electronic device and storage medium, which can reduce the risk of service use and improve the security of data transmission.

[0005] In order to solve the above technical problems, this application provides the following technical solutions:

[0006] In a first aspect, an access control method is provided, which is applied to a server, and the method includes:

[0007] receiving an access request sent by the first object;

[0008] Performing permission verification on the first object according to the access request;

[0009] If the permission verification of the first object is passed, determining a second object that can provide services for the first object according to the access request and a service registry, wherein the service registry includes information of services registered by at least one service provider on the server;

[0010] The access request is sent to the second object, so that the second object provides a service for the first object according to the access request.

[0011] Optionally, the first object is both a service consumer and a service provider, the access request carries information about services that the first object can provide and information about a target service to be accessed, and performing permission verification on the first object according to the access request includes:

[0012] Determining, based on the service information that the first object can provide, whether the first object has been registered for service on the server;

[0013] If the first object has been registered for service at the server, it is determined whether the first object has permission to access the target service according to the information of the target service.

[0014] Optionally, after sending the access request to the second object, the method further includes:

[0015] receiving response data sent by the second object;

[0016] The response data is sent to the first object.

[0017] Optionally, before sending the response data to the first object, the method further includes:

[0018] Perform data protection processing on the response data.

[0019] Optionally, the method further comprises:

[0020] Receiving a service registration application sent by a third party;

[0021] According to the service registration application, identity authentication is performed on the third object;

[0022] If the identity authentication of the third object is passed, permission information is sent to the third object.

[0023] Optionally, the server is deployed with a management terminal, and the method further includes at least one of the following:

[0024] Sending management strategies and scheduling instructions to the management terminal;

[0025] Performing terminal authentication on the management terminal;

[0026] Receive the monitoring information data sent by the management terminal.

[0027] Optionally, the service end includes a server cluster, a registration center, a management service, and a basic service are deployed on the first server in the server cluster, and a management terminal is deployed on each server in the server cluster. The management terminal is used to manage the services registered on the corresponding server and send the acquired monitoring information data to the first server. The first server manages and controls the management terminals deployed on all servers in the server cluster.

[0028] In a second aspect, an access control device is provided, which is applied to a server, and the device includes:

[0029] A receiving module, configured to receive an access request sent by the first object;

[0030] A verification module, configured to verify the permission of the first object according to the access request;

[0031] a determination module, configured to determine, if the authority verification of the first object passes, a second object that can provide services for the first object according to the access request and a service registry, wherein the service registry includes information about services registered by at least one service provider on the server;

[0032] The sending module is used to send the access request to the second object, so that the second object provides a service for the first object according to the access request.

[0033] In a third aspect, an electronic device is provided, including:

[0034] Memory for storing computer programs;

[0035] A processor is used to implement the steps of the access control method as described in the first aspect when executing the computer program.

[0036] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the access control method described in the first aspect are implemented.

[0037] In a fifth aspect, a computer program product is provided, which includes computer instructions, which are stored in a computer-readable storage medium and are suitable for being read and executed by a processor, so that a computer device having the processor performs the steps of the access control method as described in the first aspect.

[0038] By applying the technical solution provided in the embodiment of the present application, after receiving the access request sent by the first object, the server verifies the authority of the first object according to the access request. If the verification is successful, the server determines the second object that can provide services for the first object according to the access request and the service registry, and sends the access request to the second object, so that the second object provides services for the first object according to the access request. The first object will not directly access the service of the second object, but will perform access control through the server, which helps to reduce the risk of service use and improve the security of data transmission.

[0039] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A schematic diagram of a server cluster included in the server side in an embodiment of the present application;

[0042] Figure 2 This is a schematic diagram of the main data flow in the embodiment of this application;

[0043] Figure 3 This is a flowchart of an implementation of an access control method in an embodiment of the present application;

[0044] Figure 4 This is a schematic diagram of an example of an embodiment of the present application;

[0045] Figure 5 This is a schematic diagram of another example in the embodiment of the present application;

[0046] Figure 6 This is a schematic diagram of the structure of an access control device in an embodiment of the present application;

[0047] Figure 7 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of the present application.

[0049] The terms "first", "second", etc. of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "or" in the present application represents at least one of the connected objects. For example, the protection scope of "A or B" covers at least three schemes, that is, scheme one: including A and excluding B; scheme two: including B and excluding A; scheme three: including both A and B. In addition, the terms "A and / or B", "at least one of A and B", and "at least one of A or B" also cover at least the above three schemes respectively. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0050] The core of this application is to provide an access control method, which can be applied to a server, where a service registry is deployed, and the service registry includes at least one service provider registered on the server, such as information on database services, business processing services, mail services, office automation (OA) services, data support computing services, etc. in an intranet environment. These services registered on the server may be from different manufacturers or different departments, but there is data interaction between them. The technical solution provided by the embodiment of this application can realize the supervision of service use and the supervision of data transmitted over the network.

[0051] Optionally, the server can be a single server, in which a registration center, management service, and basic service are deployed. A management terminal can also be deployed. The management terminal is used to manage the services registered on the server and send the acquired monitoring information data to the server. The server can manage and control the management terminal.

[0052] Optionally, the service end may include a server cluster, which includes at least two servers. A registration center, management services, and basic services are deployed on the first server in the server cluster. A management terminal is deployed on each server in the server cluster. The management terminal is used to manage the services registered on the corresponding server and send the acquired monitoring information data to the first server. The first server manages and controls the management terminals deployed on all servers in the server cluster.

[0053] like Figure 1As shown, the server cluster includes server A, server B and server C. The registration center, management service and basic service of the server are deployed on server B. Server B can be considered as the main deployment address of the management service. At the same time, the management terminal B can also be deployed on server B. The management terminal B can manage the services registered on server B, such as microservices, the first process (such as the C process), the second process (such as the Springboot process), and other services. Deploy management terminal A on server A, and management terminal A can manage the services registered on server A. Deploy management terminal C on server C, and management terminal C manages the services registered on server C. The services registered on each server can report the status to the corresponding management terminal, and each management terminal can obtain the behavior log of the managed service and send control instructions to it. Each management terminal sends the acquired monitoring information data to server B. Server B can manage and control the management terminals deployed on all servers in the server cluster, such as sending management policies to the management terminal. Different servers can know the services registered on different servers through the service registration function and service discovery function.

[0054] like Figure 2 As shown, this is a schematic diagram of the main data flow:

[0055] The service requester can send an access request to the server to obtain service directory information or synchronize service directory information.

[0056] The server can query and synchronize service directory information based on the access request parameters and return the results to the data requester.

[0057] The server issues policies and dispatches instructions to the management terminal to control the management terminal.

[0058] The management terminal performs terminal authentication and reports information to the server.

[0059] The management terminal obtains information data of the central processing unit (CPU), memory, and hard disk of the basic hardware and operating system through data collection.

[0060] The management terminal controls the flow of data such as the start, stop, resource limit, status monitoring, database reading and writing of services registered on the server. Services registered on the server need to report logs to the management terminal.

[0061] The service registered to the registration center on the server side needs to be authenticated. After authentication, the server side returns the service permission information.

[0062] The server can find services through service discovery.

[0063] See also Figure 3 As shown, it is a flowchart of an implementation of an access control method provided in an embodiment of the present application. The method can be applied to the server and may include the following steps:

[0064] S310: Receive an access request sent by a first object.

[0065] In the embodiment of the present application, the first object can send an access request to the server according to actual needs. In this case, the first object can be understood as a service consumer or a data requester, which can be any third-party service or any client.

[0066] The access request may include at least one of the following information:

[0067] Information about the target service that the first object wants to access, such as the identifier of the target service, the type of the target service, etc.;

[0068] The content information that the first object wants to request, such as the content to be queried, the information to be obtained, etc.;

[0069] Identification information of the first object.

[0070] The server receives the access request sent by the first object and can continue to execute subsequent steps.

[0071] S320: Performing permission verification on the first object according to the access request.

[0072] The server receives the access request sent by the first object and can perform permission verification on the first object according to the access request to verify whether the first object has the requested permission.

[0073] Optionally, the server may perform permission verification on the first object according to the access request and a preset permission range.

[0074] S330: If the authority verification of the first object is passed, a second object that can provide services for the first object is determined according to the access request and the service registration table.

[0075] The service registry includes information about services registered by at least one service provider on the server side.

[0076] In an embodiment of the present application, a service provider may register a service on a server, and the server may maintain a service registry, which includes information about at least one service registered by the service provider on the server. The information about these services may include the name, version number, network address, protocol information, metadata, etc. of the service. When a service provider registers a service on a server, the server provides a unique identifier so that other services or clients can accurately identify and access the service.

[0077] The server receives the access request sent by the first object, and verifies the authority of the first object according to the access request. If the verification passes, the first object is considered to have the requested authority, and the second object that can provide services to the first object can be determined according to the access request and the service registration table. The second object can be understood as a service provider.

[0078] Optionally, the server may parse the access request to determine the specific content and service type of the first object request, query the service registry for registered services that can respond to the access request, and thereby determine the second object that can provide services for the first object.

[0079] Optionally, if the server obtains multiple registered services that can respond to the access request from the service registry, the server can select the most suitable service according to a pre-configured strategy, such as selecting an idle service, to determine the second object that can provide the service.

[0080] Optionally, the server can find the service through service discovery.

[0081] If the permission verification of the first object fails, it is considered that the first object does not have the requested permission, and no operation may be performed on the access request, or a prompt message indicating that the permission verification fails is returned to the first object.

[0082] S340: Send the access request to the second object, so that the second object provides a service to the first object according to the access request.

[0083] After the server verifies the authority of the first object and determines the second object that can provide services to the first object, the server can send an access request to the second object so that the second object can provide services to the first object according to the access request.

[0084] Optionally, the second object may perform corresponding processing according to the access request and send response data to the server. After receiving the response data, the server forwards the response data to the first object.

[0085] By applying the method provided in the embodiment of the present application, after receiving the access request sent by the first object, the server verifies the authority of the first object according to the access request. If the verification is successful, the server determines the second object that can provide services for the first object according to the access request and the service registry, and sends the access request to the second object, so that the second object provides services for the first object according to the access request. The first object will not directly access the service of the second object, but will perform access control through the server, which helps to reduce the risk of service use and improve the security of data transmission.

[0086] In some embodiments of the present application, the first object is both a service consumer and a service provider, and the access request carries information about services that the first object can provide and information about the target service to be accessed. According to the access request, performing permission verification on the first object may include the following steps:

[0087] Determine, based on the service information that the first object can provide, whether the first object has been registered for service on the server side;

[0088] If the first object has been registered for service at the server, it is determined whether the first object has permission to access the target service according to information of the target service.

[0089] For the convenience of description, the above steps are combined for explanation.

[0090] In an embodiment of the present application, the first object can be both a service consumer and a service provider. As a service consumer, the first object may have the need to access other services. As a service provider, the first object can register for services on the server side and provide services to other services or clients.

[0091] The first object sends an access request to the server, and the access request may carry service information that the first object can provide and information about the target service to be accessed. The service information that the first object can provide may include service identification information, service type information, etc., and the information about the target service to be accessed by the first object may include identification information of the target service, type information of the target service, etc.

[0092] After receiving the access request of the first object, the server can determine whether the first object has registered the service on the server according to the service information that the first object can provide. Optionally, the server can query the service registration table. If the service that the first object can provide exists in the service registration table, it can be determined that the first object has registered the service on the server. Otherwise, it is determined that the first object has not registered the service on the server.

[0093] If the first object has been registered for service on the server side, it can be further determined whether the first object has the authority to access the target service based on the information of the target service. Optionally, the server side can determine a list of objects with the authority to access the target service based on the information of the target service. If the first object is in the object list, it can be determined that the first object has the authority to access the target service, and the temporary address of the target service can be returned to the first object. Otherwise, it is determined that the first object does not have the authority to access the target service.

[0094] If the first object has not been registered with the server, the server cannot find the delivered object, and it can be considered that the permission verification has failed, and a failure message can be returned.

[0095] When the first object is both a service consumer and a service provider, performing permission verification on the first object based on service information that the first object can provide and information about the target service to be accessed can improve the accuracy of permission verification, thereby improving the security of service use.

[0096] In some embodiments of the present application, after sending the access request to the second object, the method may further include the following steps:

[0097] receiving response data sent by the second object;

[0098] Send the response data to the first object.

[0099] In an embodiment of the present application, an access request sent by a first object is received, and the first object is authenticated according to the access request. If the authentication of the first object is passed, a second object that can provide services to the first object can be determined according to the access request and the service registry, and the access request can be sent to the second object. The second object can return response data according to the access request. For example, if the access request is an information query request, the response data returned by the second object can be the information obtained by the query.

[0100] After receiving the response data sent by the second object, the server may send the response data to the first object, so that the first object can obtain the response data corresponding to the access request and realize information interaction between the first object and the second object.

[0101] In some embodiments of the present application, before sending the response data to the first object, the method may further include the following steps:

[0102] Perform data protection processing on the response data.

[0103] In the embodiment of the present application, after receiving the response data returned by the second object, the server can first perform data protection processing on the response data, such as desensitization processing, abnormality determination processing, etc. After the response data is processed for data protection, the response data is sent to the first object. In this way, the response data can be effectively supervised, and at the same time, effective monitoring of the service can be achieved. If a service abnormality is detected, the service can be started.

[0104] In some embodiments of the present application, the method may further include the following steps:

[0105] Receiving a service registration application sent by a third party;

[0106] Perform identity authentication on the third party based on the service registration application;

[0107] If the identity authentication of the third object is passed, the permission information is sent to the third object.

[0108] For the convenience of description, the above steps are combined for explanation.

[0109] In the embodiment of the present application, the third object can be any service provider. The third object can register for service on the server side according to actual needs and can send a service registration application to the server side.

[0110] After receiving the service registration application sent by the third object, the server can authenticate the third object based on the service registration application. If the identity authentication of the third object is successful, permission information can be sent to the third object to clarify which services the third object can access.

[0111] If the identity authentication of the third object fails, no processing may be performed, or a prompt message indicating that the identity authentication fails is returned to the third object.

[0112] The server authenticates the object applying for service registration. Only the object that passes the authentication can register for the service and obtain permission information. This can enhance the security of the service.

[0113] In some embodiments of the present application, the server is deployed with a management terminal, and the method may further include at least one of the following:

[0114] Send management strategies and scheduling instructions to the management terminal;

[0115] Perform terminal authentication on the management terminal;

[0116] Receive monitoring information data sent by the management terminal.

[0117] In an embodiment of the present application, a management terminal is deployed on the server side, and the server side can send management policies and scheduling instructions to the management terminal so that the management terminal can manage and schedule services registered on the server side.

[0118] The server can also perform terminal authentication on the management terminal to ensure the security of the management terminal.

[0119] The server can also receive monitoring information data sent by the management terminal, such as CPU, memory, and hard disk information data of the basic hardware and operating system collected by the management terminal, or service logs collected by the management terminal.

[0120] A management terminal is deployed on the server to facilitate the management of the service.

[0121] The embodiment of the present application supervises the service and transmitted data through the server, ensures the security of data transmission while maintaining the timeliness of the data, has a large tolerance rate for information transmission failure, multi-threaded batch feedback capability and system crash recovery capability, and can effectively solve the insecurity problem of service use.

[0122] For ease of understanding, the technical solution provided in the embodiments of the present application is described below with reference to specific examples.

[0123] Example 1: Service request reception and forwarding, such as Figure 4 As shown, the process is as follows:

[0124] After a service consumer, such as a third-party service, starts a service, it can send an access request for other services to the server. This access request can be considered a service request.

[0125] After receiving the access request for other services sent by the service consumer, the server can verify the authority of the service consumer to verify whether the service consumer has the requested authority;

[0126] If the authority verification of the service consumer is passed, the service provider that can provide the service can be determined based on the access request and the service registry, and the access request can be forwarded to the corresponding service provider;

[0127] The service provider receives the access request, provides corresponding services according to the access request, processes the access request, and returns the response data to the server;

[0128] The server receives the response data and forwards it to the service consumer;

[0129] If the permission verification of the service consumer fails, the server may send a prompt message indicating that the permission verification has failed to the service consumer, and the service consumer receives the prompt message indicating that the permission verification has failed to the service consumer.

[0130] Example 2: Access control, such as Figure 5 As shown, the process is as follows:

[0131] A service consumer, such as a third-party service, initiates an access request, encapsulates its own service information and the service to be accessed according to the request format, and calls the server access control interface;

[0132] After receiving the access request, the server first parses the data to verify whether the service consumer has registered the service. If so, it continues to verify whether the service consumer has the permission to access the service. If so, the verification is successful and the service consumer is allowed to access the service, such as returning the temporary address of the service to be accessed.

[0133] If the service consumer has not registered the service or does not have permission to access the service, a verification failure result is returned.

[0134] The embodiment of the present application realizes access control and authority control of information exchanged between services, strengthens supervision and operation monitoring of services. The server can obtain service status information in a timely manner, monitor the health status of the system in a timely manner, carry out capacity planning and performance optimization, and improve data processing efficiency.

[0135] Corresponding to the above method embodiment, the embodiment of the present application further provides an access control device, which is applied to a server. The access control device described below and the access control method described above can refer to each other.

[0136] See also Figure 6 As shown, the access control device 600 includes the following modules:

[0137] The receiving module 610 is used to receive an access request sent by the first object;

[0138] A verification module 620, configured to perform permission verification on the first object according to the access request;

[0139] A determination module 630 is used to determine, when the authority verification of the first object passes, a second object that can provide services for the first object according to the access request and a service registry, where the service registry includes information about services registered by at least one service provider at the server end;

[0140] The sending module 640 is configured to send the access request to the second object, so that the second object provides a service to the first object according to the access request.

[0141] By using the device provided in the embodiment of the present application, after receiving the access request sent by the first object, the first object is authenticated according to the access request. If the authentication is successful, the second object that can provide services for the first object is determined according to the access request and the service registry, and the access request is sent to the second object, so that the second object provides services for the first object according to the access request. The first object will not directly access the service of the second object, but will perform access control through the server, which helps to reduce the risk of service use and improve the security of data transmission.

[0142] In some embodiments of the present application, the first object is both a service consumer and a service provider, and the access request carries information about services that the first object can provide and information about the target service to be accessed. The verification module 620 is specifically used to:

[0143] Determine, based on the service information that the first object can provide, whether the first object has been registered for service on the server side;

[0144] If the first object has been registered for service at the server, it is determined whether the first object has permission to access the target service according to information of the target service.

[0145] In some embodiments of the present application, the receiving module 610 is further configured to receive response data sent by the second object after sending the access request to the second object;

[0146] The sending module 640 is further configured to send the response data to the first object.

[0147] In some embodiments of the present application, the access control device 600 further includes a protection module for:

[0148] Before sending the response data to the first object, data protection processing is performed on the response data.

[0149] In some embodiments of the present application, the access control device 600 further includes a registration module, which is used to:

[0150] Receiving a service registration application sent by a third party;

[0151] Perform identity authentication on the third party based on the service registration application;

[0152] If the identity authentication of the third object is passed, the permission information is sent to the third object.

[0153] In some embodiments of the present application, the server is deployed with a management terminal, and the access control device 600 further includes an interaction module for performing at least one of the following:

[0154] Send management strategies and scheduling instructions to the management terminal;

[0155] Perform terminal authentication on the management terminal;

[0156] Receive monitoring information data sent by the management terminal.

[0157] In some embodiments of the present application, the service side includes a server cluster, a registration center, a management service, and a basic service are deployed on the first server in the server cluster, and a management terminal is deployed on each server in the server cluster. The management terminal is used to manage the services registered on the corresponding server and send the acquired monitoring information data to the first server. The first server manages and controls the management terminals deployed on all servers in the server cluster.

[0158] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0159] Corresponding to the above method embodiment, the present application embodiment further provides an electronic device, including:

[0160] Memory for storing computer programs;

[0161] A processor is used to implement the steps of the above access control method when executing a computer program.

[0162] like Figure 7 , which is a schematic diagram of the composition structure of an electronic device, the electronic device may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through the communication bus 13.

[0163] In the embodiment of the present application, the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices, etc.

[0164] The processor 10 may call a program stored in the memory 11. Specifically, the processor 10 may execute operations in the embodiment of the access control method.

[0165] The memory 11 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions. In the embodiment of the present application, the memory 11 at least stores programs for implementing the following functions:

[0166] receiving an access request sent by the first object;

[0167] Performing permission verification on the first object according to the access request;

[0168] If the authority verification of the first object is passed, determining a second object that can provide services for the first object according to the access request and a service registry, where the service registry includes information about services registered by at least one service provider at the server end;

[0169] The access request is sent to the second object, so that the second object provides a service to the first object according to the access request.

[0170] In a possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0171] In addition, the memory 11 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0172] The communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.

[0173] Of course, it should be noted that Figure 7 The structure shown does not constitute a limitation on the electronic device in the embodiment of the present application. In actual applications, the electronic device may include Figure 7 More or fewer components than shown, or combinations of certain components.

[0174] Corresponding to the above method embodiment, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above access control method are implemented.

[0175] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, which may include computer instructions, and the computer instructions may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor may execute the computer instructions so that the computer device executes the description of the access control method in the corresponding embodiment above, so it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0176] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0177] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0178] Through the description of the above implementation methods, those skilled in the art can also clearly understand that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0179] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be directly implemented using hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a removable disk, a compact disc read-only memory (CD-ROM), or any other form of storage medium known in the art, including several instructions to execute the methods described in the various embodiments of the present application.

[0180] The embodiments of the present application are described above in conjunction with the accompanying drawings, and the description of the above embodiments is only used to help understand the technical solution and its core idea of ​​the present application. It should be pointed out that the present application is not limited to the above-mentioned specific implementation methods, which are merely illustrative and not restrictive. For ordinary technicians in this field, many forms of implementation methods can be made without departing from the scope of protection of the purpose of the present application and the claims, and the present application can also be improved and modified in a number of ways, and these implementation methods, improvements and modifications are all within the scope of protection of the present application.

Claims

1. An access control method, It is characterized in that Applied to the server, the method includes: receiving an access request sent by the first object; Performing permission verification on the first object according to the access request; If the permission verification of the first object is passed, determining a second object that can provide services for the first object according to the access request and a service registry, wherein the service registry includes information of services registered by at least one service provider on the server; The access request is sent to the second object, so that the second object provides a service for the first object according to the access request.

2. The method according to claim 1, It is characterized in that The first object is both a service consumer and a service provider, the access request carries information about services that the first object can provide and information about a target service to be accessed, and performing permission verification on the first object according to the access request includes: Determining, based on the service information that the first object can provide, whether the first object has been registered for service on the server; If the first object has been registered for service at the server, it is determined whether the first object has permission to access the target service according to the information of the target service.

3. The method according to claim 1, It is characterized in that After sending the access request to the second object, the method further includes: receiving response data sent by the second object; The response data is sent to the first object.

4. The method according to claim 3, It is characterized in that Before sending the response data to the first object, the method further includes: Perform data protection processing on the response data.

5. The method according to claim 1, It is characterized in that The method further comprises: Receiving a service registration application sent by a third party; Performing identity authentication on the third object according to the service registration application; If the identity authentication of the third object is passed, permission information is sent to the third object.

6. The method according to claim 1, It is characterized in that The server is deployed with a management terminal, and the method further includes at least one of the following: Sending management strategies and scheduling instructions to the management terminal; Performing terminal authentication on the management terminal; Receive the monitoring information data sent by the management terminal.

7. The method according to any one of claims 1 to 6, It is characterized in that The service end includes a server cluster, and a registration center, management services, and basic services are deployed on the first server in the server cluster. A management terminal is deployed on each server in the server cluster. The management terminal is used to manage the services registered on the corresponding server and send the acquired monitoring information data to the first server. The first server manages and controls the management terminals deployed on all servers in the server cluster.

8. An access control device, It is characterized in that Applied to the server, the device comprises: A receiving module, configured to receive an access request sent by the first object; A verification module, configured to verify the permission of the first object according to the access request; a determination module, configured to determine, if the authority verification of the first object passes, a second object that can provide services for the first object according to the access request and a service registry, wherein the service registry includes information about services registered by at least one service provider on the server; The sending module is used to send the access request to the second object, so that the second object provides a service for the first object according to the access request.

9. An electronic device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the access control method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the access control method according to any one of claims 1 to 7 are implemented.