Access control method, device, electronic device and storage medium

Through the interaction between the Portal server and the AAA server and the first terminal, users are allowed to independently select the terminal that needs to be offline, solving the problem of poor user experience caused by forced offline in the existing technology and improving the user experience.

CN115037518BActive Publication Date: 2024-11-01NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210499516.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-09
Publication Date
2024-11-01
Estimated Expiration
2042-05-09

AI Technical Summary

Technical Problem

In networks that require portal authentication, when users use multiple terminals, the existing technology will force down the line to access terminals with high demand, resulting in poor user experience.

Method used

Through the interaction between the Portal server and the AAA server and the first terminal, users are allowed to independently select the terminal that needs to be offline, and the terminal with less access needs is removed by the user, which improves the user experience.

Benefits of technology

Users can choose to go offline with less access needs, which improves the user experience and avoids the terminal with more access needs being removed from the forced downlink of AAA server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115037518B_ABST
    Figure CN115037518B_ABST
Patent Text Reader

Abstract

The present application provides an access control method, device, electronic device and storage medium. The method is applied to a Portal server and includes: receiving and caching authentication information sent by a first terminal; obtaining online information of a second terminal that has been online and corresponds to the account information included in the authentication information from an AAA server; when it is determined that the total number of second terminals has reached a set number based on the obtained online information, notifying the first terminal of the obtained online information; when receiving an offline request carrying device information of a target second terminal sent by the first terminal, sending the offline request to the AAA server; when a preset waiting time is reached, initiating a Portal authentication process based on the authentication information, and sending an offline response carrying the authentication result of the first terminal to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through a second Web page. The present application can improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In a network that requires portal authentication, a user can use multiple terminals to access the network. However, for security reasons, the number of terminals used by each user is often limited.

[0003] When a user needs to use a new terminal to access the network, the Authentication, Authorization, Accounting (AAA) server usually forces a terminal of the user that was previously online to go offline according to the established policy before allowing the new terminal to access. However, the terminal that is forced to go offline may be the terminal with a large access demand, which results in a poor user experience. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present application provides an access control method, device, electronic device and storage medium.

[0005] According to a first aspect of an embodiment of the present application, an access control method is provided, the method being applied to a Portal server, the method comprising:

[0006] Receiving and caching authentication information sent by the first terminal, wherein the authentication information is sent by the first terminal when the first terminal receives account information of the user input by the user to which the first terminal belongs on a first Web page displayed on the first terminal;

[0007] Acquire online information of a second terminal that has gone online and corresponds to the account information from the AAA server;

[0008] When it is determined according to the acquired online information that the total number of the second terminals has reached a set number, notifying the first terminal of the acquired online information;

[0009] When receiving a logoff request sent by the first terminal and carrying device information of a target second terminal, sending the logoff request to the AAA server, so that the AAA server performs forced logoff processing on the target second terminal corresponding to the device information carried in the logoff request, wherein the logoff request is sent by the first terminal when receiving the device information input by the user on a second Web page displayed on the first terminal, and the device information is the device information of the second terminal that needs to be logged off and selected by the user based on the acquired online information displayed on the second Web page;

[0010] When the preset waiting time is reached, the Portal authentication process is initiated according to the authentication information, and an offline response carrying the authentication result of the first terminal is sent to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the second Web page.

[0011] According to a second aspect of an embodiment of the present application, an access control device is provided, the device being applied to a Portal server, the device comprising:

[0012] a cache module, configured to receive and cache authentication information sent by a first terminal, wherein the authentication information is sent by the first terminal when the first terminal receives account information of a user input by the user on a first Web page displayed on the first terminal;

[0013] An acquisition module, used to acquire online information of a second terminal that has gone online and corresponds to the account information from an AAA server;

[0014] an access control module, configured to notify the first terminal of the acquired online information when it is determined that the total number of the second terminals has reached a set number according to the acquired online information;

[0015] a sending module, configured to, upon receiving a logoff request sent by the first terminal and carrying device information of a target second terminal, send the logoff request to the AAA server, so that the AAA server performs a forced logoff process on the target second terminal corresponding to the device information carried in the logoff request, wherein the logoff request is sent by the first terminal upon receiving the device information input by the user on a second Web page displayed on the first terminal, and the device information is the device information of the second terminal that needs to be logged off and selected by the user based on the acquired online information displayed on the second Web page;

[0016] The first processing module is used to initiate a Portal authentication process according to the authentication information when a preset waiting time is reached, and send an offline response carrying the authentication result of the first terminal to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the second Web page.

[0017] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps of the above-mentioned access control method.

[0018] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of the access control method described above are implemented.

[0019] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0020] In an embodiment of the present application, in a network that needs to perform Portal authentication, when the Portal server receives authentication information (including the user's account information) sent by the first terminal (i.e., the new terminal used by the user), it first caches the authentication information; then, it obtains the online information of the second terminal that has been online corresponding to the account information from the AAA server, and when it is determined that the total number of second terminals has reached the set number based on the obtained online information, the obtained online information is notified to the first terminal. Subsequently, when receiving an offline request sent by the first terminal carrying the device information of the target second terminal (i.e., the second terminal selected by the user that needs to be offline), the offline request is sent to the AAA server, so that the AAA server performs forced offline processing on the target second terminal; when the preset waiting time is reached, the Portal authentication process is initiated according to the authentication information, and an offline response carrying the authentication result of the first terminal is sent to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the second Web page.

[0021] In the above access control process, when a user uses a new terminal to access the above network, the AAA server no longer forces a terminal of the user that was previously online to go offline according to the established policy. Instead, through the interaction between the Portal server, the AAA server and the first terminal, the user can choose the terminal that needs to go offline. In this way, the user can choose a terminal with less access demand to go offline, thereby improving the user experience.

[0022] 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

[0023] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.

[0024] Figure 1 A flowchart of an access control method provided in an embodiment of the present application;

[0025] Figure 2 A schematic diagram of the interaction between the Portal server, the terminal and the AAA server provided in the embodiment of the present application;

[0026] Figure 3 A schematic diagram of the structure of an access control method provided in an embodiment of the present application;

[0027] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0029] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0030] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "at the time of" or "when...".

[0031] Next, the embodiments of the present application are described in detail.

[0032] The present application embodiment provides an access control method, which is applied to a Portal server, such as Figure 1 As shown, the method may include the following steps:

[0033] S11. Receive and cache authentication information sent by the first terminal.

[0034] In this step, the authentication information is sent by the first terminal when the first terminal receives the user account information input by the user to which the first terminal belongs on the first Web page displayed on the first terminal.

[0035] Here, the account information may include a user name and password, and the authentication information may also include the device information of the first terminal, so as to facilitate the subsequent use of the portal authentication process. For example, the device information of the first terminal may be the IP address of the first terminal.

[0036] Furthermore, the first Web page is actually provided by the Portal server and displayed on the first terminal.

[0037] S12: Obtain online information of the online second terminal corresponding to the account information from the AAA server.

[0038] S13. When it is determined according to the acquired online information that the total number of second terminals has reached a set number, the acquired online information is notified to the first terminal.

[0039] In this step, the above-mentioned set quantity can be set according to the actual requirements of the network where the Portal server is located.

[0040] S14: upon receiving a logoff request sent by the first terminal and carrying device information of a target second terminal, sending the logoff request to an AAA server, so that the AAA server performs a forced logoff process on the second terminal corresponding to the device information carried in the logoff request.

[0041] In this step, the offline request is sent by the first terminal when receiving the device information input by the user on the second Web page displayed on the first terminal.

[0042] Here, the device information is the device information of the second terminal that needs to go offline and is selected by the user based on the acquired online information displayed on the second Web page.

[0043] Furthermore, the second Web page is actually provided by the Portal server and displayed on the first terminal.

[0044] S15. When the preset waiting time is reached, the Portal authentication process is initiated according to the authentication information, and an offline response carrying the authentication result of the first terminal is sent to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the second Web page.

[0045] In this step, the preset waiting time can be set according to the actual requirements of the network in which the Portal server is located. For example, the preset waiting time can be 1 second.

[0046] It should be noted that, in the embodiment of the present application, the preset waiting time is set mainly to ensure that the second terminal that is forced to go offline has completed the offline process.

[0047] Specifically, in the above step S12, when the Portal server obtains the online information of the second terminal that has gone online corresponding to the account information from the AAA server, it can first send a query request carrying the account information to the AAA server through an access device that communicates with the Portal server; then, when receiving the query response carrying the online information of the second terminal that has gone online corresponding to the account information sent by the AAA server through the access device, the online information of the second terminal that has gone online corresponding to the account information is obtained from the query response.

[0048] After obtaining the online information of the online second terminal corresponding to the account information, the Portal server can count the number of these online information to determine the total number of second terminals. And when the total number of second terminals determined has reached the set number, the obtained online information is notified to the first terminal, so that the first terminal can display these online information on the second Web page, and the user can independently select the second terminal that needs to go offline, and enter the device information of the second terminal that needs to go offline (that is, the device information of the target second terminal) on the second Web page. Here, the device information is included in the online information of the second terminal that needs to go offline.

[0049] When the total number of the determined second terminals does not reach the set number, the Portal server still executes the existing authentication process. That is, the Portal server initiates the Portal authentication process according to the authentication information; subsequently, the authentication result of the first terminal is sent to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the first terminal. Here, the specific implementation process of the Portal server initiating the Portal authentication process according to the authentication information is a prior art and will not be described in detail here.

[0050] It should be noted that, in the embodiment of the present application, the first web page and the second web page may be the same web page or different web pages.

[0051] Specifically, in the above step S14, when the Portal server sends the offline request to the AAA server, the Portal server may send the offline request to the AAA server through the above access device.

[0052] The above access control method is described in detail below in conjunction with specific embodiments.

[0053] like Figure 2 As shown, it is assumed that user 1 enters the account information of user 1 on Web page 1 displayed on terminal 1. After receiving the account information, terminal 1 sends authentication information carrying the account information and the IP address of terminal 1 to the Portal server.

[0054] The Portal server receives the authentication information sent by terminal 1 and caches the authentication information. Then, the Portal server sends a query request carrying the account information to the AAA server through the access device; when receiving the query response carrying the online information of the online terminal corresponding to the account information sent by the AAA server through the access device, the online information of the online terminal corresponding to the account information is obtained from the query response.

[0055] Assume that the online information of the online terminals corresponding to the account information obtained includes the online information of terminal 2, the online information of terminal 3, and the online information of terminal 4, and assume that the above-mentioned set number is 3. Then, the Portal server determines that the total number of online terminals corresponding to the account information (i.e., 3) has reached the set number, and at this time, the Portal server notifies the online information to terminal 1. Here, each piece of online information includes the device information of the corresponding terminal (for example, IP address, etc.).

[0056] The terminal 1 displays the online information on the web page 2, so that the user can select the terminal to be offline by checking the box.

[0057] Assume that the terminal selected by user 1 to go offline is terminal 2 (the access demand of this terminal is the smallest), that is, user 1 checks the device information of terminal 2 on web page 2.

[0058] Next, terminal 1 sends an offline request carrying the device information of terminal 2 to the Portal server.

[0059] When receiving the offline request, the Portal server sends the offline request to the AAA server through the access device.

[0060] The AAA server performs forced offline processing on the terminal (ie, terminal 2) corresponding to the device information carried in the offline request.

[0061] After sending the offline request to the AAA server, the Portal server waits for 1 second (i.e., the preset waiting time mentioned above). Once 1 second is reached, it will initiate the Portal authentication process according to the authentication information, and when the authentication result for terminal 1 is received from the AAA server through the access device, it will send an offline response carrying the authentication result of terminal 1 to terminal 1, so that terminal 1 can display the authentication result of terminal 1 to the user through web page 2.

[0062] Here, the Portal server will generate a corresponding Portal authentication request based on the authentication information and send it to the access device. The access device will then continue to send the corresponding Remote Authentication Dial In User Service (RADIUS) authentication request to the AAA server, and the AAA server will finally perform the relevant authentication processing.

[0063] The AAA server will then send the authentication result for terminal 1 to the access device, which will then forward it to the Portal server.

[0064] When the authentication result of terminal 1 is authentication passed, user 1 can use terminal 1 to access the network normally.

[0065] It can be seen from the above technical scheme that in the embodiment of the present application, in the networking that needs to perform Portal authentication, the Portal server first caches the authentication information when receiving the authentication information (including the user's account information) sent by the first terminal (i.e., the new terminal used by the user); then, obtain the online information of the second terminal that has been online corresponding to the account information from the AAA server, and when it is determined that the total number of the second terminal has reached the set number according to the obtained online information, notify the first terminal of the obtained online information. Subsequently, when receiving the offline request carrying the device information of the target second terminal (i.e., the second terminal selected by the user that needs to be offline) sent by the first terminal, the offline request is sent to the AAA server, so that the AAA server performs forced offline processing on the target second terminal; when the preset waiting time is reached, the Portal authentication process is initiated according to the authentication information, and an offline response carrying the authentication result of the first terminal is sent to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the second Web page.

[0066] In the above access control process, when a user uses a new terminal to access the above network, the AAA server no longer forces a terminal of the user that was previously online to go offline according to the established policy. Instead, through the interaction between the Portal server, the AAA server and the first terminal, the user can choose the terminal that needs to go offline. In this way, the user can choose a terminal with less access demand to go offline, thereby improving the user experience.

[0067] Based on the same inventive concept, the present application also provides an access control device, which is applied to a Portal server, and its structural diagram is as follows: Figure 3 As shown, specifically including:

[0068] A cache module 31, configured to receive and cache authentication information sent by a first terminal, wherein the authentication information is sent by the first terminal when the first terminal receives account information of a user input by the user on a first Web page displayed on the first terminal;

[0069] An acquisition module 32, configured to acquire online information of a second terminal that has gone online and corresponds to the account information from an AAA server;

[0070] The access control module 33 is used to notify the first terminal of the acquired online information when it is determined that the total number of the second terminals has reached a set number according to the acquired online information;

[0071] a sending module 34, configured to, upon receiving a logoff request sent by the first terminal and carrying device information of a target second terminal, send the logoff request to the AAA server, so that the AAA server performs a forced logoff process on the target second terminal corresponding to the device information carried in the logoff request, wherein the logoff request is sent by the first terminal upon receiving the device information input by the user on a second Web page displayed on the first terminal, and the device information is the device information of the second terminal that needs to be logged off selected by the user based on the acquired online information displayed on the second Web page;

[0072] The first processing module 35 is used to initiate a Portal authentication process according to the authentication information when a preset waiting time is reached, and send an offline response carrying the authentication result of the first terminal to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the second Web page.

[0073] Preferably, the acquisition module 32 is specifically used for:

[0074] Sending a query request carrying the account information to the AAA server through an access device;

[0075] When a query response carrying online information of a second terminal that has gone online and corresponds to the account information is received from the AAA server through the access device, the online information of the second terminal that has gone online and corresponds to the account information is obtained from the query response.

[0076] Preferably, the device further comprises:

[0077] The second processing module ( Figure 3 (not shown) is used to initiate a Portal authentication process based on the authentication information when it is determined based on the acquired online information that the total number of the second terminals does not reach the set number, and send the authentication result of the first terminal to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the first Web page.

[0078] Preferably, the account information includes the user's username and password.

[0079] It can be seen from the above technical scheme that in the embodiment of the present application, in the networking that needs to perform Portal authentication, the Portal server first caches the authentication information when receiving the authentication information (including the user's account information) sent by the first terminal (i.e., the new terminal used by the user); then, obtain the online information of the second terminal that has been online corresponding to the account information from the AAA server, and when it is determined that the total number of the second terminal has reached the set number according to the obtained online information, notify the first terminal of the obtained online information. Subsequently, when receiving the offline request carrying the device information of the target second terminal (i.e., the second terminal selected by the user that needs to be offline) sent by the first terminal, the offline request is sent to the AAA server, so that the AAA server performs forced offline processing on the target second terminal; when the preset waiting time is reached, the Portal authentication process is initiated according to the authentication information, and an offline response carrying the authentication result of the first terminal is sent to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the second Web page.

[0080] In the above access control process, when a user uses a new terminal to access the above network, the AAA server no longer forces a terminal of the user that was previously online to go offline according to the established policy. Instead, through the interaction between the Portal server, the AAA server and the first terminal, the user can choose the terminal that needs to go offline. In this way, the user can choose a terminal with less access demand to go offline, thereby improving the user experience.

[0081] The present application also provides an electronic device, such as Figure 4As shown, it includes a processor 41 and a machine-readable storage medium 42, wherein the machine-readable storage medium 42 stores machine-executable instructions that can be executed by the processor 41, and the processor 41 is prompted by the machine-executable instructions to implement the steps of the above access control method.

[0082] The machine-readable storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the processor.

[0083] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0084] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the access control method described above are implemented.

[0085] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. An access control method, characterized in that: The method is applied to a Portal server, and the method includes: Receiving and caching authentication information sent by the first terminal, wherein the authentication information is sent by the first terminal when the first terminal receives account information of the user input by the user to which the first terminal belongs on a first Web page displayed on the first terminal; Acquire online information of the online second terminal corresponding to the account information from the AAA server; When it is determined according to the acquired online information that the total number of the second terminals has reached a set number, notifying the first terminal of the acquired online information; When receiving a logoff request sent by the first terminal and carrying device information of a target second terminal, sending the logoff request to the AAA server, so that the AAA server performs forced logoff processing on the target second terminal corresponding to the device information carried in the logoff request, wherein the logoff request is sent by the first terminal when receiving the device information input by the user on a second Web page displayed on the first terminal, and the device information is the device information of the second terminal that needs to be logged off and selected by the user based on the acquired online information displayed on the second Web page; When the preset waiting time is reached, the Portal authentication process is initiated according to the authentication information, and an offline response carrying the authentication result of the first terminal is sent to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the second Web page.

2. The method according to claim 1, characterized in that: Acquiring online information of the online second terminal corresponding to the account information from the AAA server specifically includes: Sending a query request carrying the account information to the AAA server through an access device; When a query response carrying online information of a second terminal that has gone online and corresponds to the account information is received from the AAA server through the access device, the online information of the second terminal that has gone online and corresponds to the account information is obtained from the query response.

3. The method according to claim 1, characterized in that The method further comprises: When it is determined according to the acquired online information that the total number of the second terminals does not reach the set number, initiating a Portal authentication process according to the authentication information; The authentication result of the first terminal is sent to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the first Web page.

4. The method according to claim 1, characterized in that The account information includes the user's username and password.

5. An access control device, characterized in that: The device is applied to a Portal server, and includes: a cache module, configured to receive and cache authentication information sent by a first terminal, wherein the authentication information is sent by the first terminal when the first terminal receives account information of a user input by the user on a first Web page displayed on the first terminal; An acquisition module, used to acquire online information of a second terminal that has gone online and corresponds to the account information from an AAA server; an access control module, configured to notify the first terminal of the acquired online information when it is determined that the total number of the second terminals has reached a set number according to the acquired online information; a sending module, configured to, upon receiving a logoff request sent by the first terminal and carrying device information of a target second terminal, send the logoff request to the AAA server, so that the AAA server performs a forced logoff process on the target second terminal corresponding to the device information carried in the logoff request, wherein the logoff request is sent by the first terminal upon receiving the device information input by the user on a second Web page displayed on the first terminal, and the device information is the device information of the second terminal that needs to be logged off and selected by the user based on the acquired online information displayed on the second Web page; The first processing module is used to initiate a Portal authentication process according to the authentication information when a preset waiting time is reached, and send an offline response carrying the authentication result of the first terminal to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the second Web page.

6. The device according to claim 5, characterized in that The acquisition module is specifically used for: Sending a query request carrying the account information to the AAA server through an access device; When a query response carrying online information of a second terminal that has gone online and corresponds to the account information is received from the AAA server through the access device, the online information of the second terminal that has gone online and corresponds to the account information is obtained from the query response.

7. The device according to claim 5, characterized in that The device also includes: The second processing module is used to initiate a Portal authentication process according to the authentication information when it is determined according to the acquired online information that the total number of the second terminals does not reach the set number, and send the authentication result of the first terminal to the first terminal, so that the first terminal displays the authentication result of the first terminal to the user through the first Web page.

8. The device according to claim 5, characterized in that The account information includes the user's username and password.

9. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps described in any one of claims 1 to 4.

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