An access control method, device, electronic device, and storage medium
By querying the cloud platform for terminal information access permissions through the access controller (AC), the problem of users being unable to access existing resources when the authentication server is unreachable is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202310574806.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-19
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2043-05-19
AI Technical Summary
During the user authentication process, if the authentication server becomes unreachable, authenticated users cannot access their original access permissions, resulting in a poor user experience.
When the access controller (AC) detects that the authentication server is unreachable, it queries the cloud platform for the terminal's access permissions and allows the terminal to access the corresponding resources if the permissions are found.
This ensures that authenticated terminals can still access resources with their original permissions when the authentication server is unreachable, thus improving the user experience.
Smart Images

Figure CN116599729B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to an access control method, apparatus, electronic device and storage medium. Background Technology
[0002] Currently, during the user authentication process, in cases where the authentication server is unreachable, the access device (e.g., Access Controller (AC)) typically grants specific access permissions to all connected users. Users can then access the resources corresponding to their specific access permissions without authentication through their respective terminals.
[0003] However, for authenticated users, they may not be able to access resources corresponding to their original access permissions (which are greater than the specific access permissions), resulting in a poor user experience. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this application provides an access control method, device, electronic device, and storage medium.
[0005] According to a first aspect of the embodiments of this application, an access control method is provided, the method being applied to an access control (AC), the method comprising:
[0006] Upon receiving an access request from a terminal, if the authentication server is detected to be unreachable, the cloud platform is queried for the access permissions corresponding to the terminal information carried in the access request.
[0007] If the access permissions corresponding to the terminal information are found, then the terminal is allowed to access the resources corresponding to the access permissions of the terminal information.
[0008] According to a second aspect of the embodiments of this application, an access control device is provided, the device being applied to an AC, the device comprising:
[0009] The query module is used to query the cloud platform for the access permissions corresponding to the terminal information carried in the access request after receiving the access request sent by the terminal. If the authentication server is detected to be unreachable, the module will query the cloud platform for the access permissions corresponding to the terminal information carried in the access request.
[0010] The first control module is configured to allow the terminal to access and access the resources corresponding to the access permissions corresponding to the terminal information if the query module finds the access permissions corresponding to the terminal information.
[0011] According to a third aspect of the present application, an electronic device is provided, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being prompted by the machine-executable instructions to implement the method steps of the access control method described above.
[0012] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when the computer program is executed by a processor, it implements the method steps of the access control method described above.
[0013] The technical solutions provided by the embodiments of this application may include the following beneficial effects:
[0014] In this embodiment, when the AC receives an access request from a terminal and detects that the authentication server is unreachable, it can query the cloud platform for the access permissions corresponding to the terminal information carried in the access request. When the access permissions corresponding to the terminal information are found (i.e., the terminal is an authenticated terminal), the AC allows the terminal to access the access resources corresponding to the access permissions of the terminal information. In other words, the terminal can still access the access resources corresponding to the original access permissions, thereby improving the user experience.
[0015] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this application, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0017] Figure 1 A flowchart illustrating an access control method provided in an embodiment of this application;
[0018] Figure 2 A schematic diagram of the architecture of a WLAN network provided in an embodiment of this application;
[0019] Figure 3 This is a schematic diagram of the structure of an access control device provided in an embodiment of this application;
[0020] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0021] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0022] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0023] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if” or “suppose” as used herein may be interpreted as “when…” or “when…”.
[0024] The embodiments of this application will now be described in detail.
[0025] This application provides an access control method, which is applied to an access control system (AC). Figure 1 As shown, the method may include the following steps:
[0026] S11. After receiving the access request sent by the terminal, if the authentication server is found to be unreachable, query the cloud platform for the access permissions corresponding to the terminal information carried in the access request.
[0027] S12. If the access permissions corresponding to the terminal information are found, then the terminal is allowed to access the network and the terminal is allowed to access the resources corresponding to the access permissions of the terminal information.
[0028] It should be noted that the specific monitoring process for whether the AC monitoring authentication server is reachable in step S11 above is existing technology and will not be described in detail here.
[0029] If the AC detects that the authentication server is reachable, the AC will still execute the existing authentication process. That is, the AC will initiate the authentication process corresponding to the authentication method carried in the access request.
[0030] In addition, in the application embodiment, the cloud platform records the information of each terminal and its corresponding access permissions. This information can be included in the authentication information corresponding to the corresponding terminal (which can be a wired terminal or a wireless terminal). This authentication information can be reported to the cloud platform by the AC in real time, or it can be reported to the cloud platform by the AC according to a set period (which can be set by the administrator according to the actual network requirements).
[0031] Here, each piece of terminal information may include one or more of the following: the terminal's IP address, the terminal's MAC address, and the terminal's fingerprint information (e.g., operating system information, manufacturer information, etc.). Specifically, it may be related to the terminal's authentication method (e.g., MAC authentication, portal authentication, or 802.1X authentication). For example, when the terminal's authentication method is MAC authentication, the corresponding terminal information may only include the terminal's MAC address.
[0032] Each authentication information entry may also include information such as the terminal authentication time, the access point (AP), and the terminal authentication method; furthermore, when the terminal is a wired terminal, the corresponding authentication information may also include information such as the physical port information of the wired physical port to which it is connected.
[0033] Furthermore, in the embodiments of this application, the AC may also perform the following operations:
[0034] After querying the cloud platform for the access permissions corresponding to the terminal information carried in the access request, if no access permissions are found, the terminal is allowed to access the resources corresponding to the specified access permissions; here, the specified access permissions are less than the access permissions corresponding to the terminal information.
[0035] In other words, after the AC completes step S11, if it executes step S12, it means that the terminal is an authenticated terminal (that is, the corresponding holder is an authenticated user) and can still enjoy the original access permissions; if it executes the above operation, it means that the terminal is an unauthenticated terminal (that is, the corresponding holder is not an authenticated user) and can only enjoy the specified access permissions.
[0036] In one example, the AC can send a query request to the cloud platform to query the access permissions corresponding to the terminal information carried in the aforementioned access request.
[0037] Upon receiving the query request, the cloud platform will retrieve the access permissions corresponding to the terminal information from the locally stored terminal information and their corresponding access permissions. If the access permissions corresponding to the terminal information are found, the cloud platform will further obtain the access permissions corresponding to the most recently recorded terminal information and send a query response to the AC carrying the obtained access permissions. If the access permissions corresponding to the terminal information are not found, the cloud platform will send a query response to the AC indicating that the access permissions corresponding to the terminal information were not found.
[0038] If the AC subsequently receives a query response carrying the access permissions corresponding to the terminal information, it means that the access permissions corresponding to the terminal information have been found; if the AC receives a query response indicating that the access permissions corresponding to the terminal information have not been found, it means that the access permissions corresponding to the terminal information have not been found.
[0039] Furthermore, to improve the processing efficiency of access requests, before querying the cloud platform for the access permissions corresponding to the terminal information carried in the access request, the AC can also perform the following operations:
[0040] Search for the access permissions corresponding to the terminal information in the locally stored terminal information and their corresponding access permissions.
[0041] If the access permissions corresponding to the terminal information are not found, then the system will query the cloud platform for the access permissions corresponding to the terminal information carried in the access request.
[0042] Once the access permissions corresponding to the terminal information are found, the AC can directly allow the terminal to access and access the resources corresponding to the access permissions of the terminal information.
[0043] In other words, in this embodiment of the application, the AC can use a certain amount of storage space to store the authentication information of the terminal. When it receives the access request of the terminal and detects that the authentication service is unavailable, it can first search for the access permissions corresponding to the terminal information carried in the access request locally. If it cannot find them, it will then query the cloud platform. This can improve the processing efficiency of the access request and further improve the user experience.
[0044] The above access control method will be described in detail below with reference to specific embodiments.
[0045] like Figure 2 As shown, suppose the AC receives an access request sent by terminal 1 through the access point (AP) and the switch. At this time, the AC detects that the authentication server is unreachable. In this case, the AC queries the cloud platform for the access permissions corresponding to the terminal information of terminal 1 (denoted as terminal information 1) carried in the access request.
[0046] If the AC finds the access permissions corresponding to terminal information 1, it means that terminal 1 is an authenticated terminal, and the AC allows terminal 1 to access and access the resources corresponding to the access permissions of terminal information 1.
[0047] As can be seen from the above technical solutions, in the embodiments of this application, when the AC receives an access request sent by the terminal and detects that the authentication server is unreachable, it can query the cloud platform for the access permissions corresponding to the terminal information carried in the access request; and when the access permissions corresponding to the terminal information are found (i.e., the terminal is an authenticated terminal), the terminal is allowed to access and the terminal is allowed to access the access resources corresponding to the access permissions corresponding to the terminal information. That is, the terminal can still access the access resources corresponding to the original access permissions, thereby improving the user experience.
[0048] Based on the same inventive concept, this application also provides an access control device, which is applied to an AC, and its structural schematic diagram is shown below. Figure 3 As shown, it specifically includes:
[0049] The query module 31 is used to query the cloud platform for the access permissions corresponding to the terminal information of the terminal carried in the access request if it is detected that the authentication server is unreachable after receiving the access request sent by the terminal.
[0050] The first control module 32 is configured to allow the terminal to access and access the access resources corresponding to the access permissions corresponding to the terminal information if the query module finds the access permissions corresponding to the terminal information.
[0051] Preferably, the first control module 32 is further configured to:
[0052] After the query module queries the cloud platform for the access permissions corresponding to the terminal information carried in the access request, if the query module does not find the access permissions corresponding to the terminal information, then the terminal is allowed to access and the terminal is allowed to access the resources corresponding to the specified access permissions.
[0053] The specified access permission is less than the access permission corresponding to the terminal information.
[0054] Preferably, the device further includes:
[0055] Search module ( Figure 3 (Not shown in the image), used to search for the access permissions corresponding to the terminal information in locally stored terminal information and their corresponding access permissions before the query module queries the cloud platform for the access permissions corresponding to the terminal information of the terminal carried in the access request; and
[0056] If the access permissions corresponding to the terminal information are not found, the query module is triggered to query the cloud platform for the access permissions corresponding to the terminal information carried in the access request.
[0057] Preferably, the device further includes:
[0058] Second control module ( Figure 3 (Not shown in the image), is used to allow the terminal to access and access the access resources corresponding to the access permissions corresponding to the terminal information if the search module finds the access permissions corresponding to the terminal information.
[0059] Preferably, the device further includes:
[0060] Authentication module ( Figure 3 (Not shown in the image), used to initiate the authentication process corresponding to the authentication method if the query module 31 detects that the authentication server is reachable, based on the authentication method of the terminal carried in the access request.
[0061] As can be seen from the above technical solutions, in the embodiments of this application, when the AC receives an access request sent by the terminal and detects that the authentication server is unreachable, it can query the cloud platform for the access permissions corresponding to the terminal information carried in the access request; and when the access permissions corresponding to the terminal information are found (i.e., the terminal is an authenticated terminal), the terminal is allowed to access and the terminal is allowed to access the access resources corresponding to the access permissions corresponding to the terminal information. That is, the terminal can still access the access resources corresponding to the original access permissions, thereby improving the user experience.
[0062] This application also provides an electronic device, such as... Figure 4 As shown, it includes a processor 41 and a machine-readable storage medium 42, the machine-readable storage medium 42 storing machine-executable instructions that can be executed by the processor 41, the processor 41 being prompted by the machine-executable instructions to implement the steps of the above-described access control method.
[0063] The aforementioned machine-readable storage medium may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the machine-readable storage medium may also be at least one storage device located remotely from the aforementioned processor.
[0064] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0065] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of the access control method described above.
[0066] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. An access control method, characterized in that, The method is applied to an access controller (AC), and the method includes: Upon receiving an access request from a terminal, if the authentication server is detected to be unreachable, the cloud platform is queried for the access permissions corresponding to the terminal information carried in the access request. If the access permissions corresponding to the terminal information are found, then the terminal is allowed to access the network and the terminal is allowed to access the resources corresponding to the access permissions of the terminal information. After querying the cloud platform for the access permissions corresponding to the terminal information carried in the access request, if no access permissions corresponding to the terminal information are found, then the terminal is allowed to access and the terminal is allowed to access the resources corresponding to the specified access permissions. The specified access permission is less than the access permission corresponding to the terminal information.
2. The method according to claim 1, characterized in that, Before querying the cloud platform for the access permissions corresponding to the terminal information of the terminal carried in the access request, the method further includes: Search for the access permissions corresponding to the terminal information in the locally stored terminal information and their corresponding access permissions; If the access permissions corresponding to the terminal information are not found, then the cloud platform is queried for the access permissions corresponding to the terminal information carried in the access request.
3. The method according to claim 2, characterized in that, The method further includes: If the access permissions corresponding to the terminal information are found, then the terminal is allowed to access the resources corresponding to the access permissions of the terminal information.
4. The method according to claim 1, characterized in that, The method further includes: If the authentication server is detected to be reachable, then the authentication process corresponding to the authentication method carried in the access request is initiated.
5. An access control device, characterized in that, The device is used in an access controller AC, and the device includes: The query module is used to query the cloud platform for the access permissions corresponding to the terminal information carried in the access request after receiving the access request sent by the terminal. If the authentication server is detected to be unreachable, the module will query the cloud platform for the access permissions corresponding to the terminal information carried in the access request. The first control module is configured to allow the terminal to access and access the access resources corresponding to the access permissions corresponding to the terminal information if the query module finds the access permissions corresponding to the terminal information. The first control module is further configured to: After the query module queries the cloud platform for the access permissions corresponding to the terminal information carried in the access request, if the query module does not find the access permissions corresponding to the terminal information, then the terminal is allowed to access and the terminal is allowed to access the resources corresponding to the specified access permissions. The specified access permission is less than the access permission corresponding to the terminal information.
6. The apparatus according to claim 5, characterized in that, The device further includes: The lookup module is configured to, before the query module queries the cloud platform for the access permissions corresponding to the terminal information carried in the access request, search locally for the access permissions corresponding to the terminal information; and If the access permissions corresponding to the terminal information are not found, the query module is triggered to query the cloud platform for the access permissions corresponding to the terminal information carried in the access request.
7. The apparatus according to claim 6, characterized in that, The device further includes: The second control module is configured to allow the terminal to access and access the resources corresponding to the access permissions corresponding to the terminal information if the search module finds the access permissions corresponding to the terminal information.
8. The apparatus according to claim 5, characterized in that, The device further includes: The authentication module is used to initiate the authentication process corresponding to the authentication method carried in the access request if the query module detects that the authentication server is reachable.
9. An electronic device, characterized in that, The method includes a processor and a machine-readable storage medium storing machine-executable instructions that can be executed by the processor, which are prompted by the machine-executable instructions to perform the method steps of any one of claims 1-4.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method steps of any one of claims 1-4.
Citation Information
Patent Citations
Wireless network connection method, device, electronic equipment and medium
CN110493783A
Authentication system and program
JP2008299782A
