Identity verification method and device, computer equipment and storage medium

By updating and generating new identity credentials during the identity authentication process, combined with the management of valid time periods, the security risk of identity credential leakage under device cloning mode is solved, and the security of identity credentials is improved to prevent attacks.

CN119026098APending Publication Date: 2024-11-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310603243.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The existing device cloning method has the security risk of identity credential leakage during the identity credential migration process. Attackers can obtain identity credentials through cloning to attack, causing security risks.

Method used

By obtaining the target authentication request, perform consistency verification between the current identity credentials and the target identity credentials, update the identity credentials, and generate a new second type of identity credentials and valid time period, return to the requester, ensuring that the second level is used within the valid time period Type 2 identity credentials are used for authentication, and update the identity credentials continue to be authenticated when they expire.

Benefits of technology

It effectively avoids identity credential leakage, improves the security of identity credentials, prevents attackers from obtaining updated identity credentials, and enhances the security of identity authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026098A_ABST
    Figure CN119026098A_ABST
Patent Text Reader

Abstract

The invention relates to an identity verification method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring a target identity verification request carrying a current first type of identity credential and a requester identifier; obtaining a target first type identity certificate corresponding to the requester identifier; when the current first-type identity credential is consistent with the target first-type identity credential, updating the target first-type identity credential to obtain an updated first-type identity credential; generating a target second type identity credential based on the updated first type identity credential, and generating a corresponding effective time period; and returning the updated first-type identity credential and the target second-type identity credential to a request end corresponding to the requester identifier, the target second-type identity credential being used for performing identity verification in the valid time period, and the updated first-type identity credential being used for performing identity verification when the target second-type identity credential is expired. By adopting the method, the security of the identity certificate can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to an identity authentication method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of network security technology, identity authentication technology has emerged. Identity authentication technology can determine identity by verifying identity credentials. At present, the data of old devices is usually migrated to new devices by device cloning to ensure the normal use of new devices. For example, the identity credentials of old devices can be migrated to new devices by device cloning, and the new device uses the cloned identity credentials to perform corresponding business processing, such as logging in through identity credentials. However, the migration of identity credentials by device cloning has the security risk of identity credential leakage. The attacker's device can easily copy the identity credentials from the old device by device cloning, and then use the identity credentials to attack, causing security risks. Summary of the invention

[0003] Based on this, it is necessary to provide an identity authentication method, device, computer equipment, computer-readable storage medium and computer program product that can avoid security risks caused by identity credential leakage and improve the security of identity credentials in response to the above technical problems.

[0004] In a first aspect, the present application provides an identity authentication method. The method comprises:

[0005] Obtain a target identity authentication request, the target identity authentication request carrying the current first type identity credential and the requester identifier;

[0006] Obtain a target first-type identity credential corresponding to the requester identifier, and perform consistency verification based on the current first-type identity credential and the target first-type identity credential;

[0007] When the current first-type identity credential and the target first-type identity credential are consistent, updating the target first-type identity credential to obtain an updated first-type identity credential;

[0008] Generating a target second type of identity credential based on the updated first type of identity credential, and generating a valid time period corresponding to the target second type of identity credential;

[0009] The updated first type identity credential and the target second type identity credential are returned to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within the valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

[0010] In a second aspect, the present application also provides an identity authentication device. The device comprises:

[0011] A request acquisition module, used to acquire a target identity authentication request, the target identity authentication request carries the current first type identity credential and the requester identifier;

[0012] A verification module, used to obtain a target first-type identity credential corresponding to the requester identifier, and perform consistency verification based on the current first-type identity credential and the target first-type identity credential;

[0013] A first credential updating module, configured to update the target first type identity credential when the current first type identity credential is consistent with the target first type identity credential, to obtain an updated first type identity credential;

[0014] A second credential generation module, configured to generate a target second type identity credential based on the updated first type identity credential, and generate a valid time period corresponding to the target second type identity credential;

[0015] The credential return module is used to return the updated first type identity credential and the target second type identity credential to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within a valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

[0016] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0017] Obtain a target identity authentication request, the target identity authentication request carrying the current first type identity credential and the requester identifier;

[0018] Obtain a target first-type identity credential corresponding to the requester identifier, and perform consistency verification based on the current first-type identity credential and the target first-type identity credential;

[0019] When the current first-type identity credential and the target first-type identity credential are consistent, updating the target first-type identity credential to obtain an updated first-type identity credential;

[0020] Generating a target second type of identity credential based on the updated first type of identity credential, and generating a valid time period corresponding to the target second type of identity credential;

[0021] The updated first type identity credential and the target second type identity credential are returned to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within the valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

[0022] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0023] Obtain a target identity authentication request, the target identity authentication request carrying the current first type identity credential and the requester identifier;

[0024] Obtain a target first-type identity credential corresponding to the requester identifier, and perform consistency verification based on the current first-type identity credential and the target first-type identity credential;

[0025] When the current first-type identity credential and the target first-type identity credential are consistent, updating the target first-type identity credential to obtain an updated first-type identity credential;

[0026] Generating a target second type of identity credential based on the updated first type of identity credential, and generating a valid time period corresponding to the target second type of identity credential;

[0027] The updated first type identity credential and the target second type identity credential are returned to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within the valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

[0028] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0029] Obtain a target identity authentication request, the target identity authentication request carrying the current first type identity credential and the requester identifier;

[0030] Obtain a target first-type identity credential corresponding to the requester identifier, and perform consistency verification based on the current first-type identity credential and the target first-type identity credential;

[0031] When the current first-type identity credential and the target first-type identity credential are consistent, updating the target first-type identity credential to obtain an updated first-type identity credential;

[0032] Generating a target second type of identity credential based on the updated first type of identity credential, and generating a valid time period corresponding to the target second type of identity credential;

[0033] The updated first type identity credential and the target second type identity credential are returned to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within the valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

[0034] The above-mentioned identity authentication method, device, computer equipment, storage medium and computer program product obtain a target identity authentication request, which carries the current first-type identity credential and the requester identifier; obtain the target first-type identity credential corresponding to the requester identifier, and perform consistency verification based on the current first-type identity credential and the target first-type identity credential; when the current first-type identity credential and the target first-type identity credential are consistent, the target first-type identity credential is updated to obtain an updated first-type identity credential; based on the updated first-type identity credential, a target second-type identity credential is generated, and a valid time period corresponding to the target second-type identity credential is generated; the updated first-type identity credential and the target second-type identity credential are returned to the requesting end corresponding to the requester identifier, the target second-type identity credential is used to authenticate the requester identifier within the valid time period, and the updated first-type identity credential is used to authenticate the requester identifier when the target second-type identity credential expires. By updating the first-type identity credential and generating the corresponding second-type identity credential, and then using the first-type identity credential and the second-type identity credential for identity authentication, the attacker cannot obtain the updated identity credential, thereby avoiding the security risks caused by the leakage of the identity credential, and improving the security of the identity credential. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A diagram of an application environment of an identity authentication method in an embodiment;

[0036] Figure 2 A schematic diagram of a flow chart of an identity authentication method in an embodiment;

[0037] Figure 3 A schematic diagram of a process for obtaining a target identity authentication request in one embodiment;

[0038] Figure 4 A schematic diagram of a process of returning an initial identity credential in one embodiment;

[0039] Figure 5 A schematic diagram of a process of returning a target identity credential in one embodiment;

[0040] Figure 6 It is a schematic diagram of the process of identity authentication in a specific embodiment;

[0041] Fig. 7A A schematic diagram of a fixed effective time period in a specific embodiment;

[0042] Figure 7B A schematic diagram of a random effective time period in a specific embodiment;

[0043] Figure 8 A schematic diagram of a process flow of historical device identity authentication in one embodiment;

[0044] Fig. 9 A schematic diagram of a process flow of identity authentication in another specific embodiment;

[0045] Fig.10 A schematic diagram of a process flow of an identity authentication method in a specific embodiment;

[0046] Fig.11 A schematic diagram of a start interface of device cloning in a specific embodiment;

[0047] Fig.12 A schematic diagram of a main page of an email application in a specific embodiment;

[0048] Fig.13 is a structural block diagram of an identity verification device in an embodiment;

[0049] Fig.14 is an internal structure diagram of a computer device in one embodiment;

[0050] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] The identity authentication method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other servers. The server 104 obtains the target identity authentication request sent by the requesting end device 102, and the target identity authentication request carries the current first type identity credential and the requesting party identifier; the server 104 obtains the target first type identity credential corresponding to the requesting party identifier, and performs consistency verification based on the current first type identity credential and the target first type identity credential; when the current first type identity credential and the target first type identity credential are consistent, the server 104 updates the target first type identity credential to obtain the updated first type identity credential; the server 104 generates the target second type identity credential based on the updated first type identity credential, and generates the valid time period corresponding to the target second type identity credential; the server 104 returns the updated first type identity credential and the target second type identity credential to the requesting end device 102 corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within the valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires. Among them, the target device can be a terminal or a server. The terminal can be, but is not limited to, various desktop computers, laptops, smart phones, tablets, IoT devices and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The requesting device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.

[0053] In one embodiment, Figure 2 As shown, an authentication method is provided, which is applied to Figure 1 The server in the example is used for explanation. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0054] S202, obtaining a target identity authentication request, where the target identity authentication request carries a current first type identity credential and a requester identifier.

[0055] Among them, the target identity authentication request refers to an identity authentication request carrying a first type of identity credential, which is used for identity authentication. The current first type of identity credential refers to the first type of identity credential that is currently to be authenticated. The first type of identity credential refers to the first type of identity credential, which can be a string that represents an identity, for example, a universal unique identifier, or a number, used to prove the identity of the requester. The first type refers to the type of identity credential, which can be determined based on the validity period of the identity credential, and different types of identity credentials have different validity periods. The requester identifier is used to identify the requester, and can be the name, account number, etc. of the requester.

[0056] Specifically, the server obtains the target identity authentication request sent by the requesting device, and then parses the target identity authentication request to obtain the current first type identity credential and the requesting party identifier carried therein.

[0057] In one embodiment, the requesting device obtains the current first type identity credential by performing data migration from the historical device, and the data migration may be to copy the data of the historical device to the current device. Then, a target identity authentication request is generated according to the current first type identity credential and the requesting party identifier, and the target identity authentication request is sent to the server, and the server obtains the target identity authentication request. The server may also obtain the target identity authentication request sent by the historical device.

[0058] S204, obtaining a target first type identity credential corresponding to the requester identifier, and performing consistency verification based on the current first type identity credential and the target first type identity credential.

[0059] The target first-type identity credential refers to the first-type identity credential stored in the server, which corresponds to the requesting party identifier.

[0060] Specifically, the server can obtain the target first type identity credential corresponding to the requester identifier from the database. Then, the consistency of the current first type identity credential and the target first type identity credential is verified, that is, the server determines whether the current first type identity credential and the target first type identity credential are consistent. Among them, the current first type identity credential and the target first type identity credential can be compared to see whether they are the same.

[0061] S206: When the current first-type identity credential is consistent with the target first-type identity credential, the target first-type identity credential is updated to obtain an updated first-type identity credential.

[0062] Here, updating the first type of identity credential refers to the updated first type of identity credential corresponding to the requesting party identifier.

[0063] Specifically, when the server determines that the current first-type identity credential is consistent with the target first-type identity credential, it means that the server has verified the current first-type identity credential. At this time, the server updates the current first-type identity credential, wherein the server may regenerate the first-type identity credential corresponding to the requester, obtain the updated first-type identity credential, and then use the updated first-type identity credential as the first-type identity credential corresponding to the requester identifier, and use the current first-type identity credential as an expired identity credential. The server may also generate an updated first-type identity credential based on the first-type identity credential.

[0064] S208: Generate a target second-type identity credential based on the updated first-type identity credential, and generate a valid time period corresponding to the target second-type identity credential.

[0065] The target second-type identity credential refers to a second-type identity credential generated by updating the first-type identity credential.

[0066] That is, the second type of identity credential is generated by the first type of identity credential. That is, when determining the type of identity credential, if the source of the identity credential is generated by the first type of identity credential, then the identity credential is the second type of identity credential. The valid time period refers to the time period during which the target second type of identity credential can prove the identity of the requesting party. The time period can be pre-set or randomly generated.

[0067] Specifically, when the server obtains the updated first type of identity credential, it needs to generate the corresponding second type of identity credential. At this time, the server generates the target second type of identity credential based on the updated first type of identity credential, wherein the server may randomly generate a unique identifier and a corresponding time period after generating the updated first type of identity credential, and then use the unique identifier as the target second type of identity credential, and use the corresponding time period as the valid time period corresponding to the target second type of identity credential. In one embodiment, the server may perform a hash calculation on the updated first type of identity credential, and obtain the target second type of identity credential based on the calculated hash and the randomly generated unique identifier. Then, the valid time period corresponding to the target second type of identity credential is generated.

[0068] S210, the updated first type identity credential and the target second type identity credential are returned to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within a valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

[0069] The requester is the device that sends the target identity authentication request.

[0070] Specifically, the server updates the first type of identity credentials and the target second type of identity credentials and returns the requesting end corresponding to the requesting party identifier. The server may also generate identity authentication success information and return the identity authentication success information together with the updated first type of identity credentials and the target second type of identity credentials to the requesting end. The requesting end may then use the target second type of identity credentials to generate an identity authentication request for identity authentication within the valid time period, and then use the updated first type of identity credentials to generate an identity authentication request for identity authentication at the end of the valid time period.

[0071] The above-mentioned identity authentication method obtains a target identity authentication request, which carries the current first-type identity credential and the requester's identifier; obtains the target first-type identity credential corresponding to the requester's identifier, and performs consistency verification based on the current first-type identity credential and the target first-type identity credential; when the current first-type identity credential and the target first-type identity credential are consistent, the target first-type identity credential is updated to obtain an updated first-type identity credential; based on the updated first-type identity credential, a target second-type identity credential is generated, and a valid time period corresponding to the target second-type identity credential is generated; the updated first-type identity credential and the target second-type identity credential are returned to the requesting end corresponding to the requester's identifier, the target second-type identity credential is used to authenticate the requester's identifier within the valid time period, and the updated first-type identity credential is used to authenticate the requester's identifier when the target second-type identity credential expires. By updating the first-type identity credential and generating the corresponding second-type identity credential, and then using the first-type identity credential and the second-type identity credential for identity authentication, the attacker cannot obtain the updated identity credential, thereby avoiding the security risks caused by the leakage of the identity credential, and improving the security of the identity credential.

[0072] In one embodiment, Figure 3 As shown, S202, obtaining an identity authentication request, the identity authentication request carries the current first type of identity credentials and the requesting party identifier, including:

[0073] S302, obtaining a current identity authentication request, where the current identity authentication request carries a current second type identity credential and a requester identifier.

[0074] The current identity authentication request refers to the identity authentication request of the carried second type of identity credential. The current second type of identity credential refers to the second type of identity credential that is currently to be authenticated. The second type of identity credential is the second type of identity credential, and the validity period of the first type of identity credential far exceeds the validity period of the second type of identity credential. The second type of identity credential is generated after the first type of identity credential is verified.

[0075] Specifically, the server may obtain the current identity authentication request from the requesting device, and then parse the current identity authentication request to obtain the current second type identity credential and the requesting party identifier.

[0076] S304, obtaining a verified second type identity credential corresponding to the requester identifier, and when the current second type identity credential and the verified second type identity credential are consistent, obtaining a first current time point.

[0077] The second type of identity credential verification refers to the second type of identity credential stored in the server, corresponding to the requester identifier. The first current time point refers to the current system time point of the server, which is obtained when the current second type of identity credential and the second type of identity verification credential are consistent.

[0078] Specifically, the server obtains the verification second type identity credential corresponding to the requester identifier from the database. Then the server determines whether the current second type identity credential is consistent with the verification second type identity credential, that is, whether the unique string corresponding to the current second type identity credential is the same as the unique string corresponding to the verification second type identity credential. If the unique string corresponding to the current second type identity credential is the same as the unique string corresponding to the verification second type identity credential, it means that the current second type identity credential is consistent with the verification second type identity credential. At this time, the server obtains the first current time point according to the server operating system.

[0079] S306: When the first current time point is not within the valid time period corresponding to the verification of the second type of identity credential, generate expiration information of the current second type of identity credential, and return the expiration information of the current second type of identity credential to the requesting end.

[0080] The current second-type identity credential expiration information refers to information used to indicate that the current second-type identity credential has expired, and the expired information means that the credential is not within the valid time period.

[0081] Specifically, the server determines whether the first current time point is within the valid time period corresponding to the verification of the second type of identity credentials. When the first current time point is within the valid time period corresponding to the verification of the second type of identity credentials, it means that the verification of the second type of identity credentials has not expired. At this time, the server identity authentication is passed. When the first current time point is not within the valid time period corresponding to the verification of the second type of identity credentials, it means that at the first current time point, the current second type of identity credentials have expired, and at this time, the server identity authentication has not passed. The server then generates the current second type of identity credential expiration information, and returns the current second type of identity credential expiration information to the requesting end, so that the requesting end re-initiates the identity authentication request.

[0082] S308, obtaining a target identity authentication request sent by the requesting end based on the expiration information of the current second type identity credential, where the target identity authentication request carries the current first type identity credential and the requesting party identifier.

[0083] Specifically, when the requesting end device obtains the expiration information of the current second type of identity credential, it obtains the stored first type of identity credential, and then uses the first type of identity credential and the requesting party identifier to generate a target identity authentication request, and then sends the target identity authentication request to the server. The server receives the target identity authentication request sent by the requesting end device, parses the target identity authentication request, and obtains the current first type of identity credential and the requesting party identifier carried in the target identity authentication request.

[0084] In the above embodiment, by obtaining the current identity authentication request carrying the current second type identity credential, and when verifying that the current second type identity credential is expired, the server re-obtains the target identity authentication request carrying the current first type identity credential, thereby avoiding the failure to perform identity authentication in time when the second type identity credential expires, and using the first type identity credential for identity authentication when the second type identity credential expires, that is, the identity verification of the expired second type identity credential fails, thereby improving the security of identity authentication.

[0085] In one embodiment, Figure 4 As shown, before S302, that is, before obtaining the current identity authentication request, the current identity authentication request carries the current second type identity credential and the requesting party identifier, it also includes:

[0086] S402, obtaining an initial identity authentication request, where the initial identity authentication request carries a requester identifier and a requester password.

[0087] The initial authentication request refers to the initial authentication request. The requester password refers to the password used by the requester to represent the identity. For example, when the requester wants to use an application, the application server performs authentication. At this time, the requester identifier can be the application login account, and the requester password can be the application login password.

[0088] Specifically, the server obtains the initial identity authentication request sent by the requesting device, parses the initial identity authentication request, and obtains the requesting party identifier and the requesting party password. For example, when the requesting party wants to use the network platform, the network platform server performs identity authentication. At this time, the requesting party identifier can be the network platform login account, and the requesting party password can be the network platform login password. That is, the network platform server obtains the identity authentication request carrying the network platform login account and the network platform login password.

[0089] S404: When the requester password is consistent with the verification password corresponding to the requester identifier, generate an initial first type identity credential and a valid time period corresponding to the initial first type identity credential based on the requester password.

[0090] The verification password refers to the password of the requester stored in the server and is used to verify the identity of the requester. The initial first-type identity credential refers to the first-type identity credential generated after the requester's password is verified.

[0091] Specifically, the server can obtain the verification password corresponding to the requester identifier from the database. Then, it is determined whether the requester password is consistent with the verification password corresponding to the requester identifier, that is, whether the requester password is the same as the verification password corresponding to the requester identifier. Wherein, when the requester password is different from the verification password corresponding to the requester identifier, it means that the identity authentication has not passed. At this time, the server returns a prompt message that the identity authentication has not passed to the requesting end device. When the requester password is the same as the verification password corresponding to the requester identifier, it means that the identity authentication of the requester has passed. At this time, the server generates an initial first type of identity credential and a valid time period corresponding to the initial first type of identity credential based on the requester password. Wherein, the server can generate a random unique identifier and a corresponding time period, use the random unique identifier as the initial first type of identity credential, and use the corresponding time period as the valid time period corresponding to the initial first type of identity credential. Wherein, the server can also calculate the hash value of the requester password, and use the hash value and the random unique identifier as the initial first type of identity credential. In one embodiment, the server can obtain an initial identity authentication request carrying an encrypted requester password. The server decrypts the encrypted requester password and then performs identity authentication. For example, the server can use the public key of the requester to decrypt the encrypted requester password.

[0092] S406: Generate an initial second type identity credential based on the initial first type identity credential, and generate an initial time period corresponding to the initial second type identity credential, wherein the valid time period of the initial first type identity credential exceeds the initial time period corresponding to the initial second type identity credential.

[0093] The initial second type of identity credential refers to an identity credential generated after the initial first type of identity credential is verified. The validity period of the initial first type of identity credential exceeds the initial period corresponding to the initial second type of identity credential.

[0094] Specifically, when the server generates the initial first type of identity credential corresponding to the requester identifier, it also needs to generate an identity credential whose validity period is less than the validity period of the initial first type of identity credential. That is, the server generates the initial second type of identity credential based on the initial first type of identity credential. Among them, the server can randomly generate a universal unique identifier, and then use the universal unique identifier as the initial second type of identity credential, and generate a corresponding valid time period, namely the initial time period. Among them, the server can also calculate the hash value of the initial first type of identity credential, obtain the initial second type of identity credential based on the hash value and the randomly generated universal unique identifier, and generate a corresponding valid time period, namely the initial time period.

[0095] In one embodiment, the server may generate a second type of identity credential after verifying the first type of identity credential.

[0096] S408: Return the initial first type identity credential and the initial second type identity credential to the requesting end.

[0097] Specifically, the server may generate identity authentication information, and return the identity authentication information, the initial first type identity credential, and the initial second type identity credential to the requester, and the requester may use the initial first type identity credential and the initial second type identity credential for identity authentication.

[0098] In one embodiment, when the requester password is consistent with the verification password corresponding to the requester identifier, the server generates an initial first-type identity credential based on the requester password and returns the initial first-type identity credential to the requester. The server then obtains the identity authentication request sent by the requester using the initial first-type identity credential, and after the initial first-type identity credential passes the identity authentication, generates an initial second-type identity credential corresponding to the initial first-type identity credential, and then returns the initial second-type identity credential to the requester.

[0099] In the above embodiment, by obtaining an initial identity authentication request carrying the requester's password, and then verifying that the requester's password is consistent with the verification password corresponding to the requester's identifier, an initial first-type identity credential and a valid time period corresponding to the initial first-type identity credential are generated based on the requester's password. An initial second-type identity credential and a corresponding initial time period are generated, and finally the initial first-type identity credential and the initial second-type identity credential are returned to the requester. The requester can use the identity credential for identity authentication, thereby avoiding leakage of the requester's password and improving the security of the requester's password.

[0100] In one embodiment, Figure 5 As shown, the identity verification method also includes:

[0101] S502: When the current first-type identity credential is inconsistent with the target first-type identity credential, obtain a second current time point.

[0102] S502, when the second current time point is within the historical valid time period, obtain the historical first type identity credential corresponding to the target first type identity credential, the target first type identity credential is obtained after the historical first type identity credential is updated, and the historical valid time period is the valid time period generated after the historical first type identity credential is updated.

[0103] The second current time point refers to the current time point of the server operating system obtained when the current first-type identity credential and the target first-type identity credential are inconsistent. The historical valid time period refers to the valid time period generated after the historical first-type identity credential is updated. The target first-type identity credential is the updated first-type identity credential, and the historical first-type identity credential is the first-type identity credential before the update.

[0104] Specifically, when the server determines whether the second current time point is within the historical valid time period, the historical valid time period is a time period from the time point when the historical first-type identity credential was updated to another arbitrary time point, and the historical valid time period is a transition time period for transitioning the first-type identity credential used for identity authentication to the updated first-type identity credential. When the second current time point is within the historical valid time period, it means that the historical first-type identity credential can still be used normally. At this time, the server obtains the historical first-type identity credential corresponding to the target first-type identity credential from the database, that is, obtains the first-type identity credential before the update corresponding to the requester identifier.

[0105] S502: When the current first-type identity credential is consistent with the historical first-type identity credential, the target first-type identity credential is returned to the requesting end.

[0106] Specifically, the server determines whether the current first-type identity credential is consistent with the historical first-type identity credential. When the current first-type identity credential is inconsistent with the historical first-type identity credential, the server generates identity authentication failure information, and then returns the generated identity authentication failure information to the requesting end. When the current first-type identity credential is consistent with the historical first-type identity credential, it means that the server has successfully authenticated the requesting party. At this time, the server returns the target first-type identity credential to the requesting end, that is, returns the updated first-type identity credential to the requesting end, so that the requesting end uses the updated first-type identity credential for identity authentication.

[0107] In the above embodiment, when the current first-type identity credential and the target first-type identity credential are inconsistent, the historical first-type identity credential within the historical valid time period is used to authenticate the current first-type identity credential, which can avoid the problem of verification failure after different request-end devices send authentication requests at the same time after data migration, and can avoid the problem that the request end fails to obtain the updated first-type identity credential normally, thereby ensuring the normal use of identity authentication. And after the verification is passed, the updated first-type identity credential is returned to the request-end device, so that the request-end device uses the updated first-type identity credential for identity authentication, thereby improving the security of identity authentication.

[0108] In one embodiment, the identity authentication method also includes: when the second current time point is not within the historical valid time period, generating identity authentication failure information, and deleting the historical first type identity credentials and the target first type identity credentials corresponding to the historical valid time period; and returning the identity authentication failure information to the requesting end.

[0109] Specifically, when the server determines that the second current time point is not within the historical valid time period, it indicates that the attacker used the historical first-type identity credentials for identity authentication. At this time, the server generates identity authentication failure information and deletes all identity credentials stored in the server, that is, the historical first-type identity credentials and the target first-type identity credentials corresponding to the historical valid time period are deleted, so that the attacker cannot pass the identity authentication using the historical first-type identity credentials and the target first-type identity credentials. Then the identity authentication failure information is returned to the requesting end, thereby preventing the attacker from using the identity credentials to attack, and improving the security of identity authentication.

[0110] In a specific embodiment, Figure 6As shown, a schematic diagram of using a historical first-type identity credential for identity authentication is provided, wherein the request end sends an identity authentication request carrying a first-type identity credential 1 to the server, and when the server verifies that the first-type identity credential 1 passes, the first-type identity credential 1 is updated to obtain an updated first-type identity credential 2, and then the updated first-type identity credential 2 is returned to the request end. At this time, the request end does not receive the returned updated first-type identity credential 2, that is, the updated first-type identity credential 2 is not returned normally. At this time, the server receives an identity authentication request carrying the first-type identity credential 1 sent by the request end, and the identity authentication request may be a concurrent multiple request. At this time, when the server verifies that the first-type identity credential 1 is within the valid time window of the first-type identity credential 1, for example, the valid time window may be within 1 minute after the first-type identity credential is updated. The time point of the identity authentication request for the first-type identity credential 1 received by the server is within 1 hour after the update. At this time, when the server uses the first-type identity credential 1 and the first-type identity credential 1 is consistent with the saved first-type identity credential 1, the updated first-type identity credential 2 is returned to the request end. When multiple concurrent requests all pass the identity authentication using the first-type identity credential 1, the updated first-type identity credential 2 is obtained and returned to the corresponding request end. Then, when the server insists that the current time point is more than 1 hour after the update, that is, when the current time point is more than 1 minute, it indicates that an attacker is attacking. At this time, the server generates an authentication failure message and returns the authentication failure message to the requesting end. At the same time, the first type of identity credential 1 and the updated first type of identity credential 2 are deleted from the server, thereby preventing the attacker from using the first type of identity credential to attack and improving the security of identity authentication.

[0111] In one embodiment, the target identity authentication request also carries a current version identifier corresponding to the current first type identity credential; the identity authentication method further includes:

[0112] When the current first-type identity credential and the target first-type identity credential are inconsistent, the historical first-type identity credential corresponding to the target first-type identity credential is obtained, and the historical version identifier corresponding to the historical first-type identity credential is obtained; when the current first-type identity credential is consistent with the historical first-type identity credential and the current version identifier exceeds the historical version identifier, the historical version identifier is replaced with the current version identifier, and the target first-type identity credential is returned to the requesting end.

[0113] Among them, the historical version identifier refers to the version identifier corresponding to the historical first type of identity credential. The current version identifier refers to the version identifier corresponding to the current first type of identity credential. The version identifier is used to identify the number of times the first type of identity credential is used, and is generated by the requesting end and sent to the server. For example, the version identifier can be a self-incrementing identifier corresponding to the first type of identity credential generated by the requesting end. Each time the first type of identity credential is used, the self-incrementing identifier is self-incremented to obtain a self-incrementing identifier, and then the self-incrementing identifier, the first type of identity credential and the requesting party identifier are used to generate an identity authentication request and send it to the server.

[0114] Specifically, the request end stores the version identifier of the first type of identity credential. Each time the request end needs to use the first type of identity credential, the version identifier is updated to obtain an updated version identifier. That is, each time the request end uses the first type of identity credential, the version identifier is updated. Then the updated version identifier is used as the current version identifier, and the current first type of identity credential and the corresponding current version identifier are used to generate an identity authentication request, and the identity authentication request is sent to the server. The server obtains the identity authentication request, determines whether the current first type of identity credential and the target first type of identity credential are consistent, and when the current first type of identity credential and the target first type of identity credential are not consistent, obtains the historical first type of identity credential corresponding to the target first type of identity credential, and obtains the historical version identifier corresponding to the historical first type of identity credential. The historical version identifier is generated when the request end uses the historical first type of identity credential for identity authentication. When the current first type of identity credential is consistent with the historical first type of identity credential and the current version identifier exceeds the historical version identifier, it means that the identity authentication is passed. At this time, the server replaces the historical version identifier with the current version identifier and returns the target first type of identity credential to the request end.

[0115] In the above embodiment, identity authentication is performed through the first type of identity credential and the version identifier corresponding to the first type of identity credential. When the current first type of identity credential is consistent with the historical first type of identity credential and the current version identifier exceeds the historical version identifier, the identity authentication is successful, and the target first type of identity credential is returned to the requesting end. Even if the first type of identity credential is leaked, the attacker cannot use the leaked first type of identity credential to successfully attack, and the attacker does not have a self-incremented version identifier, thereby improving the security of identity authentication.

[0116] In one embodiment, S208, generating a valid time period corresponding to the target second type identity credential includes: generating a random time interval value, and using the random time value as the valid time period corresponding to the target second type identity credential.

[0117] The random time interval value refers to a randomly generated time interval value, the starting value of the time block value may be the time point at which the target second type of identity credential is generated, and the ending value of the time block value is a randomly generated time point, which is a time point after the time point at which the target second type of identity credential is generated. The starting value of the time block value may also be a random time point after the time point at which the target second type of identity credential is generated. Then the ending value of the time block value is a random time point after the starting value of the time block value.

[0118] Specifically, the server may generate a random time interval value using a random number generator, and then use the random time value as the valid time period corresponding to the target second type identity credential.

[0119] In one embodiment, the server may generate a random time length, and then calculate the valid time period corresponding to the target second type identity credential according to the current time point and the random time length.

[0120] In a specific embodiment, Fig. 7A As shown, a schematic diagram of a fixed valid time period is provided. The historical first type identity credential may include a universal unique identifier (UUID, referred to as seq). Specifically: when the historical valid time period of the historical first type identity credential of the server is a fixed time period, the attacker can obtain the fixed time period through a large number of tests. At this time, if the historical first type identity credential is leaked, the attacker obtains the leaked historical first type identity credential. At this time, the attacker uses the historical first type identity credential to authenticate the identity in the fixed time period obtained by the test. At this time, the attacker will obtain the updated first type identity credential, thereby causing a security risk. In order to avoid this problem, a random time interval value can be generated, and the random time interval value can be used as the historical valid time period corresponding to the historical first type identity credential. At this time, the attacker cannot test and obtain the random time period, and even if the attacker uses the historical first type identity credential for identity authentication, the updated first type identity credential cannot be obtained, thereby improving the security of the updated identity credential.

[0121] In a specific embodiment, Figure 7BAs shown, a schematic diagram of a random valid time period is provided, wherein the server receives an identity authentication request sent through a first type of identity credential 1, and when the first type of identity credential 1 is verified, the server generates a first type of identity credential 2 and simultaneously generates a second type of identity credential and a random valid time period 1 corresponding to the second type of identity credential, and returns the first type of identity credential 2 and the second type of identity credential to the requesting end. When the second type of identity credential expires, the requesting end sends an identity authentication request to the server through the first type of identity credential 2, and the server receives an identity authentication request sent through the first type of identity credential 2, and when the first type of identity credential 2 is verified, the server generates a first type of identity credential 3 and simultaneously generates a second type of identity credential and a random valid time period 2 corresponding to the second type of identity credential, and returns the first type of identity credential 3 and the second type of identity credential to the requesting end. The valid time period is randomly generated, so that the length of the valid time period 1 is significantly different from the length of the valid time period 2, so that the attacker cannot estimate the historical valid time period, thereby preventing the attacker from using the historical first type of identity credential to attack within the historical valid time period, thereby improving the security of identity authentication.

[0122] In one embodiment, after S208, that is, after returning the updated first type identity credential and the target second type identity credential to the requesting end corresponding to the requesting party identifier, the step of:

[0123] Obtain an updated identity authentication request, the updated identity authentication request carries the target second type identity credential and the requesting party identifier; obtain the updated second type identity credential corresponding to the requesting party identifier, and when the target second type identity credential and the updated second type identity credential are consistent, obtain a third current time point; when the third current time point is within the valid time period corresponding to the updated second type identity credential, generate identity authentication pass information, and return the identity authentication pass information to the requesting end.

[0124] Among them, the update identity authentication request refers to the identity authentication request generated using the target second type identity credential. The update second type identity credential refers to the second type identity credential corresponding to the requester identifier stored by the server. The third current time point refers to the time point of the server operating system when the target second type identity credential and the update second type identity credential are consistent.

[0125] Specifically, the requesting end device obtains the updated first type identity credential and the target second type identity credential sent by the server, and then saves the updated first type identity credential and the target second type identity credential. Then, when the requesting end device detects the identity authentication instruction, it obtains the saved target second type identity credential and the requesting party identifier according to the identity authentication instruction, and then generates an updated identity authentication request, and sends the updated identity authentication request to the server. The server obtains the updated identity authentication request sent by the requesting end device, parses the updated identity authentication request, and obtains the target second type identity credential and the requesting party identifier. Then, the server obtains the updated second type identity credential corresponding to the requesting party identifier from the database, and then determines whether the target second type identity credential and the updated second type identity credential are consistent. When the target second type identity credential and the updated second type identity credential are not consistent, it means that the server identity authentication has not passed at this time. At this time, the server generates identity authentication failure information, and then returns the identity authentication failure information to the requesting end device. When the target second type identity credential and the updated second type identity credential are consistent, the server obtains the current time point of the operating system, that is, obtains the third current time point. Then, it is determined whether the third current time point is within the valid time period corresponding to the updated second type identity credential. When the third current time point is not within the valid time period corresponding to the update of the second type of identity credential, the server generates second type of identity credential expiration information, and then returns the second type of identity credential expiration information to the requesting end device. When the third current time point is within the valid time period corresponding to the update of the second type of identity credential, identity authentication pass information is generated, and the identity authentication pass information is returned to the requesting end.

[0126] In one embodiment, when the third current time point is within the valid time period corresponding to the update of the second type of identity credential, the server passes the identity authentication and does not explicitly notify the requesting end. When the third current time point is not within the valid time period corresponding to the update of the second type of identity credential, the server fails the identity authentication. At this time, the server needs to generate a prompt message of the identity authentication failure, which may include the reason for the failure, such as the expiration of the identity credential. Finally, the prompt message of the identity authentication failure is returned to the requesting end.

[0127] In the above embodiment, by obtaining an updated identity authentication request, the updated identity authentication request carries the target second type identity credential and the requesting party identifier; obtaining the updated second type identity credential corresponding to the requesting party identifier, and when the target second type identity credential and the updated second type identity credential are consistent, obtaining the third current time point; when the third current time point is within the valid time period corresponding to the updated second type identity credential, generating identity authentication pass information, and returning the identity authentication pass information to the requesting end, and performing identity authentication by using the second type identity credential, thereby improving the security of identity authentication.

[0128] In one embodiment, S202, obtaining a target identity authentication request, the target identity authentication request carrying the current first type identity credential and the requester identifier, includes the following steps:

[0129] A target identity authentication request sent by the current device using the current first type identity credential and the requester identifier is obtained, where the current first type identity credential and the requester identifier are obtained by the current device from a historical device through data migration.

[0130] Among them, data migration refers to migrating data from a historical device to a current device so that the current device can use the data. Among them, the data includes but is not limited to identity credentials, such as second-type identity credentials or first-type identity credentials. The data can be data of a target application in a historical device, or data of a network platform in a historical device. The current device refers to a computer device that obtains the migrated data. The historical device is a computer device that migrates the data.

[0131] Specifically, the current device obtains the current first type identity credential and the requester identifier in the historical device through data migration. Then, the target identity authentication request is generated using the current first type identity credential and the requester identifier, and the target identity authentication request is sent to the server. The server obtains the target identity authentication request sent by the current device using the current first type identity credential and the requester identifier, parses the target identity authentication request, obtains the current first type identity credential and the requester identifier, and uses the current first type identity credential and the requester identifier for identity authentication.

[0132] In a specific embodiment, the data saved by the instant messaging application in the historical device can be migrated to the current device. That is, the login information and communication information of the instant messaging application can be migrated to the current device, and the login information can include identity credentials and login account, etc. Then the current device can use the migrated login information to log in to the instant messaging application for use, and can view the communication information migrated from the historical device when using the instant messaging application. Among them, when the current device uses the login information to log in to the instant messaging application, it can use the login account and the second type of identity credentials to generate a login request, and send the login request to the server of the instant messaging application. Then the server of the instant messaging application responds to the login request to verify the second type of identity credentials, and when the verification is successful, returns login success information to the current device, so that the current device successfully logs in to the instant messaging application.

[0133] In the above embodiment, a target identity authentication request sent by the current device using the current first type identity credential and the requesting party identifier is obtained. The current first type identity credential and the requesting party identifier are obtained by the current device from a historical device through data migration, so that the current device can use the identity credential migrated from the historical device for identity authentication, which facilitates the use of the current device and improves convenience.

[0134] In one embodiment, Figure 8 As shown, the identity verification method also includes:

[0135] S802, obtaining a historical identity authentication request sent by a historical device, where the historical identity authentication request carries the historical device hardware information, the requester password and the requester identifier.

[0136] Among them, historical authentication request refers to the authentication request sent by the historical device. Historical device hardware information refers to the hardware information of the historical device. Hardware information is the basic information of the hardware in the device, which may include basic information such as the central processing unit, memory, and hard disk. Requester password refers to the password of the requester, which is used to represent the identity of the requester.

[0137] Specifically, after the historical device migrates the data to the current device, the historical device can also perform identity authentication. At this time, the server obtains the historical identity authentication request sent by the historical device, parses the historical identity authentication request, and obtains the historical device hardware information, the requester password and the requester identification.

[0138] S804: When the requester password is consistent with the verification password corresponding to the requester identifier, obtain the current device hardware information corresponding to the requester identifier.

[0139] The current device hardware information refers to the hardware information of the current device.

[0140] Specifically, the server determines whether the requester password is consistent with the verification password corresponding to the requester ID. When the requester password is inconsistent with the verification password corresponding to the requester ID, the server generates an incorrect password authentication failure message, and then returns the incorrect password authentication failure message to the historical device. When the requester password is consistent with the verification password corresponding to the requester ID, it means that the authentication is successful. At this time, the server obtains the current device hardware information corresponding to the saved requester ID from the database.

[0141] S806, when the current device hardware information is inconsistent with the historical device hardware information, generate a historical device requester identifier based on the historical device hardware information, and generate a historical device first type identity credential based on the requester password.

[0142] The historical device requester identifier is used to identify the historical device and can be a character string. The historical device requester identifier is different from the requester identifier obtained by migrating the current device. That is, when the data of the historical device is migrated to the current device, the requester identifier in the historical device can be updated. The historical device first type identity credential refers to the first type identity credential of the historical device requester identifier corresponding to the historical device.

[0143] Specifically, when the server passes the identity verification, in order to avoid the problem of frequent identity credential updates caused by identity credential conflicts between the current device and the historical device, the server can update the requester identifier of the historical device. That is, when the server passes the identity verification, when the requester identifier is used to obtain the hardware information of the two devices, it means that the requester identifier has a corresponding historical device and current device. At this time, the server further determines whether the current device hardware information is consistent with the historical device hardware information. When the current device hardware information is inconsistent with the historical device hardware information, the historical device requester identifier is generated based on the historical device hardware information, wherein the hash value of the historical device hardware information can be calculated, and the historical device requester identifier is obtained according to the hash value and the random string. Then, the first type of historical device identity credential is generated according to the verified requester password, wherein a random universal unique identifier can be directly generated and the random universal unique identifier is used as the first type of historical device identity credential, or the hash value of the requester password can be calculated, and the hash value and the random universal unique identifier are used as the first type of historical device identity credential. In one embodiment, when the current device hardware information is consistent with the historical device hardware information, it means that the identity authentication request is sent by the same device. At this time, there is no need to update the requester identifier. Only the first type of identity credentials in the identity authentication request need to be updated to obtain the updated first type of identity credentials, and the updated first type of identity credentials are returned to the requester.

[0144] S808: Generate a historical device second type identity credential based on the historical device first type identity credential, and generate a historical device valid time period corresponding to the historical device second type identity credential.

[0145] The second type of historical device identity certificate refers to the second type of identity certificate obtained when the historical device acts as a requester for identity authentication. The historical device valid time period refers to the valid time period of the second type of historical device identity certificate, which can be a time period of random length.

[0146] Specifically, after generating the first type of historical device identity credential, the server generates the second type of historical device identity credential, wherein the randomly generated universal unique identifier can be used as the second type of identity credential, and the historical device validity period corresponding to the second type of identity credential is randomly generated. The server simultaneously generates the validity period of the first type of historical device identity credential, and the validity period of the first type of historical device identity credential exceeds the validity period of the second type of historical device credential.

[0147] S810, returning the historical device requester identifier, the historical device first type identity credential, and the historical device second type identity credential to the historical device.

[0148] Specifically, the server returns the historical device requester identifier, the historical device first type identity credential, and the historical device second type identity credential to the historical device. The historical device receives and saves the historical device requester identifier, the historical device first type identity credential, and the historical device second type identity credential. Then, when the historical device needs to perform identity authentication, it can use the historical device second type identity credential and the historical device requester identifier to generate an identity authentication request for identity authentication. And after the historical device second type identity credential expires, the historical device first type identity credential and the historical device requester identifier can be used to generate an identity authentication request for identity authentication. In one embodiment, the server may not process the requester identifier and identity credential of the historical device, but only update the requester identifier and identity credential of the current device, that is, the server generates the updated requester identifier and updated identity credential of the current device, and the current device uses the updated requester identifier and updated identity credential to generate an identity authentication request and perform identity authentication.

[0149] In a specific embodiment, Fig. 9As shown, a schematic diagram of identity authentication is provided, specifically: the new device or the old device uses the requester identifier and the first type of identity credential to generate an identity authentication request, the server receives the identity authentication request, and when it detects that the first type of identity credential is not within the valid time, the server returns a prompt message of the identity credential expiration to the new device or the old device. Then the new device or the old device uses the requester identifier, the requester password and the device hardware information to generate an identity authentication request, and sends the identity authentication request to the server. When the server receives the identity authentication request, it verifies the requester password, that is, when the requester password is consistent with the password corresponding to the requester identifier stored by the server, the identity authentication of the requester identifier is passed. At this time, the server performs a matching judgment between the requester identifier and the hardware information. That is, the corresponding hardware information stored by the server is obtained according to the requester identifier. When the stored device hardware information is inconsistent with the hardware device information carried in the request, it indicates that the device has been replaced. At this time, the server generates a new requester identifier according to the hardware information carried in the identity authentication request, and then generates a new first type of identity credential, a second type of identity credential and a valid time period of the second type of identity credential according to the new requester identifier. The new requester identifier, the new first type of identity credential, the second type of identity credential, and the valid time period are stored in the storage space of the server, such as a database of the server. At the same time, the server returns the new requester identifier, the new first type of identity credential, and the second type of identity credential to the new device or the old device that sent the identity authentication request.

[0150] When the server obtains the matching device hardware information according to the requester's identifier, and the device hardware information is consistent with the hardware information carried in the request, it means that the device has not changed. At this time, it is only necessary to update the first type of identity credential, obtain the updated first type of identity credential, and generate the second type of identity credential and valid time period corresponding to the updated first type of identity credential. Finally, the server returns the updated first type of identity credential and the corresponding second type of identity credential to the new device or old device that sent the identity authentication request.

[0151] In one embodiment, when the server obtains the historical identity authentication request sent by the current device, and when the requester password is consistent with the verification password corresponding to the requester identifier of the current device, the server obtains the current device hardware information corresponding to the requester identifier. When the current device hardware information is inconsistent with the historical device hardware information, the requester identifier and the first type of identity credential corresponding to the current device are updated, and the updated requester identifier and the updated first type of identity credential are returned to the current device.

[0152] In the above embodiment, by obtaining the historical identity authentication request sent by the historical device, and when the requester password is consistent with the verification password corresponding to the requester identifier, the current device hardware information corresponding to the requester identifier is obtained. When the current device hardware information is inconsistent with the historical device hardware information, the requester identifier and the first type of identity credential are updated, and the updated requester identifier and the first type of identity credential are returned to the historical device, thereby avoiding the problem of frequent updates of identity credentials caused by identity credential conflicts between the current device and the historical device after data migration between the historical device and the current device, thereby ensuring that both the current device and the historical device can perform identity authentication normally after data migration.

[0153] In one embodiment, S202, obtaining a target identity authentication request, the target identity authentication request carrying the current first type identity credential and the requester identifier, includes the following steps:

[0154] A business service request is obtained, where the business service request carries the current first type identity credential and the requester identifier.

[0155] The business service request refers to a request for a business service, which is determined according to the application scenario. For example, when performing an application login service, the business service request is a login request. When performing an email sending service, the business service request may be an email sending request.

[0156] Specifically, the server obtains the business service request sent by the requesting end, and then parses the business service request to obtain the current first type identity credential and the requesting party identifier. The server may also obtain the business service request from the service provider providing the business service.

[0157] S206, when the current first-type identity credential is consistent with the target first-type identity credential, updating the target first-type identity credential to obtain an updated first-type identity credential, including:

[0158] When the current first type identity credential is consistent with the target first type identity credential, the business service is executed in response to the business service request to obtain a service execution result, and the target first type identity credential is updated to obtain an updated first type identity credential.

[0159] The service execution result refers to the execution result of the business service. For example, when the business service request is a login request, the business execution result may be information about successful login into the application. The business service request may be an email sending request, and the business execution result may be information about the completion of email content sending.

[0160] Specifically, when the current first-type identity credential and the target first-type identity credential are consistent, it means that the identity authentication of the requester identifier is passed, and at this time, the server can provide business services. That is, the server responds to the business service request to perform business service execution, obtains the service execution result, and updates the target first-type identity credential to obtain an updated first-type identity credential.

[0161] S210, returning the updated first type identity credential and the target second type identity credential to the requesting end corresponding to the requesting party identifier, including:

[0162] The service execution result, the updated first type identity credential and the target second type identity credential are returned to the requesting end corresponding to the requesting party identifier.

[0163] Specifically, the server returns the service execution result, the updated first type of identity credentials, and the target second type of identity credentials to the requesting end corresponding to the requesting party identifier. The requesting end device saves the updated first type of identity credentials and the target second type of identity credentials, and performs corresponding service processing according to the service execution result. For example, when the business service request is a login request, the requesting end obtains the information of successful entry into the application, thereby entering the start page of the application. When the business service request is an email sending request, the requesting end obtains the information that the email content has been sent, and displays the information that the email content has been sent.

[0164] In the above embodiment, by obtaining a business service request, the business service request carries the current first type identity credential and the requester identifier. When the identity authentication of the requester identifier is passed using the current first type identity credential, the business service is executed in response to the business service request, and the service execution result is obtained, and the target first type identity credential is updated to obtain the updated first type identity credential. Finally, the service execution result, the updated first type identity credential and the target second type identity credential are returned to the request end corresponding to the requester identifier. That is, the service is executed after the identity authentication is passed, thereby improving the security of the service execution.

[0165] In one embodiment, after returning the service execution result, the updated first type identity credential and the target second type identity credential to the requesting end corresponding to the requesting party identifier, the method further includes:

[0166] Obtain a target business service request, which carries a target second-type identity credential and a requester identifier; obtain the currently verified second-type identity credential corresponding to the requester identifier, and when the target second-type identity credential is consistent with the currently verified second-type identity credential, obtain the target current time point; when the target current time point is within a valid time period corresponding to the currently verified second-type identity credential, respond to the target business service request to perform business service execution, and obtain a target service execution result; and return the target service execution result to the requester.

[0167] Among them, the target business service request refers to the business service request carrying the target second type identity credential. The currently verified second type identity credential refers to the second type identity credential corresponding to the requester identifier stored by the server. The target current time point refers to the time point when the target second type identity credential is consistent with the currently verified second type identity credential. The target service execution result is used to characterize the execution result of the target business service request, which can be a prompt message that the target business service has been completed.

[0168] Specifically, the server obtains the target business service request sent by the requesting device, and the target business service request carries the target second type identity credential and the requesting party identifier. The server then searches the database for the currently verified second type identity credential corresponding to the requesting party identifier, and compares whether the target second type identity credential is consistent with the currently verified second type identity credential. When the target second type identity credential is inconsistent with the currently verified second type identity credential, the server generates a prompt message indicating that the identity authentication has not passed, and returns it to the requesting party. When the target second type identity credential is consistent with the currently verified second type identity credential, the server obtains the target current time point. When it is determined that the target current time point is within the valid time period corresponding to the currently verified second type identity credential, the target business service request is responded to to perform the business service execution, and the target service execution result is obtained. Finally, the server returns the target service execution result to the requesting party.

[0169] In the above embodiment, by obtaining the target business service request, the target business service request carries the target second type identity credential and the requester identifier; obtaining the currently verified second type identity credential corresponding to the requester identifier, and when the target second type identity credential is consistent with the currently verified second type identity credential, obtaining the target current time point; when the target current time point is within the valid time period corresponding to the currently verified second type identity credential, responding to the target business service request to execute the business service and obtaining the target service execution result; returning the target service execution result to the requester, that is, executing the business service after identity authentication is passed by using the second type identity credential, thereby improving the security of the business service execution.

[0170] In a specific embodiment, Fig.10The figure is a flowchart of the identity authentication method, which specifically includes the following steps:

[0171] S1002, obtaining a current identity authentication request sent by the current device, the current identity authentication request carries a current second type identity credential and a requesting party identifier, and the current second type identity credential, the current first type identity credential and the requesting party identifier are obtained by the current device from a historical device through data migration.

[0172] S1004, obtaining the verified second type identity credential corresponding to the requester identifier, and when the current second type identity credential and the verified second type identity credential are consistent, obtaining the first current time point. When the first current time point is not within the valid time period corresponding to the verified second type identity credential, generating the current second type identity credential expiration information, and returning the current second type identity credential expiration information to the requester.

[0173] S1006, obtaining a target identity authentication request sent by the requesting end based on the expiration information of the current second type identity credential, the target identity authentication request carrying the current first type identity credential and the requesting party identifier. Obtain the target first type identity credential corresponding to the requesting party identifier, and perform consistency verification based on the current first type identity credential and the target first type identity credential.

[0174] S1008, when the current first type identity credential is consistent with the target first type identity credential, the target first type identity credential is updated to obtain an updated first type identity credential. A target second type identity credential is generated based on the updated first type identity credential, and a valid time period corresponding to the target second type identity credential is generated.

[0175] S1010, the updated first type identity credential and the target second type identity credential are returned to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within a valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

[0176] S1012, when the current first-type identity credential and the target first-type identity credential are not consistent, obtaining a second current time point; when the second current time point is within the historical valid time period, obtaining a historical first-type identity credential corresponding to the target first-type identity credential, the target first-type identity credential is obtained after the historical first-type identity credential is updated, and the historical valid time period is a valid time period generated after the historical first-type identity credential is updated;

[0177] S1014: When the current first-type identity credential is consistent with the historical first-type identity credential, the target first-type identity credential is returned to the requesting end.

[0178] In the above embodiment, when the identity authentication is passed using the first type of identity credential, the target first type of identity credential is updated to obtain the updated first type of identity credential, and then the updated first type of identity credential and the corresponding second type of identity credential are returned to the requesting end, so that the updated first type of identity credential and the corresponding second type of identity credential are used to perform identity authentication, thereby avoiding the security risks caused by the leakage of the first type of identity credential and improving the security of identity authentication.

[0179] In a specific embodiment, the identity authentication method is applied to an email application. Specifically, the user can migrate the historical data of the email application on the old device to the new device by cloning data, so that the new device can obtain the historical data of the email application. Fig.11 As shown, it is a schematic diagram of the start interface of device cloning, wherein when the user clicks the quick start button, the old device receives the data migration instruction and copies the data of the email application of the old device to the new device. Then, the user can use the email application in the new device, which is convenient and fast.

[0180] When the user logs in to the email application through the new device, the new device obtains the login account and the second type of identity credential from the historical data of the email application, and then uses the login account and the second type of identity credential to generate a login request and send it to the server. When the server receives the login request, if it detects that the current time point is not within the valid time period of the second type of identity credential, it returns the prompt information of the expiration of the second type of identity credential to the new device. The new device receives the prompt information of the expiration of the second type of identity credential returned by the server, finds the first type of identity credential from the historical data of the email application, and then uses the login account and the first type of identity credential to generate a login request and send it to the server. The server receives the login account and the first type of identity credential, and then verifies the first type of identity credential, that is, determines whether the first type of identity credential is consistent with the first type of identity credential corresponding to the login account stored in the server. When consistent, the server passes the identity authentication of the login account. At this time, the server generates a successful login message, updates the first type of identity credential, obtains the updated first type of identity credential, and generates the second type of identity credential corresponding to the updated first type of identity credential and the random valid time period of the second type of identity credential. Then the server returns the successful login message, the updated first type of identity credential and the corresponding second type of identity credential to the new device. The new device receives the successful login information, updates the first type of identity credentials and the corresponding second type of identity credentials, saves the updated first type of identity credentials and the corresponding second type of identity credentials, and displays the main page of the email application according to the successful login information. Fig.12As shown, it is a schematic diagram of the main page of the email application, wherein the main page displays information such as the email address and the inbox, and the 16 historical emails in the inbox can be obtained from the old device through data migration. At this time, the server can use the email application to send and receive emails normally.

[0181] Then, when sending an email, the second type of identity credential can be used for identity authentication. Specifically, the server of the email application obtains the email sending request sent by the terminal corresponding to the sender identifier, and the email sending request carries the second type of identity credential, the sender identifier, the recipient address and the email content. Then the server verifies that the second type of identity credential is consistent with the second type of identity credential corresponding to the sender identifier stored by the server, and the identity authentication of the sender identifier is passed when the current time point is within the valid time period corresponding to the second type of identity credential. At this time, the server sends the email content to the recipient's client according to the recipient's address, generates email sending completion information, returns the email sending completion information to the terminal corresponding to the sender identifier, and the terminal corresponding to the sender identifier displays the email sending completion information through the email application, and saves the email content that has been sent to the email sending box. That is, each time the identity authentication is passed through the first type of identity credential, the first type of identity credential needs to be updated to avoid security risks caused by identity credential leakage, thereby improving the security of the identity credential, and using the second type of identity credential with a random valid time period for identity authentication, thereby preventing attackers from obtaining the second type of identity credential, and improving the security of the identity credential. The identity authentication method can also be applied to other types of applications, such as video applications, music applications, browser applications, and the like. This authentication method can also be added to a web page or website.

[0182] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0183] Based on the same inventive concept, the embodiment of the present application also provides an identity authentication device for implementing the identity authentication method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more identity authentication device embodiments provided below can refer to the limitations on the identity authentication method above, and will not be repeated here.

[0184] In one embodiment, Fig.13 As shown, an identity authentication device 1300 is provided, comprising: a request acquisition module 1302, a verification module 1304, a first credential update module 1306, a second credential generation module 1308 and a credential return module 1310, wherein:

[0185] The request acquisition module 1302 is used to acquire a target identity authentication request, where the target identity authentication request carries the current first type identity credential and the requester identifier;

[0186] Verification module 1304, used to obtain the target first type identity credential corresponding to the requester identifier, and perform consistency verification based on the current first type identity credential and the target first type identity credential;

[0187] A first credential updating module 1306, configured to update the target first type identity credential when the current first type identity credential is consistent with the target first type identity credential, to obtain an updated first type identity credential;

[0188] A second credential generation module 1308, configured to generate a target second type identity credential based on the updated first type identity credential, and generate a valid time period corresponding to the target second type identity credential;

[0189] The credential return module 1310 is used to return the updated first type identity credential and the target second type identity credential to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within a valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

[0190] In one embodiment, the request acquisition module 1302 includes:

[0191] The second credential expiration unit is used to obtain a current identity authentication request, which carries the current second type identity credential and the requester identifier; obtain the verified second type identity credential corresponding to the requester identifier, and when the current second type identity credential and the verified second type identity credential are consistent, obtain the first current time point; when the first current time point is not within the valid time period corresponding to the verified second type identity credential, generate the current second type identity credential expiration information, and return the current second type identity credential expiration information to the requester; obtain the target identity authentication request sent by the requester based on the current second type identity credential expiration information, and the target identity authentication request carries the current first type identity credential and the requester identifier.

[0192] In one embodiment, the request acquisition module 1302 further includes:

[0193] An initial verification unit is used to obtain an initial identity authentication request, the initial identity authentication request carries a requester identifier and a requester password; when the requester password is consistent with the verification password corresponding to the requester identifier, an initial first type identity credential and a valid time period corresponding to the initial first type identity credential are generated based on the requester password; an initial second type identity credential is generated based on the initial first type identity credential, and an initial time period corresponding to the initial second type identity credential is generated, the valid time period of the initial first type identity credential exceeds the initial time period corresponding to the initial second type identity credential; and the initial first type identity credential and the initial second type identity credential are returned to the requesting end.

[0194] In one embodiment, the identity verification device 1300 further includes:

[0195] The first credential return module is used to obtain a second current time point when the current first type identity credential and the target first type identity credential are inconsistent; when the second current time point is within a historical valid time period, obtain a historical first type identity credential corresponding to the target first type identity credential, the target first type identity credential is obtained after updating the historical first type identity credential, and the historical valid time period is a valid time period generated after the historical first type identity credential is updated; when the current first type identity credential is consistent with the historical first type identity credential, return the target first type identity credential to the requesting end.

[0196] In one embodiment, the identity verification device 1300 further includes:

[0197] The verification failure module is used to generate identity authentication failure information when the second current time point is not within the historical valid time period, and delete the historical first type identity certificate corresponding to the historical valid time period; and return the identity authentication failure information to the request end.

[0198] In one embodiment, the target identity authentication request also carries a current version identifier corresponding to the current first type identity credential; the identity authentication device 1300 further includes:

[0199] A version verification module is used to obtain the historical first type identity credential corresponding to the target first type identity credential and the historical version identifier corresponding to the historical first type identity credential when the current first type identity credential and the target first type identity credential are inconsistent; when the current first type identity credential and the historical first type identity credential are consistent and the current version identifier exceeds the historical version identifier, replace the historical version identifier with the current version identifier and return the target first type identity credential to the requesting end.

[0200] In one embodiment, the second credential generation module 1308 is further configured to generate a random time interval value, and use the random time value as a valid time period corresponding to the target second type identity credential.

[0201] In one embodiment, the identity verification device 1300 further includes:

[0202] The second credential verification module is used to obtain an updated identity authentication request, which carries a target second type identity credential and a requester identifier; obtain an updated second type identity credential corresponding to the requester identifier, and when the target second type identity credential and the updated second type identity credential are consistent, obtain a third current time point; when the third current time point is within a valid time period corresponding to the updated second type identity credential, generate identity authentication pass information, and return the identity authentication pass information to the requester.

[0203] In one embodiment, the request acquisition module 1302 is also used to obtain a target identity authentication request sent by the current device using the current first type identity credential and the requester identifier, where the current first type identity credential and the requester identifier are obtained by the current device from a historical device through data migration.

[0204] In one embodiment, the identity verification device 1300 further includes:

[0205] A password verification module is used to obtain a historical identity authentication request sent by a historical device, the historical identity authentication request carries the historical device hardware information, the requestor password and the requestor identifier; when the requestor password is consistent with the verification password corresponding to the requestor identifier, the current device hardware information corresponding to the requestor identifier is obtained; when the current device hardware information is inconsistent with the historical device hardware information, the historical device requestor identifier is generated based on the historical device hardware information, and the historical device first type identity credential is generated based on the requestor password; the historical device second type identity credential is generated based on the historical device first type identity credential, and the historical device valid time period corresponding to the historical device second type identity credential is generated; the historical device requestor identifier, the historical device first type identity credential and the historical device second type identity credential are returned to the historical device.

[0206] In one embodiment, the request acquisition module 1302 is further used to acquire a business service request, where the business service request carries the current first type identity credential and the requester identifier;

[0207] The first credential update module 1306 is further configured to respond to the business service request to perform a business service when the current first-type identity credential is consistent with the target first-type identity credential, obtain a service execution result, and update the target first-type identity credential to obtain an updated first-type identity credential;

[0208] The credential returning module 1310 is further configured to return the service execution result, the updated first type identity credential and the target second type identity credential to the requesting end corresponding to the requesting party identifier.

[0209] In one embodiment, the identity verification device 1300 further includes:

[0210] The business service module is used to obtain a target business service request, which carries a target second-type identity credential and a requester identifier; obtain the currently verified second-type identity credential corresponding to the requester identifier, and when the target second-type identity credential is consistent with the currently verified second-type identity credential, obtain the target current time point; when the target current time point is within the valid time period corresponding to the currently verified second-type identity credential, respond to the target business service request to perform business service execution and obtain the target service execution result; and return the target service execution result to the requester.

[0211] Each module in the above identity authentication device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0212] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.14 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store identity credential data and requester identification, etc. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an identity authentication method is implemented.

[0213] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.15 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an identity authentication method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0214] Those skilled in the art will understand that Fig.14 or Fig.15The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0215] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0216] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0217] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0218] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0219] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0220] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0221] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An identity authentication method, characterized in that: The method comprises: Obtaining a target identity authentication request, wherein the target identity authentication request carries a current first type identity credential and a requester identifier; Obtaining a target first-type identity credential corresponding to the requester identifier, and performing consistency verification based on the current first-type identity credential and the target first-type identity credential; When the current first-type identity credential is consistent with the target first-type identity credential, updating the target first-type identity credential to obtain an updated first-type identity credential; Generating a target second type identity credential based on the updated first type identity credential, and generating a valid time period corresponding to the target second type identity credential; The updated first type identity credential and the target second type identity credential are returned to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within the valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

2. The method according to claim 1, characterized in that The obtaining of the identity authentication request, wherein the identity authentication request carries the current first type identity credential and the requesting party identifier, includes: Obtaining a current identity authentication request, the current identity authentication request carrying a current second type identity credential and the requesting party identifier; Obtaining a verification second type identity credential corresponding to the requester identifier, and when the current second type identity credential is consistent with the verification second type identity credential, obtaining a first current time point; When the first current time point is not within the valid time period corresponding to the verification of the second type of identity credential, generating expiration information of the current second type of identity credential, and returning the expiration information of the current second type of identity credential to the requesting end; The target identity authentication request sent by the requesting end based on the expiration information of the current second type identity credential is obtained, where the target identity authentication request carries the current first type identity credential and the requesting party identifier.

3. The method according to claim 2, characterized in that Before obtaining the current identity authentication request, wherein the current identity authentication request carries the current second type identity credential and the requester identifier, the method further includes: Obtaining an initial identity authentication request, the initial identity authentication request carrying the requester identifier and the requester password; When the requester password is consistent with the verification password corresponding to the requester identifier, generating an initial first type identity credential and a valid time period corresponding to the initial first type identity credential based on the requester password; Generate an initial second type of identity credential based on the initial first type of identity credential, and generate an initial time period corresponding to the initial second type of identity credential, wherein the valid time period of the initial first type of identity credential exceeds the initial time period corresponding to the initial second type of identity credential; The initial first type identity credential and the initial second type identity credential are returned to the requesting end.

4. The method according to claim 1, characterized in that: The method further comprises: When the current first-type identity credential and the target first-type identity credential are not consistent, acquiring a second current time point; When the second current time point is within the historical valid time period, obtaining a historical first-type identity credential corresponding to the target first-type identity credential, the target first-type identity credential is obtained after the historical first-type identity credential is updated, and the historical valid time period is a valid time period generated after the historical identity credential information is updated; When the current first-type identity credential is consistent with the historical first-type identity credential, the target first-type identity credential is returned to the requesting end.

5. The method according to claim 4, characterized in that The method further comprises: When the second current time point is not within the historical valid time period, generating identity authentication failure information, and deleting the historical first type identity credential and the target first type identity credential corresponding to the historical valid time period; The identity verification failure information is returned to the requesting end.

6. The method according to claim 1, characterized in that The target identity authentication request also carries a current version identifier corresponding to the current first type identity credential; the method further includes: When the current first-type identity credential is inconsistent with the target first-type identity credential, obtaining a historical first-type identity credential corresponding to the target first-type identity credential, and obtaining a historical version identifier corresponding to the historical first-type identity credential; When the current first-type identity credential is consistent with the historical first-type identity credential and the current version identifier exceeds the historical version identifier, the historical version identifier is replaced with the current version identifier, and the target first-type identity credential is returned to the requesting end.

7. The method according to claim 1, characterized in that The generating of the valid time period corresponding to the target second type identity credential includes: A random time interval value is generated, and the random time value is used as a valid time period corresponding to the target second type identity credential.

8. The method according to claim 1, characterized in that After returning the updated first-type identity credential and the target second-type identity credential to the requesting end corresponding to the requesting party identifier, the method further includes: Obtain an identity authentication update request, wherein the identity authentication update request carries the target second type identity credential and the requesting party identifier; Obtaining an updated second-type identity credential corresponding to the requester identifier, and when the target second-type identity credential is consistent with the updated second-type identity credential, obtaining a third current time point; When the third current time point is within the valid time period corresponding to the updating of the second type of identity credential, identity authentication pass information is generated and the identity authentication pass information is returned to the requesting end.

9. The method according to claim 1, characterized in that: The obtaining of the target identity authentication request, wherein the target identity authentication request carries the current first type identity credential and the requesting party identifier, includes: A target identity authentication request sent by the current device using the current first-type identity credential and the requester identifier is obtained, where the current first-type identity credential and the requester identifier are obtained by the current device from a historical device through data migration.

10. The method according to claim 9, characterized in that The method further comprises: Obtaining a historical identity authentication request sent by the historical device, the historical identity authentication request carrying the historical device hardware information, the requester password and the requester identifier; When the requester password is consistent with the verification password corresponding to the requester identifier, obtaining the current device hardware information corresponding to the requester identifier; When the current device hardware information is inconsistent with the historical device hardware information, generating a historical device requester identifier based on the historical device hardware information, and generating a historical device first type identity credential based on the requester password; Generate a second type of historical device identity credential based on the first type of historical device identity credential, and generate a historical device validity period corresponding to the second type of historical device identity credential; The historical device requester identifier, the historical device first type identity credential and the historical device second type identity credential are returned to the historical device.

11. The method according to claim 1, characterized in that: The obtaining of the target identity authentication request, wherein the target identity authentication request carries the current first type identity credential and the requesting party identifier, includes: Obtaining a business service request, wherein the business service request carries the current first type identity credential and the requester identifier; When the current first-type identity credential is consistent with the target first-type identity credential, updating the target first-type identity credential to obtain an updated first-type identity credential includes: When the current first-type identity credential and the target first-type identity credential are consistent, respond to the business service request to perform a business service, obtain a service execution result, and update the target first-type identity credential to obtain an updated first-type identity credential; The step of returning the updated first-type identity credential and the target second-type identity credential to the requesting end corresponding to the requesting party identifier includes: The service execution result, the updated first type identity credential and the target second type identity credential are returned to the requesting end corresponding to the requesting party identifier.

12. The method according to claim 11, characterized in that After returning the service execution result, the updated first type identity credential and the target second type identity credential to the requesting end corresponding to the requesting party identifier, the method further includes: Obtaining a target business service request, the target business service request carrying the target second type identity credential and the requester identifier; Obtain the current verification second type identity credential corresponding to the requester identifier, and when the target second type identity credential is consistent with the current verification second type identity credential, obtain the target current time point; When the target current time point is within the valid time period corresponding to the currently verified second type identity credential, respond to the target business service request to perform business service execution and obtain a target service execution result; The target service execution result is returned to the requesting end.

13. An identity verification device, characterized in that: The device comprises: A request acquisition module, used to acquire a target identity authentication request, wherein the target identity authentication request carries a current first type of identity credential and a requester identifier; A verification module, configured to obtain a target first-type identity credential corresponding to the requester identifier, and perform consistency verification based on the current first-type identity credential and the target first-type identity credential; A first credential updating module, configured to update the target first type identity credential when the current first type identity credential is consistent with the target first type identity credential to obtain an updated first type identity credential; A second credential generation module, configured to generate a target second-type identity credential based on the updated first-type identity credential, and generate a valid time period corresponding to the target second-type identity credential; A credential return module is used to return the updated first type identity credential and the target second type identity credential to the requesting end corresponding to the requesting party identifier, the target second type identity credential is used to authenticate the requesting party identifier within the valid time period, and the updated first type identity credential is used to authenticate the requesting party identifier when the target second type identity credential expires.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

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