Network authentication method, system, device, medium and program product

By pre-storing the authorized user information of the central server in the authentication server and switching to the disaster recovery working mode under abnormal circumstances, the problem of fault compatibility and reliability of the enterprise network authentication system when the central server is abnormal is solved, and user authentication is realized. Stability and fast access.

CN118353717BActive Publication Date: 2024-10-22BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410775386.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-22
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

The existing enterprise network authentication system has low fault compatibility and reliability when the central server is abnormal, and cannot effectively handle the central server connection interruption or data abnormality, resulting in user authentication failure.

Method used

The authorized user information set of the central server is pre-stored in the authentication server, and when the central server is in an abnormal state, it switches to the disaster recovery mode and uses locally stored information for user identity authentication to ensure that terminal devices can access the network in a timely manner.

Benefits of technology

It improves the fault compatibility and reliability of the network authentication system, ensuring that user authentication can still be performed normally when the central server is abnormal, and that terminal devices can quickly access the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118353717B_ABST
    Figure CN118353717B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of computer technology, and discloses a network authentication method, system, device, medium and program product, wherein the method comprises receiving an authentication request, wherein the authentication request comprises first information for identity authentication input by a target user to use the network; determining the server status of the central server for managing authorized users of the network, wherein the information stored in the central server comprises second information for identity authentication of each authorized user; in response to the central server being in an abnormal state, determining that the current working mode is a disaster recovery working mode, and authenticating the first information based on a pre-stored second information set; and returning an authentication result obtained after authenticating the first information. When a failure occurs in the central server, the authentication server can normally authenticate the user, and the fault compatibility is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a network authentication method, system, device, medium and program product. Background Art

[0002] At present, in some enterprise network access control systems, the authorized user data of the network is mainly managed by a central server. When authenticating an enterprise employee who requests to use the network, the authorized user data can be obtained from the central server, and the user can be authenticated based on the obtained data.

[0003] In these access control systems, once an abnormality occurs in the data server (such as network connection interruption with the central server, data abnormality in the central server), it is impossible to obtain authorized user data from the central server to authenticate the user. Fault compatibility is poor and reliability is not high.

[0004] Therefore, a method that can improve fault compatibility and reliability is urgently needed. Summary of the invention

[0005] In view of this, the embodiments of the present disclosure provide a network authentication method, a network authentication system, an electronic device, a computer-readable storage medium, and a computer program product, which can improve fault compatibility and reliability.

[0006] On the one hand, the present disclosure provides a network authentication method, which is applied to an authentication server and includes:

[0007] receiving an authentication request, wherein the authentication request includes first information for identity authentication input by a target user of the network to be used;

[0008] For a central server for managing authorized users of the network, determining a server status of the central server, wherein information stored in the central server is second information for authenticating the identity of each of the authorized users;

[0009] In response to the central server being in an abnormal state, determining that the current working mode is a disaster recovery working mode, and authenticating the first information based on a pre-stored second information set;

[0010] Return the authentication result obtained after authenticating the first information.

[0011] In one aspect, the present disclosure provides a network authentication system, the system comprising:

[0012] A request receiving module, configured to receive an authentication request, wherein the authentication request includes first information for identity authentication input by a target user of the network to be used;

[0013] a working mode determination module, configured to determine the server status of a central server for managing authorized users of the network, wherein the information stored in the central server includes second information for authenticating the identity of each authorized user;

[0014] an authentication module, configured to, in response to the central server being in an abnormal state, determine that the current working mode is a disaster recovery working mode, and authenticate the first information based on a pre-stored second information set;

[0015] The result returning module is used to return the authentication result obtained after authenticating the first information.

[0016] Another aspect of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0017] Another aspect of the present disclosure provides an electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method described above is implemented.

[0018] Another aspect of the present disclosure provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method as described above is implemented.

[0019] In the technical solutions of some embodiments of the present disclosure, when the central server is in an abnormal state, the current working mode is determined to be a disaster recovery working mode, and the first information of the target user is authenticated based on the second information in the pre-stored second information set. In this way, when an abnormality occurs in the central server, the first information can also be authenticated to ensure that the terminal device can be connected to the network in time, thereby achieving the purpose of improving fault compatibility and reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The features and advantages of the present disclosure will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present disclosure in any way. In the accompanying drawings:

[0021] Figure 1 It shows a schematic diagram of authentication of some terminal devices when accessing the network;

[0022] Figure 2 A schematic diagram of a network authentication method provided by an embodiment of the present disclosure is shown;

[0023] Figure 3A data storage model of second information provided by an embodiment of the present disclosure is shown;

[0024] Figure 4 A schematic diagram of a process of writing data in a second information set provided by an embodiment of the present disclosure is shown;

[0025] Figure 5 A schematic diagram of a process of writing data in a second information set provided by another embodiment of the present disclosure is shown;

[0026] Figure 6 A schematic diagram of a process of reading data in a second information set provided by the present disclosure is shown;

[0027] Figure 7 A schematic diagram of a process for authenticating a target user provided by an embodiment of the present disclosure is shown;

[0028] Figure 8 A schematic diagram of a module of a network authentication system provided by an embodiment of the present disclosure is shown;

[0029] Fig. 9 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0031] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0032] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.

[0033] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.

[0034] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0035] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.

[0036] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.

[0037] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.

[0038] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0039] Office security usually involves the security management of networks, identities, and terminals. By implementing private network networking, access control, terminal management in private networks, and information security protection, digital office can be made safer, more efficient, and easier to use. Security management at the network level can ensure that private networks such as office networks can operate safely and efficiently, thereby ensuring that business data can be safely transmitted and stored. Security management at the identity level can improve the efficiency and security of identity authentication for users to access private networks. Security management at the terminal level can achieve unified management of terminal devices in private networks, data leakage prevention, and terminal threat protection, thereby ensuring the security of enterprise data. In actual applications, the security management of networks, identities, and terminals can achieve technical associations in multiple technical branches such as networking strategies, network access and control, remote access, unified terminal management, terminal detection and response, enterprise data leakage prevention, and identity authentication management, making digital office simpler, more efficient, and easier to implement.

[0040] Combined with reference Figure 1 , which is a schematic diagram of authentication of some terminal devices 11 when accessing the network 13. Figure 1 In the example, the network 13 may be an enterprise network. The terminal device 11 may be a device used by enterprise employees, such as a tablet computer, a laptop computer, a desktop computer, etc. Generally, since the enterprise network is a private network or a proprietary network, enterprise employees need to perform identity authentication before using network resources in the network 13. Specifically, the terminal device 11 may be used to receive first information (such as a user name and password) for identity authentication input by a target user (such as an enterprise employee) to use the network 13. The first information may include user identification information (such as a user name) that uniquely identifies the user. The terminal device 11 may send a network access request to the network access device 14 based on the first information input by the user. After receiving the network access request, the network access device 14 may send the first information to the authentication system 12 for authentication. If the authentication is successful, the network access device 14 accesses the terminal device 11 to the network 13; if the authentication is not successful, the network access device 14 may reject the request of the terminal device 11.

[0041] The authentication system 12 may include an authentication server 121 and a central server 122. The central server 122 stores the second information of each authorized user of the network 13. The so-called authorized user refers to a user who has been authorized to access the network 13. The second information includes but is not limited to the first information (such as user name and password) used for identity authentication of each authorized user, the network resources that are allowed to be accessed after authentication, etc.

[0042] The authentication server 121 can communicate with the network access device 14 based on the RADIUS (Remote Authentication Dial In User Service) protocol to receive the first information sent by the network access device 14. After receiving the first information, the authentication server 121 can send a data acquisition request to the central server 122 based on the user identification information in the received first information to obtain the second information of the target user from the central server 122. According to whether the second information is successfully obtained from the central server 122, the following two situations can be processed:

[0043] 1) If the second information of the target user is successfully obtained from the central server 122, indicating that the target user is an authorized user of the network 13, the central server 122 may return the second information of the target user to the authentication server 121, so that the authentication server 121 authenticates the received first information based on the obtained second information. Specifically, if the first information in the obtained second information matches the received first information (for example, the passwords in the two first information are the same), it means that the authentication of the received first information is successful, and the authentication server 121 may return a response of successful authentication to the network access device 14, so that the network access device 14 connects the terminal device 11 to the network 13. At the same time, the authentication server 121 may also return the network resources that the target user is allowed to access to the network access device 14, so as to control the network resources accessed by the terminal device 11. However, if the first information in the obtained second information does not match the received first information, the authentication server 121 may return a response of failed authentication to the network access device 14, so that the network access device 14 refuses to connect the terminal device 11 to the network 13.

[0044] 2) If the second information of the target user fails to be obtained from the central server 122, it means that the target user is not an authorized user of the network 13. In this case, a response indicating that the authentication is not successful can be returned to the network access device 14, so that the network access device 14 refuses to allow the terminal device 11 to access the network 13.

[0045] Figure 1 The fault compatibility of the authentication method shown is not high and the reliability is low. When an abnormality occurs in the central server 122, such as the network connection between the central server 122 and the authentication server 121 is interrupted or a data abnormality occurs in the central server 122, the authentication server 121 cannot obtain the second information of the target user from the central server 122, and thus cannot authenticate the first information sent by the network access device 14, resulting in the terminal device 11 that should be allowed to access the network 13 being unable to access the network 13.

[0046] In view of this, the present disclosure provides a network authentication method that can solve the above problems. The network authentication method can be applied to Figure 1 The authentication server 121 in. Based on Figure 1 The network architecture shown in the figure is combined with the Figure 2 , which is a schematic diagram of a network authentication method provided by an embodiment of the present disclosure. Figure 2 In the network authentication method, the following steps are included:

[0047] Step S21 : receiving an authentication request, wherein the authentication request includes first information for identity authentication input by a target user who is to use the network 13 .

[0048] For more information about authentication request, network 13, and first information, see Figure 1 The relevant description is not repeated here.

[0049] Step S22, for the central server 122 used to manage the authorized users of the network 13, determine the server status of the central server 122, wherein the information stored in the central server 122 includes second information for identity authentication of each authorized user.

[0050] Specifically, the central server 122 can manage the second information of each authorized user of the network 13. The management of the second information of each authorized user includes, but is not limited to: in response to adding a new authorized user to the network 13, saving the second information of the new authorized user; in response to the adjustment of the network resources that the authorized user is allowed to access, modifying the network resources that the authorized user is allowed to access in the second information of the authorized user; in response to the revocation of the access rights of the existing authorized user to the network 13, deleting the second information of the authorized user whose access rights have been revoked. Based on the above description, it can be understood that the second information of the authorized users and each authorized user in the central server 122 can be dynamically changed and is the most accurate.

[0051] The server status of the central server 122 may include a normal status and an abnormal status. When the central server 122 is in a normal status, it means that it can respond to the request of the authentication server 121 and return the stored second information of the target user to the authentication server 121; when the central server 122 is in an abnormal status, it means that it cannot respond to the request of the authentication server 121 and return the second information of the target user to the authentication server 121. For example, if the network connection between the central server 122 and the authentication server 121 is interrupted, and the central server 122 returns an abnormal error code such as an HTTP status code of 500, it can be considered that the central server 122 is in an abnormal status.

[0052] In this embodiment, after receiving the authentication request, the authentication server 121 can detect the network connection between the authentication server 121 and the central server 122. If the network connection between the authentication server 121 and the central server 122 is normal, it means that the central server 122 is in a normal state; if the network connection between the authentication server 121 and the central server 122 is abnormal (for example, the network connection with the central server 122 is interrupted, the central server 122 returns an abnormal error code such as an HTTP status code of 500), it means that the central server 122 is in an abnormal state.

[0053] Step S23, in response to the central server 122 being in an abnormal state, determining that the current working mode is a disaster recovery working mode, and authenticating the first information based on a pre-stored second information set.

[0054] In the disaster recovery working mode, the authentication server 121 may not obtain the second information from the central server 122 to authenticate the first information of the target user, but may authenticate the first information of the target user based on the second information set pre-stored locally.

[0055] The second information set may be a set consisting of the second information of each authorized user pre-stored locally on the authentication server 121. For example, when there is no abnormality in the central server 122, all the second information stored in the central server 122 may be pulled to the local authentication server 121 for storage to obtain the second information set. For another example, the second information of each authorized user may be stored locally on the authentication server 121 by manually importing the second information in advance to obtain the second information set. According to the description of step S22, since the second information in the central server 122 may be dynamically changing, the second information in the second information set may not be completely the same as the current second information in the central server 122.

[0056] In this embodiment, since the second information set is stored locally in the authentication server 121 in advance, when the central server 122 is in an abnormal state, the first information of the target user can be authenticated based on the second information in the second information set. In this way, it is guaranteed to the maximum extent that the terminal device 11 allowed to access the network 13 can access the network 13 as soon as possible. After the central server 122 is in a normal state, the network resource access rights of each user who is already using the network 13 can be adjusted based on the accurate second information in the central server 122.

[0057] The principle of authenticating the first information based on the second information set is similar to Figure 1 The above is not repeated here.

[0058] Step S24, returning the authentication result obtained after authenticating the first information.

[0059] Specifically, Figure 1 If the authentication is successful, the network access device 14 can access the terminal device 11 to the network 13; if the authentication fails, the network access device 14 can refuse to access the terminal device 11 to the network 13. In addition, in the case of successful authentication, the returned authentication result may also include network resources that the target user is allowed to access, so as to control the network resources accessed by the terminal device 11.

[0060] In summary, in the technical solutions of some embodiments of the present disclosure, when the central server 122 is in an abnormal state, the current working mode is determined to be a disaster recovery working mode, and the first information of the target user is authenticated based on the second information in the pre-stored second information set. In this way, when a failure occurs in the central server 122, the first information can also be authenticated to ensure that the terminal device 11 can be connected to the network 13 in a timely manner, thereby achieving the purpose of improving fault compatibility and reliability.

[0061] The scheme of the present disclosure is further described below.

[0062] In some embodiments, in response to the central server 122 being in a normal state, the method of the present disclosure may further include:

[0063] Determine that the current working mode is the normal working mode, and send a data acquisition request to the central server 122 to obtain the second information of the target user;

[0064] In response to successfully acquiring the second information, the first information is authenticated based on the acquired second information.

[0065] In the normal working mode, the authentication server 121 may obtain the second information from the central server 122 to authenticate the first information of the target user.

[0066] From the relevant description of step S22, it can be seen that since the second information in the central server 122 is the most accurate, when the central server 122 is in a normal state, the latest second information of the target user is obtained from the central server 122 to authenticate the first information of the target user, and the authentication result obtained can be relatively accurate.

[0067] Further, in some embodiments, in response to failure to obtain the second information, the method of the present disclosure may further include:

[0068] In response to the second information of the target user existing in the second information set, the first information is authenticated based on the second information.

[0069] In simple terms, when the central server 122 is in a normal state, the first information of the target user is authenticated based on the second information obtained from the central server 122. In this way, the accuracy of the authentication is improved. If the second information of the target user fails to be obtained from the central server 122 (for example, the data in the central server 122 is abnormal), the first information of the target user is authenticated based on the second information of the target user in the second information set. In this way, the terminal device 11 allowed to access the network 13 can be accessed to the network 13 in a timely manner to the greatest extent, thereby improving fault compatibility and reliability.

[0070] Further, in some embodiments, in response to failure to obtain the second information, the method of the present disclosure may further include:

[0071] In the response information of the data acquisition request, searching for prompt information of the reason why the acquisition of the second information fails;

[0072] In response to the reason prompt information that the communication with the central server 122 fails, the current working mode is switched from the normal working mode to the disaster recovery working mode.

[0073] Specifically, the reasons for the failure of communication with the central server 122 may include the following two situations:

[0074] 11) The network connection with the central server 122 is interrupted;

[0075] 12) The network connection with the central server 122 is normal, but the response returned by the central server 122 is abnormal. For example, the server returns an abnormal error code with an HTTP status code of 500.

[0076] Failure in communicating with the central server 122 indicates that the central server 122 is already in an abnormal state. In this case, the current working mode can be converted from the normal working mode to the disaster recovery working mode.

[0077] In the above embodiment, when the current working mode is the normal working mode, the failure to obtain the second information triggers the switching of the current working mode. In this way, it is not necessary to detect whether the central server 122 is faulty through a detection message, thus saving network traffic consumption.

[0078] Further, in some embodiments, the problem of communication failure with the central server 122 may be automatically restored after lasting for a short period of time. For example, after the network connection with the central server 122 is interrupted for a short period of time, the network connection with the central server 122 will be automatically restored. In this case, if the current working mode is switched every time the communication with the central server 122 fails, then the current working mode may frequently switch between the normal working mode and the disaster recovery working mode. In order to reduce the switching frequency of the working mode, in response to the failure to obtain the second information of the target user for a preset number of consecutive times, and the prompt information of the reason for the failure to obtain the second information each time is the failure to communicate with the central server 122, the current working mode can be switched from the normal working mode to the disaster recovery working mode.

[0079] For example, assuming that the preset number of times is 3, then, when the first acquisition of the second information of the target user fails, and the reason prompt information is the communication failure with the central server 122, the current working mode may not be immediately switched from the normal working mode to the disaster recovery working mode, but when the acquisition of the second information of the target user fails for three consecutive times, and the reason prompt information each time is the communication failure with the central server 122, the current working mode may be switched from the normal working mode to the disaster recovery working mode.

[0080] In this way, it is possible to avoid switching the working mode of the authentication server 121 when there is a temporary communication failure with the central server 122, thereby reducing the switching frequency of the working mode.

[0081] In some embodiments, after the current working mode is switched from the normal working mode to the disaster recovery working mode, the authentication server 121 will directly authenticate the first information of the target user based on the second information in the second information set, and will no longer send a data acquisition request to the central server 122. The problem caused by this is that after the authentication server 121 enters the disaster recovery working mode, it can no longer trigger the switching of the current working mode by failing to obtain the second information, so that the current working mode cannot exit the disaster recovery working mode. In view of this, after the current working mode is switched from the normal working mode to the disaster recovery working mode, the method of the present disclosure may also include:

[0082] Sending a detection message to the central server 122 at a first preset time interval to detect whether the communication with the central server 122 has returned to normal;

[0083] In response to the communication with the central server 122 being restored to normal, the current working mode is switched from the disaster recovery working mode to the normal working mode.

[0084] In this way, when the communication with the central server 122 returns to normal, the latest second information can be obtained from the central server 122 in a timely manner, thereby improving the accuracy of authentication.

[0085] In some embodiments, when the communication with the central server 122 is normal, there may also be a scenario where the current working mode needs to be switched from the normal working mode to the disaster recovery working mode. For example, when the central server 122 is attacked by the network, resulting in the abnormal modification of the second information in the central server 122, even if the communication with the central server 122 is normal, the current working mode needs to be switched from the normal working mode to the disaster recovery working mode in a timely manner. In this case, the working mode switching of the authentication server 121 cannot be triggered by the failure to obtain the second information, so manual intervention can be performed to switch the working mode of the authentication server 121.

[0086] Specifically, the current working mode also allows switching by modifying the parameter value of the working mode parameter. Among them, the working mode parameter is a parameter set in the configuration file or configuration interface and allows the staff to manually modify it. When the parameter value of the working mode parameter is the first parameter value, it means that the current working mode is a normal working mode; when the parameter value of the working mode parameter is the second parameter value, it means that the current working mode is a disaster recovery working mode. Based on the working mode parameter, the method of the present disclosure may also include:

[0087] In response to the current working mode being the normal working mode and the parameter value of the working mode parameter being modified from the first parameter value to the second parameter value, the current working mode is switched from the normal working mode to the disaster recovery working mode.

[0088] In this way, manual switching of the current working mode is achieved.

[0089] In the above embodiment, by introducing the working mode parameter that allows manual modification, the working mode of the authentication server 121 is manually switched, and when the working mode switching of the authentication server 121 cannot be triggered by the failure to obtain the second information, the working mode of the authentication server 121 can be manually switched. In this way, the way of switching the working mode of the authentication server 121 is more flexible, more in line with actual needs, and has stronger fault compatibility and higher reliability.

[0090] Further, in some embodiments, after the current working mode is switched to the disaster recovery working mode by manual switching, the priority of manual switching can be the highest. In response to detecting that the communication with the central server 122 is in a normal state through the detection message, the current working mode can continue to be maintained as the disaster recovery working mode. In response to the parameter value of the working mode parameter being modified from the second parameter value to the first parameter value, the current working mode is switched from the disaster recovery working mode to the normal working mode.

[0091] In other words, after the current working mode is switched to the disaster recovery working mode by modifying the working mode parameters, the current working mode can only be switched back to the normal working mode by manual switching.

[0092] In this way, on the one hand, it is possible to avoid mistakenly switching the working mode of the authentication server 121 to the normal working mode when it is detected that the communication with the central server 122 is normal. On the other hand, the timing of switching the authentication server 121 back to the normal working mode can be manually determined, which is more in line with the actual business scenario.

[0093] However, in response to the parameter value of the working mode parameter being modified from the second parameter value to the first parameter value, after the current working mode is switched to the normal working mode, when one of the following conditions is met, the current working mode can be triggered to switch from the normal working mode to the disaster recovery working mode:

[0094] 1) When sending a data acquisition request to the central server 122, communication with the central server 122 fails;

[0095] 2) In response to a parameter value of the operating mode parameter being modified from a first parameter value to a second parameter value.

[0096] In this way, on the one hand, in the event of communication failure with the central server 122, the current working mode can be switched to a disaster recovery working mode in time; on the other hand, when communication with the central server 122 is normal, if other abnormal situations occur, the current working mode can be switched to a disaster recovery working mode in time by manual means, thereby making the fault compatibility capability stronger and the reliability higher.

[0097] In some embodiments, the current working mode can be characterized by a working mode identifier. When the value of the working mode identifier is a first value (such as 1), it indicates that the current working mode is a normal working mode; when the value of the working mode identifier is a second value (such as 0), it indicates that the current working mode is a disaster recovery working mode. The value of the working mode identifier can be saved in the register of the authentication server 121 and can be allowed to be modified. For example, the authentication server 121 can periodically send a detection message to the central server 122 to detect whether the central server 122 is in an abnormal state. When it is detected that the central server 122 is in an abnormal state, but the value of the working mode identifier is the first value, the value of the working mode identifier can be modified to the second value; when it is detected that the central server 122 is in a normal state, but the value of the working mode identifier is the second value, the value of the working mode identifier can be modified to the first value.

[0098] Based on the working mode identifier, when receiving the authentication request, the authentication server 121 can determine the current value of the working mode identifier. Wherein, when the current value of the working mode identifier is the first value, it means that the central server 122 is in a normal state, and the current working mode can be determined to be a normal working mode; when the current value of the working mode identifier is the second value, it means that the central server 122 is in an abnormal state, and the current working mode can be determined to be a disaster recovery working mode.

[0099] In the above embodiment, the current working mode is determined based on the current value of the working mode identifier, and there is no need to detect the server status of the central server 122 after receiving the authentication request. In this way, the current working mode is determined more efficiently.

[0100] The following describes a method for obtaining the second information set.

[0101] In some embodiments, in response to successfully obtaining the second information from the central server 122 based on the authentication request, the obtained second information can be saved in the second information set.

[0102] For example, based on authentication request A, the second information A of target user A is obtained from the central server 122, and the second information A is saved in the second information set. For another example, based on authentication request B, the second information B of target user B is obtained from the central server 122, and the second information B is saved in the second information set.

[0103] In the above embodiment, the second information is obtained from the central server 122 based on the authentication request, and the second information set can only store the second information of the authorized users who have used the network 13, and avoid storing the second information of the authorized users who do not use the network 13 in the second information set. In this way, the amount of data in the second information set is reduced, saving storage space.

[0104] In some embodiments, in response to the central server 122 being in a normal state, the second information in the central server 122 may be saved into the second information set every second preset time period.

[0105] Specifically, based on the relevant description of the above step S23, it can be known that since the second information in the central server 122 is dynamically changing, by periodically pulling the second information in the central server 122 to local storage, the second information in the second information set can be kept as consistent as possible with the second information in the central server 122. In this way, when the first information of the target user is authenticated based on the second information in the second information set, the accuracy is higher.

[0106] Furthermore, when the second information in the central server 122 is saved in the second information set, the second information in full in the central server 122 may be pulled into the second information set. In this way, the second information in the second information set is more comprehensive, which can improve the authentication accuracy.

[0107] The following describes how to authenticate the first information based on the second information set.

[0108] In some embodiments, the second information set includes multiple versions of the second information of at least some authorized users. For an authorized user with multiple versions of the second information, there may be differences between the different versions of the second information of the authorized user. For ease of understanding, take authorized user A as an example. When the second information is periodically pulled from the central server 122, the second information of authorized user A will be pulled each time. And because the second information in the central server 122 is dynamically changing, for example, if the network resources allowed to be accessed by authorized user A are adjusted, then the second information of authorized user A pulled from the central server 122 at different times may be different. In this way, different versions of the second information of authorized user A in the second information set are obtained.

[0109] Based on the above description, in some embodiments, authenticating the first information based on the pre-stored second information set in step S23 may include:

[0110] In response to finding second information matching the first information among multiple versions of the second information, it is determined that the first information is authenticated.

[0111] For example, it is assumed that the authorized user A has three versions of the second information, namely, the second information 1, the second information 2, and the third information 3. Assuming that the first information of the target user matches the second information 2, it is determined that the first information is authenticated. It can be understood that as long as there is one version of the second information that is the same as the first information, it can be indicated that the target user is currently allowed to access the network 13, or has been allowed to access the network 13. In this case, the authentication of the first information can maximize the guarantee that the terminal device 11 used by the target user can access the network 13, thereby improving fault compatibility.

[0112] Furthermore, in the above embodiment, the user authorization data in the returned authentication result may be the user authorization data in the second information that matches the first information. For example, if the first information matches the second information 2, the user authorization data in the returned authentication result may be the user authorization data in the second information 2.

[0113] Further, in response to not finding the second information matching the first information in the multiple versions of the second information, it is determined that the authentication of the first information has failed. It is understandable that if there is no second information matching the first information in all versions of the second information, it can be determined that the target user is not allowed to access the network 13, and therefore, the authentication of the first information may not be passed. In this way, the target user without network access rights is prevented from accessing the network 13, thereby ensuring network security.

[0114] The storage method of the second information in the second information set is described below.

[0115] In some embodiments, when the second information of the authorized user is obtained from the central server 122 at a fixed time, if the obtained second information of the authorized user already exists in the second information set, the obtained second information can be discarded; however, if the obtained second information of the authorized user does not exist in the second information set, the obtained second information can be saved in the second information set, so as to reduce storage consumption.

[0116] The second information in the second information set can be saved in the Badger open source database, and the second information can be stored in a key-value pair data structure. Specifically, the second information may include a user name and user authorization data. Among them, the user authorization data can represent information for network access control of the terminal device 11 logged in by the authorized user, such as the network resources that the authorized user is allowed to access. For a specific authorized user, the user name can be the same in different versions of the second information of the authorized user, but the user authorization data needs to be different. In other words, different versions of the second information are actually reflected in different versions of user authorization data.

[0117] For easier understanding, please refer to Figure 3 , which is a data storage model for the second information provided by an embodiment of the present disclosure. Figure 3 The data storage model in is a data storage model for the second information of a single authorized user. The key corresponds to the user name of the authorized user, and the value corresponds to the user authorization data of the authorized user. Different values ​​correspond to different versions of user authorization data. In this way, a mapping between the user name and multiple versions of user authorization data is formed.

[0118] based on Figure 3 The data storage model shown in the Figure 4 , is a flowchart of writing data in a second information set provided by an embodiment of the present disclosure.

[0119] In some embodiments, for one of the target authorized users in the second information set, multiple versions of the second information of the target authorized user are obtained based on the following method:

[0120] Step S41, obtaining the second information of the target authorized user, and taking the second information as candidate second information.

[0121] Specifically, in response to the central server 122 being in a normal state, the second information of the target authorized user is obtained from the central server 122, and the obtained second information is used as the candidate second information.

[0122] Step S42, searching whether there is target second information having the same user name as the candidate second information.

[0123] Specifically, in the second information set, it is searched whether there is target second information with the same user name as the candidate second information. If not, step S43 is executed; if so, step S44 is executed.

[0124] Step S43, saving the candidate second information.

[0125] Specifically, in response to the second information set not having the same user name as the candidate second information, the candidate second information is saved in the second information set as the first version of the second information of the target authorized user.

[0126] Step S44, determining whether the user authorization data of the candidate second information is the same as the user authorization data of the target second information.

[0127] Specifically, in response to finding the target second information having the same user name as the candidate second information in the second information set, it is determined whether the user authorization data of the candidate second information is the same as the user authorization data of the target second information. If they are the same, step S45 is executed; if they are not the same, step S46 is executed.

[0128] Step S45: discard the candidate second information.

[0129] Step S46, saving the candidate second information.

[0130] Specifically, in response to the user authorization data of the candidate second information being different from the user authorization data of the target second information, the candidate second information is saved in the second information set as one version of the second information of the target authorized user.

[0131] In some embodiments, the number of versions of the second information of the target authorized user in the second information set may be limited. Therefore, when writing data into the second information set, the number of versions of the second information should also be determined. Figure 5 , is a flowchart of writing data in a second information set provided by another embodiment of the present disclosure. Figure 5 The following steps may be included:

[0132] Step S51, obtaining the second information of the target authorized user, and taking the second information as candidate second information.

[0133] Specifically, in response to obtaining the second information of the target authorized user from the central server 122, the obtained second information is used as candidate second information.

[0134] Step S52, searching whether there is target second information having the same user name as the candidate second information.

[0135] Specifically, in the second information set, it is searched whether there is target second information with the same user name as the candidate second information. If not, step S53 is executed; if so, step S54 is executed.

[0136] Step S53, saving the candidate second information.

[0137] Specifically, in response to the second information set not having the same user name as the candidate second information, the candidate second information is saved in the second information set as the first version of the second information of the target authorized user.

[0138] Step S54, determining whether the user authorization data of the candidate second information is the same as the user authorization data of the target second information.

[0139] Specifically, in response to finding the target second information having the same user name as the candidate second information in the second information set, it is determined whether the user authorization data of the candidate second information is the same as the user authorization data of the target second information. If they are the same, step S55 is executed; if not, step S56 is executed.

[0140] Step S55: discard the candidate second information.

[0141] Step S56: Whether the number of versions of the second information of the target authorized user reaches a version number threshold.

[0142] Specifically, before saving the candidate second information to the second information set, it is determined whether the number of versions of the second information of the target authorized user reaches the version number threshold. If yes, execute step S58; if not, execute step S57.

[0143] Step S57, saving the second candidate information.

[0144] Step S58, after deleting the first version of the second information, save the candidate second information.

[0145] Specifically, in response to the number of versions reaching a version number threshold, after deleting the first version of the second information of the target authorized user, the candidate second information is saved in the second information set.

[0146] Furthermore, in some embodiments, after receiving the authentication request and obtaining the first information of the target user, Figure 6 The process shown is to search in the second information set whether there is second information matching the first information. Figure 6 The following steps may be included:

[0147] Step S61, obtaining the target user name from the first information.

[0148] Step S62, searching whether there is second information with the target user name.

[0149] Specifically, the second information set is searched for whether there is second information with the target user name. If so, step S64 is executed; if not, step S63 is executed.

[0150] Step S63, exit the query.

[0151] Specifically, the query is exited, and it is determined that the authentication of the first information has failed.

[0152] Step S64, reading the user authorization data in the found second information.

[0153] Specifically, the user authorization data in the found second information is read, and the read user authorization data is returned to the network access device 14 .

[0154] Combined with reference Figure 7 , which is a flowchart for authenticating the identity of a target user according to an embodiment of the present disclosure. Figure 7 The steps include:

[0155] Step S71, receiving an authentication request.

[0156] The authentication request includes first information for identity authentication input by a target user who is to use the network 13 .

[0157] Step S72, determine whether the current working mode is a disaster recovery working mode. If yes, execute step S73; if no, execute step S76.

[0158] Step S73, determining whether the second information of the target user exists in the second information set.

[0159] Specifically, it is determined whether the second information of the target user exists in the second information set pre-acquired from the central server 122. If so, step S74 is executed; if not, step S75 is executed.

[0160] Step S74: authenticating the first information based on the second information of the target user in the second information set.

[0161] Step S75, determining that the authentication of the first information fails.

[0162] Step S76: Send a data acquisition request to the central server 122 to obtain the second information of the target user.

[0163] Step S77, determine whether the second information is successfully obtained. If successful, execute step S78; if unsuccessful, execute step S73.

[0164] Step S78, saving the acquired second information into the second information set.

[0165] Step S79: authenticating the first information of the target user based on the acquired second information.

[0166] This completes the description of the disclosed solution.

[0167] Combined with reference Figure 8 , is a schematic diagram of a module of a network authentication system provided by an embodiment of the present disclosure. The system is applied to an authentication server and includes:

[0168] A request receiving module, used to receive an authentication request, wherein the authentication request includes first information for identity authentication input by a target user to use the network 13;

[0169] a working mode determination module, for determining a server state of a central server for managing authorized users of the network 13, wherein the information stored in the central server includes second information for authenticating each authorized user;

[0170] An authentication module, configured to, in response to the central server being in an abnormal state, determine that the current working mode is a disaster recovery working mode, and authenticate the first information based on a pre-stored second information set;

[0171] The result returning module is used to return the authentication result obtained after authenticating the first information.

[0172] In some embodiments, in response to the central server being in a normal state, the authentication module is further configured to:

[0173] Determine that the current working mode is a normal working mode, and send a data acquisition request to the central server to obtain the second information of the target user;

[0174] In response to successfully acquiring the second information, the first information is authenticated based on the acquired second information.

[0175] In some embodiments, in response to failure to obtain the second information, the authentication module is further configured to:

[0176] In the response information of the data acquisition request, searching for prompt information of the reason why the acquisition of the second information fails;

[0177] In response to the reason prompt information that communication with the central server fails, the current working mode is switched from the normal working mode to the disaster recovery working mode.

[0178] In some embodiments, the authentication module is specifically configured to:

[0179] In response to failure to obtain the second information of the target user for a preset number of consecutive times, and the reason prompt information for each failure to obtain the second information is a communication failure with the central server, the current working mode is switched from the normal working mode to the disaster recovery working mode.

[0180] In some embodiments, after the current working mode is switched from the normal working mode to the disaster recovery working mode, the authentication module is further used to:

[0181] Sending a detection message to the central server every first preset time period to detect whether the communication with the central server has returned to normal;

[0182] In response to the communication with the central server being restored to normal, the current working mode is switched from the disaster recovery working mode to the normal working mode.

[0183] In some embodiments, the current working mode of the central server also allows switching by modifying the parameter value of the working mode parameter; the authentication module is also used to:

[0184] In response to the current working mode being the normal working mode and the parameter value of the working mode parameter being modified from the first parameter value to the second parameter value, the current working mode is switched from the normal working mode to the disaster recovery working mode.

[0185] In some embodiments, in response to the parameter value of the working mode parameter being modified from the first parameter value to the second parameter value, after the current working mode is switched from the normal working mode to the disaster recovery working mode, the authentication module is further used to:

[0186] In response to detecting through the detection message that the communication with the central server is in a normal state, continuing to maintain the current working mode as the disaster recovery working mode;

[0187] In response to the parameter value of the working mode parameter being modified from the second parameter value to the first parameter value, the current working mode is switched from the disaster recovery working mode to the normal working mode.

[0188] In some embodiments, in response to failure to obtain the second information, the authentication module is further configured to:

[0189] In response to the second information of the target user existing in the second information set, the first information is authenticated based on the second information.

[0190] In some embodiments, the authentication module specifically obtains the second information set based on the following method:

[0191] In response to successfully obtaining the second information from the central server based on the authentication request, the obtained second information is saved in the second information set; and / or

[0192] In response to the central server being in a normal state, the second information in the central server is saved into the second information set every second preset time period.

[0193] In some embodiments, the second information set includes multiple versions of the second information of at least some authorized users; the authentication module is specifically configured to:

[0194] In response to finding second information matching the first information in multiple versions of the second information, determining that the first information is authenticated; and / or

[0195] In response to not finding second information matching the first information in the multiple versions of the second information, it is determined that authentication of the first information has failed.

[0196] In some embodiments, the second set of information includes multiple versions of second information for at least some authorized users, and the second information includes a user name and user authorization data;

[0197] For one of the target authorized users in the second information set, the authentication module is specifically used to obtain multiple versions of the second information of the target authorized user based on the following method:

[0198] In response to the central server being in a normal state, obtaining second information of the target authorized user from the central server, and using the obtained second information as candidate second information;

[0199] In the second information set, searching whether there is target second information having the same user name as the candidate second information;

[0200] In response to finding the target second information having the same user name as the candidate second information in the second information set, determining whether the user authorization data of the candidate second information is the same as the user authorization data of the target second information;

[0201] In response to the user authorization data of the candidate second information being different from the user authorization data of the target second information, the candidate second information is saved in the second information set as one version of the second information of the target authorized user.

[0202] In some embodiments, in response to the second information set not having the same user name as the candidate second information, the authentication module is specifically configured to:

[0203] The candidate second information is saved in the second information set as the first version of the second information of the target authorized user.

[0204] In some embodiments, the authentication module is specifically configured to:

[0205] Before saving the candidate second information to the second information set, determining whether the number of versions of the second information of the target authorized user reaches a version number threshold;

[0206] In response to the number of versions reaching a version number threshold, after deleting the first version of the second information of the target authorized user, the candidate second information is saved in the second information set.

[0207] Combined with reference Fig. 9 , is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. The electronic device includes a processor and a memory, the memory is used to store a computer program, and when the computer program is executed by the processor, the above method is implemented.

[0208] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0209] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiment.

[0210] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0211] An embodiment of the present disclosure further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program. When the computer program is executed by a processor, the above method is implemented.

[0212] The present disclosure also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the above method is implemented.

[0213] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A network authentication method, characterized in that: The method is applied to an authentication server, and the method comprises: receiving an authentication request, wherein the authentication request includes first information for identity authentication input by a target user of the network to be used; For a central server used to manage authorized users of the network, determine the server status of the central server; wherein the information stored in the central server includes second information used to authenticate each of the authorized users, and the determining of the server status of the central server includes: determining a current value of a working mode identifier, and determining that the central server is in a normal state when the current value of the working mode identifier is a first value, and determining that the central server is in an abnormal state when the current value of the working mode identifier is a second value, the value of the working mode identifier is stored in a register of an authentication server, and the value of the working mode identifier is allowed to be modified in the following cases: when it is detected that the central server is in an abnormal state, but the value of the working mode identifier is the first value, the value of the working mode identifier is allowed to be modified to the second value; or, when it is detected that the central server is in a normal state, but the value of the working mode identifier is the second value, the value of the working mode identifier is allowed to be modified to the first value; In response to the central server being in an abnormal state, determining that the current working mode is a disaster recovery working mode, and authenticating the first information based on a pre-stored second information set; The second information set includes multiple versions of second information of at least part of the authorized users; The authenticating the first information based on the pre-stored second information set includes: in response to finding second information matching the first information in the multiple versions of the second information, determining that the authentication of the first information is passed; or, in response to not finding second information matching the first information in the multiple versions of the second information, determining that the authentication of the first information fails; wherein the second information includes information for authenticating the identity of the user, and different versions of the second information corresponding to the same user are different; Returning an authentication result obtained after authenticating the first information; Wherein, in response to finding second information matching the first information in the multiple versions of second information and determining that the first information is authenticated, the method further comprises: after the central server is in a normal state, adjusting the network resource access rights of the target user who is authenticated and using the network based on the second information in the central server.

2. The method according to claim 1, characterized in that In response to the central server being in a normal state, the method further includes: Determining that the current working mode is a normal working mode, and sending a data acquisition request to the central server to acquire the second information of the target user; In response to successfully acquiring the second information, the first information is authenticated based on the acquired second information.

3. The method according to claim 2, characterized in that In response to failure in acquiring the second information, the method further includes: Searching for information indicating the reason for failure in obtaining the second information in the response information of the data obtaining request; In response to the reason prompt information being a communication failure with the central server, the current working mode is switched from the normal working mode to the disaster recovery working mode.

4. The method according to claim 3, characterized in that In response to the reason prompt information that communication with the central server fails, switching the current working mode from the normal working mode to the disaster recovery working mode includes: In response to failure to obtain the second information of the target user for a preset number of consecutive times, and the reason prompt information for each failure to obtain the second information is a failure to communicate with the central server, the current working mode is switched from the normal working mode to the disaster recovery working mode.

5. The method according to claim 3 or 4, characterized in that After the current working mode is switched from the normal working mode to the disaster recovery working mode, the method further includes: Sending a detection message to the central server every first preset time period to detect whether the communication with the central server has returned to normal; In response to the communication with the central server being restored to normal, the current working mode is switched from the disaster recovery working mode to the normal working mode.

6. The method according to claim 5, characterized in that The current working mode also allows switching by modifying the parameter value of the working mode parameter; the method further includes: In response to the current working mode being the normal working mode and the parameter value of the working mode parameter being modified from the first parameter value to the second parameter value, the current working mode is switched from the normal working mode to the disaster recovery working mode.

7. The method according to claim 6, characterized in that In response to the parameter value of the working mode parameter being modified from the first parameter value to the second parameter value, after the current working mode is switched from the normal working mode to the disaster recovery working mode, the method further includes: In response to detecting through the detection message that the communication with the central server is in a normal state, continuing to maintain the current working mode as the disaster recovery working mode; In response to the parameter value of the working mode parameter being modified from the second parameter value to the first parameter value, the current working mode is switched from the disaster recovery working mode to the normal working mode.

8. The method according to claim 2, characterized in that In response to failure in acquiring the second information, the method further includes: In response to the second information of the target user existing in the second information set, the first information is authenticated based on the second information.

9. The method according to claim 2, characterized in that The second information set is obtained based on the following method: In response to successfully acquiring second information from the central server based on the authentication request, saving the acquired second information into the second information set; and / or In response to the central server being in a normal state, the second information in the central server is saved into the second information set every second preset time period.

10. The method according to claim 1, characterized in that The second information set includes multiple versions of second information of at least some of the authorized users, and the second information includes a user name and user authorization data; For one target authorized user in the second information set, multiple versions of the second information of the target authorized user are obtained based on the following method: In response to the central server being in a normal state, obtaining the second information of the target authorized user from the central server, and using the obtained second information as candidate second information; In the second information set, searching whether there is target second information having the same user name as the candidate second information; In response to finding the target second information having the same user name as the candidate second information in the second information set, determining whether the user authorization data of the candidate second information is the same as the user authorization data of the target second information; In response to the user authorization data of the candidate second information being different from the user authorization data of the target second information, the candidate second information is saved in the second information set as one version of the second information of the target authorized user.

11. The method according to claim 10, characterized in that In response to the second information set not having the second information having the same user name as the candidate second information, the method further includes: The candidate second information is saved in the second information set as the first version of the second information of the target authorized user.

12. The method according to claim 10, characterized in that The step of saving the candidate second information into the second information set includes: Before saving the candidate second information to the second information set, determining whether the number of versions of the second information of the target authorized user reaches a version number threshold; In response to the number of versions reaching the version number threshold, after deleting the first version of the second information of the target authorized user, the candidate second information is saved in the second information set.

13. A network authentication system, characterized in that: The system is applied to an authentication server, and the system comprises: A request receiving module, configured to receive an authentication request, wherein the authentication request includes first information for identity authentication input by a target user of the network to be used; A working mode determination module, used to determine the server status of the central server for managing authorized users of the network, wherein the information stored in the central server includes second information for authenticating each of the authorized users, specifically, determine the current value of the working mode identifier, and when the current value of the working mode identifier is a first value, determine that the central server is in a normal state, and when the current value of the working mode identifier is a second value, determine that the central server is in an abnormal state, the value of the working mode identifier is stored in a register of an authentication server, and the value of the working mode identifier is allowed to be modified in the following situations: when it is detected that the central server is in an abnormal state, but the value of the working mode identifier is the first value, the value of the working mode identifier is allowed to be modified to the second value; or, when it is detected that the central server is in a normal state, but the value of the working mode identifier is the second value, the value of the working mode identifier is allowed to be modified to the first value; An authentication module is used to, in response to the central server being in an abnormal state, determine that the current working mode is a disaster recovery working mode, and authenticate the first information based on a pre-stored second information set, specifically, the second information set includes multiple versions of second information of at least some of the authorized users, and in response to finding second information matching the first information in the multiple versions of the second information, determine that the first information is authenticated; or, in response to not finding second information matching the first information in the multiple versions of the second information, determine that the authentication of the first information fails; wherein the second information includes information for authenticating the identity of the user, different versions of the second information corresponding to the same user are different, and after the central server is in a normal state, adjust the network resource access rights of the target user who has passed the authentication and is using the network based on the second information in the central server; The result returning module is used to return the authentication result obtained after authenticating the first information.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

15. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 12 is implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Authentication method and network access server

    CN106714167A

  • Authentication method and authentication server

    CN107820250A

  • Identity authentication method, apparatus, server, and storage medium

    CN109145574A

  • Business disaster recovery method and device, computer equipment and storage medium

    CN115981923A

  • Project data processing method and device, storage medium and electronic equipment

    CN117909143A