User identity identification method, device, electronic device and storage medium

Through the unified authentication center, the security risks and system coupling problems during identity identification between different channels are solved, and a more efficient and secure identity identification process is achieved.

CN113591047BActive Publication Date: 2024-11-19吉林亿联银行股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110891360.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-04
Publication Date
2024-11-19
Estimated Expiration
2041-08-04

AI Technical Summary

Technical Problem

In the jump interaction between different channels, the prior art has problems such as security risks and increased system coupling during user identity identification, especially by directly passing tokens (tickets) to increase information leakage risk and system complexity.

Method used

Through the unified authentication center, a temporary authentication identifier matches the client of the first channel is generated and sent to the client by the backend to reduce interaction between channels. Temporary authentication identifiers are used to avoid the channel's own token exposure and reduce the risk of information leakage.

Benefits of technology

It reduces coupling between channels, reduces the risk of information leakage, and improves the security and efficiency of identity identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113591047B_ABST
    Figure CN113591047B_ABST
Patent Text Reader

Abstract

This application provides a user identification method, apparatus, electronic device, and storage medium. In this method, when a client in a first channel requests to be redirected to a second channel, a unified authentication center generates a first temporary authentication identifier that matches the client in the first channel and returns the first temporary authentication identifier to the backend of the first channel. This allows the backend of the first channel to send the first temporary authentication identifier to the client in the first channel. The unified authentication center then responds to the authentication request from the second channel, verifies the legitimacy of the first temporary authentication identifier, and returns the authentication result to the backend of the second channel, thus completing the identification of the client in the first channel. The entire process reduces the interaction between the first and second channels, decreases the coupling between channels, and, by using a temporary authentication identifier, avoids exposing the channel's own token, reducing the risk of information leakage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a user identity recognition method, device, electronic device and storage medium. Background Art

[0002] When jumping and interacting between different channels on the same platform, it is necessary to identify the identities of channel users to ensure the security of the jump interaction. For example, channel A is doing an activity and promoting it on channels B and C at the same time. When users from channels B and C jump to channel A to complete the activity task, channel A needs to identify the identities of users from channels B and C.

[0003] At present, the method used to identify user identities between different channels is generally as follows: one channel sends its token (ticket) used for identity identification to another channel through the token (ticket) authentication interface, and the other channel verifies the received token through its background call to verify the token authentication interface to complete identity identification.

[0004] However, the above method has the following problems: (1) The token (ticket) used by the channel itself for user identity identification is directly passed to other channels, causing security problems and the risk of information leakage; (2) Channels need to provide each other with token authentication interfaces and call token authentication interfaces. If there are many channels, the system coupling between channels will also increase, increasing the complexity of the system. Summary of the invention

[0005] In order to solve the above technical problems, the embodiment of the present application provides a method and device for inputting distribution network equipment information, so as to achieve the purpose of improving the efficiency and accuracy of equipment information collection and input. The technical solution is as follows:

[0006] A user identity identification method, applied to a unified authentication center, comprising:

[0007] Receiving a temporary authentication token acquisition request sent by a backend of the first channel, wherein the temporary authentication token acquisition request is sent by a client of the first channel to the backend of the first channel when requesting to jump to a second channel;

[0008] In response to the temporary authentication identifier acquisition request, generate a first temporary authentication identifier that matches the client of the first channel, and return the first temporary authentication identifier to the backend of the first channel, so that the backend of the first channel sends the first temporary authentication identifier to the client of the first channel;

[0009] receiving an authentication request including the first temporary authentication identifier sent by a backend of the second channel, wherein the authentication request is sent by the backend of the second channel when a client of the first channel jumps to the second channel with the first temporary authentication identifier;

[0010] The legitimacy of the first temporary authentication identifier is authenticated, an authentication result is obtained, and the authentication result is returned to the background of the second channel.

[0011] Optionally, the background of the first channel sends the temporary authentication identifier acquisition request in the following manner:

[0012] The background of the first channel verifies the legitimacy of the request for obtaining the temporary authentication identifier;

[0013] If the temporary authentication mark acquisition request is legal, the temporary authentication mark acquisition request is sent to the unified authentication center.

[0014] Optionally, the step of responding to the temporary authentication identifier acquisition request and generating a first temporary authentication identifier that matches the client of the first channel includes:

[0015] In response to the temporary authentication identification acquisition request, the number of the first channel is acquired, and a unique user identification number is allocated to the client of the first channel;

[0016] Combining the timestamp, the unique identification number of the user and the number of the first channel to obtain a combination result;

[0017] The combination result is encrypted to obtain a first temporary authentication identifier.

[0018] Optionally, the authenticating the legitimacy of the first temporary authentication identifier to obtain an authentication result includes:

[0019] Decrypting the first temporary authentication identifier, and if the decryption fails, determining that the authentication result is that the first temporary authentication identifier is illegal;

[0020] If the decryption is successful, it is determined that the authentication result is that the first temporary authentication identifier is legal.

[0021] A user identity recognition device, applied to a unified authentication center, comprising:

[0022] A first receiving module, configured to receive a temporary authentication identifier acquisition request sent by a backend of a first channel, wherein the temporary authentication identifier acquisition request is sent by a client of the first channel to the backend of the first channel when requesting to jump to a second channel;

[0023] A generating module, configured to respond to the temporary authentication identifier acquisition request and generate a first temporary authentication identifier that matches the client of the first channel;

[0024] A first returning module, configured to return the first temporary authentication identifier to the backend of the first channel, so that the backend of the first channel sends the first temporary authentication identifier to the client of the first channel;

[0025] A second receiving module is used to receive an authentication request including the first temporary authentication identifier sent by the background of the second channel, wherein the authentication request is sent by the background of the second channel when the client of the first channel jumps to the second channel with the first temporary authentication identifier;

[0026] An authentication module, used to authenticate the legitimacy of the first temporary authentication identifier and obtain an authentication result;

[0027] The second returning module is used to return the authentication result to the background of the second channel.

[0028] Optionally, the generating module is specifically used for:

[0029] In response to the temporary authentication identification acquisition request, the number of the first channel is acquired, and a unique user identification number is allocated to the client of the first channel;

[0030] Combining the timestamp, the unique identification number of the user and the number of the first channel to obtain a combination result;

[0031] The combination result is encrypted to obtain a first temporary authentication identifier.

[0032] Optionally, the authentication module is specifically used to:

[0033] Decrypting the first temporary authentication identifier, and if the decryption fails, determining that the authentication result is that the first temporary authentication identifier is illegal;

[0034] If the decryption is successful, it is determined that the authentication result is that the first temporary authentication identifier is legal.

[0035] An electronic device comprising: a memory and a processor;

[0036] The memory is used to store at least one set of instruction sets;

[0037] The processor is used to call and execute the instruction set in the memory, and execute each step of the user identity identification method as described in any one of the above by executing the instruction set.

[0038] A storage medium stores a computer program for implementing any one of the user identification methods described above, wherein the computer program is executed by a processor to implement each step of the user identification method described above.

[0039] Compared with the prior art, the beneficial effects of this application are:

[0040] In the present application, when the client of the first channel requests to jump to the second channel, the unified authentication center generates a first temporary authentication identifier that matches the client of the first channel, and returns the first temporary authentication identifier to the background of the first channel, so that the background of the first channel sends the first temporary authentication identifier to the client of the first channel, and the unified authentication center responds to the authentication request of the second channel, authenticates the legitimacy of the first temporary authentication identifier, and returns the authentication result to the background of the second channel to complete the identity identification of the client of the first channel. The whole process reduces the interaction between the first channel and the second channel, reduces the coupling between channels, and uses a temporary authentication identifier to avoid the exposure of the channel's own token (ticket), thereby reducing the risk of information leakage. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 is a flow chart of a user identity identification method provided in Example 1 of the present application;

[0043] Figure 2 It is a schematic diagram of an interaction process provided by this application;

[0044] Figure 3 is a flow chart of a user identity identification method provided in Example 2 of the present application;

[0045] Figure 4 It is a logical structure diagram of a user identity recognition device provided by this application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0048] Reference Figure 1 , is a flowchart of a user identity identification method provided in Example 1 of the present application, which can be applied to a unified authentication center, such as Figure 1 As shown, the method may include but is not limited to the following steps:

[0049] Step S11: receiving a temporary authentication token acquisition request sent by the backend of the first channel, wherein the temporary authentication token acquisition request is sent by the client of the first channel to the backend of the first channel when requesting to jump to the second channel.

[0050] In this embodiment, when the client of the first channel requests to jump to the second channel, it can send a temporary authentication identifier acquisition request to the background of the first channel. The background of the first channel receives the temporary authentication identifier acquisition request and sends the temporary authentication identifier acquisition request to the unified authentication center.

[0051] In this embodiment, the backend of the first channel may send the temporary authentication identifier acquisition request in the following manner:

[0052] The background of the first channel verifies the legitimacy of the request for obtaining the temporary authentication identifier;

[0053] If the temporary authentication mark acquisition request is legal, the temporary authentication mark acquisition request is sent to the unified authentication center.

[0054] Step S12, respond to the temporary authentication identifier acquisition request, generate a first temporary authentication identifier that matches the client of the first channel, and return the first temporary authentication identifier to the background of the first channel, so that the background of the first channel sends the first temporary authentication identifier to the client of the first channel.

[0055] After receiving the temporary authentication identifier acquisition request sent by the background of the first channel, the unified authentication center responds to the temporary authentication identifier acquisition request, generates a first temporary authentication identifier that matches the client of the first channel, and returns the first temporary authentication identifier to the background of the first channel.

[0056] After receiving the first temporary authentication identifier, the backend of the first channel sends the first temporary authentication identifier to the client of the first channel.

[0057] Step S13: receiving an authentication request including the first temporary authentication identifier sent by the background of the second channel, wherein the authentication request is sent by the background of the second channel when the client of the first channel jumps to the second channel with the first temporary authentication identifier.

[0058] After receiving the first temporary authentication identifier, the client of the first channel jumps to the second channel with the first temporary authentication identifier. Accordingly, the background of the second channel sends the authentication request including the first temporary authentication identifier to the unified authentication center.

[0059] Correspondingly, the unified authentication center receives the authentication request including the first temporary authentication identifier sent by the background of the second channel.

[0060] Step S14: Authenticate the legitimacy of the first temporary authentication identifier, obtain an authentication result, and return the authentication result to the backend of the second channel.

[0061] The backend of the second channel receives the authentication result returned by the unified authentication center. If the authentication result is legal, the backend of the second channel can conduct normal business processing with the client of the second channel; if the authentication result is illegal, the backend of the second channel jumps to the failure page or the default page. The default page can be set according to the specific business and is not limited here.

[0062] Next, the interaction process between the first channel, the second channel and the unified authentication center is used to illustrate steps S11-S14. Figure 2 As shown, the interaction process between the first channel, the second channel and the unified authentication center may include:

[0063] S201, when requesting to jump to the second channel, the client of the first channel sends an authentication request to the backend of the first channel;

[0064] S202: The backend of the first channel sends the authentication request to the unified authentication center;

[0065] S203, the unified authentication center responds to the authentication request and generates a first temporary authentication identifier that matches the client of the first channel;

[0066] S204: The unified authentication center returns the first temporary authentication identifier to the backend of the first channel;

[0067] S205: The backend of the first channel sends the first temporary authentication identifier to the client of the first channel;

[0068] S206: The client of the first channel carries the first temporary authentication identifier and jumps to the backend of the second channel;

[0069] S207: The backend of the second channel sends the first temporary authentication identifier to the unified authentication center;

[0070] S208, the unified authentication center authenticates the legitimacy of the first temporary authentication identifier and obtains an authentication result;

[0071] S209. The unified authentication center returns the authentication result to the backend of the second channel.

[0072] In the present application, when the client of the first channel requests to jump to the second channel, the unified authentication center generates a first temporary authentication identifier that matches the client of the first channel, and returns the first temporary authentication identifier to the background of the first channel, so that the background of the first channel sends the first temporary authentication identifier to the client of the first channel, and the unified authentication center responds to the authentication request of the second channel, authenticates the legitimacy of the first temporary authentication identifier, and returns the authentication result to the background of the second channel to complete the identity identification of the client of the first channel. The whole process reduces the interaction between the first channel and the second channel, reduces the coupling between channels, and uses a temporary authentication identifier to avoid the exposure of the channel's own token (ticket), thereby reducing the risk of information leakage.

[0073] As another optional embodiment of the present application, refer to Figure 3 , is a flow chart of a user identity identification method provided in Example 2 of the present application. This embodiment is mainly a detailed solution of the user identity identification method described in the above Example 1, such as Figure 3 As shown, the method may include but is not limited to the following steps:

[0074] Step S21: receiving a temporary authentication token acquisition request sent by a backend of the first channel, wherein the temporary authentication token acquisition request is sent by the client of the first channel to the backend of the first channel when requesting to jump to the second channel.

[0075] Step S22: respond to the temporary authentication identifier acquisition request, acquire the first channel number, and allocate a user unique identification number to the first channel client.

[0076] Step S23: Combine the timestamp, the unique user identification number and the number of the first channel to obtain a combination result.

[0077] The timestamp can be understood as: the timestamp corresponding to the current moment.

[0078] Step S24: encrypt the combination result to obtain a first temporary authentication identifier.

[0079] Step S25: Return the first temporary authentication identifier to the backend of the first channel, so that the backend of the first channel sends the first temporary authentication identifier to the client of the first channel.

[0080] Steps S22-S25 are a specific implementation of step S12 in Example 1.

[0081] Step S26: receiving an authentication request including the first temporary authentication identifier sent by the background of the second channel, wherein the authentication request is sent by the background of the second channel when the client of the first channel carries the first temporary authentication identifier and jumps to the second channel.

[0082] Step S27: decrypt the first temporary authentication identifier. If the decryption fails, the authentication result is determined to be that the first temporary authentication identifier is illegal; if the decryption succeeds, the authentication result is determined to be that the first temporary authentication identifier is legal.

[0083] Step S28: Return the authentication result to the backend of the second channel.

[0084] Steps S27-S28 are a specific implementation of step S14 in Example 1.

[0085] In this embodiment, by obtaining the number of the first channel and assigning a user unique identification number to the client of the first channel, the timestamp, the user unique identification number and the number of the first channel are combined to obtain a combined result, the uniqueness of the combined result is ensured, and the combined result is encrypted to obtain a first temporary authentication identifier, thereby raising the attack threshold and increasing system security.

[0086] Next, the user identity recognition device provided by the present application is introduced. The user identity recognition device introduced below and the user identity recognition method introduced above can be referenced to each other.

[0087] See also Figure 4 The user identity recognition device includes: a first receiving module 100, a generating module 200, a first returning module 300, a second receiving module 400, an authenticating module 500 and a second returning module 600.

[0088] The first receiving module 100 is used to receive a temporary authentication identifier acquisition request sent by the backend of the first channel, where the temporary authentication identifier acquisition request is sent by the client of the first channel to the backend of the first channel when requesting to jump to the second channel;

[0089] A generating module 200, configured to respond to the temporary authentication identifier acquisition request and generate a first temporary authentication identifier that matches the client of the first channel;

[0090] A first returning module 300 is used to return the first temporary authentication identifier to the backend of the first channel, so that the backend of the first channel sends the first temporary authentication identifier to the client of the first channel;

[0091] The second receiving module 400 is used to receive an authentication request including the first temporary authentication identifier sent by the background of the second channel, wherein the authentication request is sent by the background of the second channel when the client of the first channel jumps to the second channel with the first temporary authentication identifier;

[0092] The authentication module 500 is used to authenticate the legitimacy of the first temporary authentication identifier and obtain an authentication result;

[0093] The second returning module 600 is used to return the authentication result to the backend of the second channel.

[0094] In this embodiment, the generating module 200 may be specifically used for:

[0095] In response to the temporary authentication identification acquisition request, the number of the first channel is acquired, and a unique user identification number is allocated to the client of the first channel;

[0096] Combining the timestamp, the unique identification number of the user and the number of the first channel to obtain a combination result;

[0097] The combination result is encrypted to obtain a first temporary authentication identifier.

[0098] In this embodiment, the authentication module 500 can be specifically used for:

[0099] Decrypting the first temporary authentication identifier, and if the decryption fails, determining that the authentication result is that the first temporary authentication identifier is illegal;

[0100] If the decryption is successful, it is determined that the authentication result is that the first temporary authentication identifier is legal.

[0101] In another embodiment of the present application, an electronic device is provided, including: a memory and a processor;

[0102] The memory is used to store at least one set of instruction sets;

[0103] The processor is used to call and execute the instruction set in the memory, and execute the steps of the user identity identification method introduced in the above embodiments by executing the instruction set.

[0104] In another embodiment of the present application, a storage medium is provided, storing a computer program for implementing the user identity identification method as described in the above embodiments, and the computer program is executed by a processor to implement the steps of the user identity identification method as described in the above embodiments.

[0105] It should be noted that each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0106] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or electronic device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or electronic device. In the absence of further restrictions, the elements defined by the sentence "comprises one..." do not exclude the presence of other identical elements in the process, method, article or electronic device including the elements.

[0107] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0108] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer electronic device (which can be a personal computer, a server, or a network electronic device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0109] The above is a detailed introduction to a user identity identification method, device, electronic device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A user identification method, It is characterized in that Applied to a unified authentication center, the method includes: Receiving a temporary authentication token acquisition request sent by a backend of the first channel, wherein the temporary authentication token acquisition request is sent by a client of the first channel to the backend of the first channel when requesting to jump to a second channel; In response to the temporary authentication identifier acquisition request, generate a first temporary authentication identifier that matches the client of the first channel, and return the first temporary authentication identifier to the backend of the first channel, so that the backend of the first channel sends the first temporary authentication identifier to the client of the first channel; receiving an authentication request including the first temporary authentication identifier sent by a backend of the second channel, wherein the authentication request is sent by the backend of the second channel when a client of the first channel jumps to the second channel with the first temporary authentication identifier; Authenticate the legitimacy of the first temporary authentication identifier, obtain an authentication result, and return the authentication result to the backend of the second channel; The step of responding to the temporary authentication identifier acquisition request and generating a first temporary authentication identifier that matches the client of the first channel includes: In response to the temporary authentication identifier acquisition request, the number of the first channel is acquired, and a unique user identification number is allocated to the client of the first channel; Combining the timestamp, the unique identification number of the user and the number of the first channel to obtain a combination result; The combination result is encrypted to obtain a first temporary authentication identifier.

2. The method according to claim 1, It is characterized in that The backend of the first channel sends the temporary authentication identifier acquisition request in the following manner: The background of the first channel verifies the legitimacy of the request for obtaining the temporary authentication identifier; If the temporary authentication identifier acquisition request is legal, the temporary authentication identifier acquisition request is sent to the unified authentication center.

3. The method according to claim 1, It is characterized in that The step of authenticating the legitimacy of the first temporary authentication identifier and obtaining an authentication result includes: Decrypting the first temporary authentication identifier, and if the decryption fails, determining that the authentication result is that the first temporary authentication identifier is illegal; If the decryption is successful, it is determined that the authentication result is that the first temporary authentication identifier is legal.

4. A user identification device, It is characterized in that Applied to a unified authentication center, the device includes: A first receiving module, configured to receive a temporary authentication identifier acquisition request sent by a backend of a first channel, wherein the temporary authentication identifier acquisition request is sent by a client of the first channel to the backend of the first channel when requesting to jump to a second channel; A generating module, configured to respond to the temporary authentication identifier acquisition request and generate a first temporary authentication identifier that matches the client of the first channel; A first returning module, configured to return the first temporary authentication identifier to the backend of the first channel, so that the backend of the first channel sends the first temporary authentication identifier to the client of the first channel; A second receiving module is used to receive an authentication request including the first temporary authentication identifier sent by the background of the second channel, wherein the authentication request is sent by the background of the second channel when the client of the first channel jumps to the second channel with the first temporary authentication identifier; An authentication module, used to authenticate the legitimacy of the first temporary authentication identifier and obtain an authentication result; A second returning module, used for returning the authentication result to the backend of the second channel; The generation module is specifically used for: In response to the temporary authentication identifier acquisition request, the number of the first channel is acquired, and a unique user identification number is allocated to the client of the first channel; Combining the timestamp, the unique identification number of the user and the number of the first channel to obtain a combination result; The combination result is encrypted to obtain a first temporary authentication identifier.

5. The device according to claim 4, It is characterized in that The authentication module is specifically used for: Decrypting the first temporary authentication identifier, and if the decryption fails, determining that the authentication result is that the first temporary authentication identifier is illegal; If the decryption is successful, it is determined that the authentication result is that the first temporary authentication identifier is legal.

6. An electronic device, It is characterized in that include: Memory and processor; The memory is used to store at least one set of instruction sets; The processor is used to call and execute the instruction set in the memory, and execute the steps of the user identity identification method as described in any one of claims 1 to 3 by executing the instruction set.

7. A storage medium, It is characterized in that A computer program for implementing the user identification method according to any one of claims 1 to 3 is stored, and the computer program is executed by a processor to implement each step of the user identification method according to any one of claims 1 to 3.