CN114979048B - Identity verification method, system, electronic device and medium based on instant messaging - Google Patents

Identity verification method, system, electronic device and medium based on instant messaging Download PDF

Info

Publication number
CN114979048B
CN114979048B CN202210919113.6A CN202210919113A CN114979048B CN 114979048 B CN114979048 B CN 114979048B CN 202210919113 A CN202210919113 A CN 202210919113A CN 114979048 B CN114979048 B CN 114979048B
Authority
CN
China
Prior art keywords
information
verification
instant messaging
client
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210919113.6A
Other languages
Chinese (zh)
Other versions
CN114979048A (en
Inventor
李奇峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mingyuan Cloud Technology Co Ltd
Original Assignee
Shenzhen Mingyuan Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mingyuan Cloud Technology Co Ltd filed Critical Shenzhen Mingyuan Cloud Technology Co Ltd
Priority to CN202210919113.6A priority Critical patent/CN114979048B/en
Publication of CN114979048A publication Critical patent/CN114979048A/en
Application granted granted Critical
Publication of CN114979048B publication Critical patent/CN114979048B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Abstract

The application discloses an identity authentication method, system, electronic equipment and medium based on instant messaging, which are applied to a client, wherein the method comprises the following steps: the method comprises the steps of obtaining user information through an application program, generating verification request information according to the user information, sending the verification request information to an instant messaging server, obtaining first verification information received through the application program and second verification information received through instant messaging software, and if receiving to-be-verified information input by a user, carrying out identity verification according to the first verification information and the to-be-verified information. The method and the device solve the technical problem that the operation cost of the identity authentication in the application program is higher.

Description

Identity verification method, system, electronic device and medium based on instant messaging
Technical Field
The present application relates to the field of network communication technologies, and in particular, to an identity authentication method and system based on instant messaging, an electronic device, and a medium.
Background
With the continuous development of internet communication technology, users enjoy the convenience of the mobile communication era, and various application programs are developed, so that the application of the authentication method of the client is more and more extensive. At present, the identity authentication method of the client usually adopts a form of sending a short message, and if a user performs a login operation, the user usually acquires a short message authentication code first and inputs the acquired short message authentication code into the client to complete the identity authentication. However, there is a certain expense for completing the sending of the authentication code by the short message service operator, and the more authentication codes are sent, the more expense is generated, thereby causing a problem that the cost of the application authentication is high.
Disclosure of Invention
The present application mainly aims to provide an identity authentication method, system, electronic device and medium based on instant messaging, and aims to solve the technical problem of high cost of application identity authentication in the prior art.
In order to achieve the above object, the present application provides an identity authentication method based on instant messaging, which is applied to a client, and the identity authentication method based on instant messaging includes:
acquiring user information through an application program, and generating verification request information according to the user information;
sending the verification request information to an instant messaging server so that the instant messaging server can generate corresponding verification information, and sending the verification information to the application program and instant messaging software respectively;
acquiring first verification information received by the application program and second verification information received by the instant messaging software, wherein the instant messaging software is used for pushing the second verification information to a user;
and if receiving information to be verified input by a user, performing identity verification according to the first verification information and the information to be verified.
Optionally, the step of sending the verification request message to an instant messaging server includes:
calling a preset API (Application Programming Interface) to establish a communication connection channel with the instant communication server;
and sending the verification request information to the instant messaging server according to the communication connection channel so that the instant messaging server can generate corresponding verification information.
The application also provides an identity authentication method based on instant messaging, which is applied to an instant messaging server and comprises the following steps:
if receiving verification request information sent by a client, generating corresponding verification information according to the verification request information;
and respectively sending the verification information to an application program of the client and instant messaging software of the client so that the client can carry out identity verification on the information to be verified input by the user according to the verification information.
Optionally, if verification request information sent by a client is received, the step of generating corresponding verification information according to the verification request information includes:
if receiving verification request information sent by a client, verifying the verification request information according to preset client configuration information;
and if the verification passes, generating corresponding verification information according to the verification request information, wherein the verification information is used for carrying out identity verification together with the information to be verified.
Optionally, the preset client configuration information includes authorized client information and authorized API information, the verification request information includes preset API information requested by the client, and the step of verifying the verification request information according to the preset client configuration information includes:
judging whether the client is an authorized client or not according to the client information corresponding to the client and the authorized client information;
if the client is an authorized client, judging whether the preset API information is an authorized API or not according to the preset API information and the authorized API information;
and if the preset API information is the authorized API, determining that the verification request information passes the verification.
Optionally, the verification request information includes client identification information, a timestamp, and user information, and the step of generating corresponding verification information according to the verification request information and the user information includes:
and generating the verification information according to the client identification information, the timestamp and the user information through a preset verification information rule.
Optionally, the verification request information includes user information, and the step of sending the verification information to the application program of the client and the instant messaging software of the client respectively includes:
sending the verification information to the application program through a preset API (application programming interface) so that the client can carry out identity verification on the information to be verified input by the user according to the verification information;
judging whether the user information has a corresponding instant messaging account;
and if so, sending the verification information to instant messaging software corresponding to the instant messaging account, wherein the verification information is used for verifying the identity of the client user.
The present application further provides an instant messaging based identity authentication system, which includes a client and an instant messaging server, and the instant messaging based identity authentication system includes:
the client is used for acquiring user information through an application program, generating verification request information according to the user information, sending the verification request information to an instant messaging server, acquiring first verification information received through the application program and second verification information received through instant messaging software, and if receiving to-be-verified information input by a user, performing identity verification according to the first verification information and the to-be-verified information;
the instant messaging server is used for generating corresponding verification information according to verification request information if the verification request information sent by the client is received; and respectively sending the verification information to an application program of the client and instant messaging software of the client.
Optionally, the client includes:
the request module is used for acquiring user information through an application program and generating verification request information according to the user information;
the sending module is used for sending the verification request information to an instant messaging server so that the instant messaging server can generate corresponding verification information, and the verification information is respectively sent to the application program and the instant messaging software;
the receiving module is used for acquiring first verification information received by the application program and second verification information received by the instant messaging software, wherein the instant messaging software is used for pushing the second verification information to a user;
and the verification module is used for performing identity verification according to the first verification information and the information to be verified if the information to be verified input by the user is received.
Optionally, the sending module is further configured to:
calling a preset API (application program interface) to establish a communication connection channel with the instant communication server;
and sending the verification request information to the instant messaging server according to the communication connection channel so that the instant messaging server can generate corresponding verification information.
Optionally, the instant messaging server includes:
the generation module is used for generating corresponding verification information according to the verification request information if the verification request information sent by the client is received;
the return module is used for sending the verification information to the client so that the client can carry out identity verification on the information to be verified input by the user according to the verification information;
and the pushing module is used for respectively sending the verification information to an application program of the client and instant messaging software of the client so as to enable the client to carry out identity verification on the information to be verified input by the user according to the verification information.
Optionally, the generating module is further configured to:
if receiving verification request information sent by a client, verifying the verification request information according to preset client configuration information;
and if the verification passes, generating corresponding verification information according to the verification request information, wherein the verification information is used for carrying out identity verification together with the information to be verified.
Optionally, the generating module is further configured to:
judging whether the client is an authorized client or not according to the client information corresponding to the client and the authorized client information;
if the client is an authorized client, judging whether the preset API information is an authorized API or not according to the preset API information and the authorized API information;
and if the preset API information is the authorized API, determining that the verification request information passes the verification.
Optionally, the generating module is further configured to:
and generating the verification information according to the client identification information, the timestamp and the user information through a preset verification information rule.
Optionally, the pushing module is further configured to:
sending the verification information to the application program through a preset API (application programming interface) so that the client can carry out identity verification on the information to be verified input by the user according to the verification information;
judging whether the user information has a corresponding instant messaging account;
if yes, the verification information is sent to instant messaging software corresponding to the instant messaging account, so that a user corresponding to the user information can input the verification information into the client side for identity verification.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing an instant messaging based authentication method, which when executed by a processor implements the steps of the instant messaging based authentication method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the instant messaging based authentication method as described above.
The method applied to the client comprises the steps of firstly obtaining user information, generating verification request information according to the user information, then sending the verification request information to an instant messaging server, further receiving the verification information sent by the instant messaging server, and completing identity verification according to the verification information and the to-be-verified information when receiving the input to-be-verified information; the method applied to the instant messaging server comprises the steps of firstly generating corresponding verification information according to the verification request information if the verification request information sent by a client is received, then sending the verification information to the client, and then sending the verification information to an instant messaging software account corresponding to the user information according to the user information in the verification request information. According to the method and the system, the instant messaging server and the instant messaging software account are adopted to send the verification information of the application program client, so that compared with the prior art that a short message verification code is sent by a short message operator, the short message cost is saved, and the operation cost of identity verification in the application program is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a first embodiment of an instant messaging based identity authentication method according to the present application;
FIG. 2 is a flowchart illustrating a second embodiment of an instant messaging based authentication method according to the present application;
fig. 3 is a schematic device structure diagram of a hardware operating environment related to an identity authentication method based on instant messaging in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments of the present application are described in detail below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
Example one
With the continuous development of internet communication technology, a great number of users enjoy the convenience of the mobile communication era, various application programs are developed, the life of the users is enriched, and meanwhile, the application of the authentication method of the client side is more and more extensive. At present, the identity authentication method of the client usually adopts a form of sending a short message, and if a user performs a login operation, the user usually acquires a short message authentication code first and inputs the acquired short message authentication code into the client to complete the identity authentication. However, there is a certain expense for completing the sending of the authentication code by the short message service operator, and the more authentication codes are sent, the more expense is generated, thereby causing a problem that the cost of the authentication in the application program is high.
An embodiment of the present application provides an identity authentication method based on instant messaging, which is applied to a client, and in a first embodiment of the identity authentication method based on instant messaging according to fig. 1, the identity authentication method based on instant messaging includes:
step S10, obtaining user information through an application program, and generating verification request information according to the user information;
step S20, the verification request information is sent to an instant messaging server so that the instant messaging server can generate corresponding verification information, and the verification information is sent to the application program and the instant messaging software respectively;
step S30, acquiring first verification information received by the application program and second verification information received by the instant messaging software, wherein the instant messaging software is used for pushing the second verification information to a user;
and step S40, if the information to be verified input by the user is received, completing the identity verification according to the first verification information and the information to be verified.
In this embodiment, it should be noted that the application program is an application program in which a user logs in or performs other operations on an identity to be verified, the user information may include a user name, a user account, a login password, and other information, the verification request information may be user login information, the Instant messaging server is a server corresponding to IM (Instant messaging) software, the Instant messaging software is configured to push a verification code message for the user, the verification information may be in a digital form or other forms, the first verification information is packaged verification information that is invisible to the user, and is used for comparing the verification information with verification information input by the user after being analyzed, so as to perform identity verification.
As an example, steps S10 to S40 include: acquiring user information input by a user in an application program, and generating verification request information according to the user information and other information of a client, wherein the verification request information comprises the user information; the verification request information is sent to an instant messaging server by calling a preset API corresponding to the instant messaging server, so that the instant messaging server generates corresponding verification information according to the verification request information and sends the verification information back to the client; receiving first verification information sent by the instant messaging server through the application program, analyzing the first verification information, and generating analysis verification information for carrying out identity verification together with to-be-verified information input by a user; receiving second verification information through the instant messaging software, and pushing the second verification information for the user; when receiving information to be verified input by a user, comparing the information to be verified with the analysis verification information; if the information to be verified is inconsistent with the analysis verification information, the verification is unsuccessful; and if the information to be verified is consistent with the analysis verification information, the verification is successful.
Wherein the step of sending the verification request information to an instant messaging server comprises:
step S21, calling a preset API (application program interface) to establish a communication connection channel with the instant communication server;
and step S22, sending the verification request information to the instant messaging server according to the communication connection channel so that the instant messaging server can generate corresponding verification information.
In this embodiment, it should be noted that the preset API may be an application program interface API corresponding to a message pushing function in the instant messaging server, and is configured to send a message to the instant messaging server and drive the instant messaging server to send corresponding verification information to an instant messaging software end corresponding to the user information.
As an example, steps S21 to S22 include: calling an Application Program Interface (API) corresponding to a message pushing function in the instant messaging server to establish a communication connection channel with the instant messaging server; and sending the verification request information to the instant messaging server through the communication connection channel so that the instant messaging server can generate verification information corresponding to the verification request information.
The embodiment of the application provides an identity authentication method based on instant messaging, which is applied to a client, firstly, user information is obtained through an application program, authentication request information is generated according to the user information, the authentication request information is sent to an instant messaging server, first authentication information received through the application program and second authentication information received through instant messaging software are obtained, if information to be authenticated input by a user is received, identity authentication is carried out according to the first authentication information and the information to be authenticated, the embodiment adopts a mode of sending the authentication information through the instant messaging server, compared with a mode of sending a short message authentication code through a short message operator in the prior art, short message cost is saved, and the operation cost of identity authentication in the application program is reduced.
Example two
Further, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated herein. On this basis, an identity authentication method based on instant messaging is provided, which is applied to an instant messaging server, and with reference to fig. 2, the identity authentication method based on instant messaging includes:
step A10, if receiving verification request information sent by a client, generating corresponding verification information according to the verification request information;
and step A20, respectively sending the verification information to an application program of a client and instant messaging software of the client, so that the client can perform identity verification on the information to be verified input by the user according to the verification information.
As an example, steps a10 to a20 include: if receiving verification request information sent by a client, the verification request information comprises user information; verifying the verification request information, and if the verification passes, generating verification information according to the verification request information, wherein the verification information is a verification code; sending the verification information to an application program of the client through a preset API (application program interface); inquiring an instant messaging software account corresponding to the user information according to the user information in the verification request information; and sending the verification information to the instant messaging software account according to the instant messaging software account so that a user can input the verification information into the client to complete identity verification.
If receiving verification request information sent by a client, the step of generating corresponding verification information according to the verification request information comprises the following steps:
step A11, if receiving verification request information sent by a client, verifying the verification request information according to preset client configuration information;
and A12, if the authentication is passed, generating corresponding authentication information according to the authentication request information, wherein the authentication information is used for identity authentication.
In this embodiment, it should be noted that the preset client configuration information may include authorized client information, authorized API information, and the like, and is used to verify whether the client sending the verification request information is an authorized client.
As an example, steps a11 to a12 include: if verification request information sent by a client is received, comparing the verification request information according to authorization client information and authorization API information in the preset client configuration information, verifying whether the client is an authorization client and verifying whether the client passes the verification request information sent by the authorization API; if the client is an authorized client and the client is not the verification request information sent by the authorization API, the verification of the verification request information is not passed; if the client is not an authorized client and the client is verification request information sent through an authorized API, the verification of the verification request information is not passed; if the client is not an authorized client and the client is not verification request information sent through an authorized API, the verification of the verification request information is not passed; if the client is an authorized client and the client is verification request information sent through an authorization API, the verification request information passes verification; and if the verification request information passes the verification, generating verification information according to a preset verification information generation algorithm and the verification request information so that the client can carry out identity verification according to the verification information and the verification information input by the user.
The step of verifying the verification request information according to preset client configuration information comprises the following steps:
step A111, according to the client information corresponding to the client and the authorization client information, determining whether the client is an authorization client;
step A112, if the client is an authorized client, judging whether the preset API information is an authorized API according to the preset API information and the authorized API information;
step a113, if the preset API information is the authorization API, determining that the verification request information passes verification.
In this embodiment, it should be noted that the verification request information may include client information and preset API information requested by the client, so that the instant messaging server verifies the verification request information.
As an example, step a111 to step a113 include: retrieving the client information in the authorized client information, wherein if the client information cannot be retrieved, the client is not an authorized client; if the client information can be retrieved, the client is an authorized client; under the condition that the client is an authorized client, retrieving the preset API information from the authorized API information, wherein if the preset API information cannot be retrieved, the preset API is not an authorized API; and if the preset API information can be retrieved, the preset API is an authorized API, and the verification request information passes the verification.
Wherein the step of generating corresponding authentication information according to the authentication request information comprises:
step A121, generating the verification information according to the client identification information, the timestamp and the user information by a preset verification information rule.
In this embodiment, it should be noted that the authentication request information may include client identification information, a timestamp, user information, and the like, and is used by the instant messaging server to generate corresponding authentication information, and the preset authentication information rule may be various hash algorithms, such as a hash algorithm, and is used to generate a fixed-length authentication code according to the client identification information, the timestamp, the user information, and the like.
As an example, step a121 includes: and calculating to obtain an operation result by taking the client identification information, the timestamp and account information in the user information as parameters of a hash algorithm, wherein the operation result is the verification information.
For example, the client flag information may be 1234567, the timestamp may include specific year, month, day, hour, minute, second 20220714150103, and the account information may be ABC, so that the character string obtained by sorting the parameter information may be 123456720220714150103ABC; and performing hash operation on the character string, wherein the hash operation can adopt an MD5 algorithm or an SHA-1 algorithm, calculating to obtain a first operation result, and taking the first operation result as verification information.
In another practical embodiment, step a121 includes: and processing the client identification information, the timestamp and the account information in the user information through a random screening algorithm to generate a six-digit verification code, wherein the six-digit verification code is the verification information.
For example, the client identification information may be 1234567, the timestamp may include specific year, month, day, hour, minute, second 20220714150103, and the account information may be ABC, and then, the parameter information is randomly screened to extract "14" in the client identification information, "73" in the timestamp, and "B" in the account information, so as to obtain a five-digit verification code: 1473B, and using the five-digit verification code as verification information.
The step of sending the verification information to the application program of the client and the instant messaging software of the client respectively comprises the following steps:
step A21, sending the verification information to the application program through a preset API (application programming interface) so that the client can carry out identity verification on the information to be verified input by a user according to the verification information;
step A22, judging whether the user information has a corresponding instant messaging account;
and step A23, if yes, sending the verification information to instant messaging software corresponding to the instant messaging account so that a user can input the verification information into the client to perform identity verification.
In this embodiment, it should be noted that the verification request information includes user information, where the user information may be account information, including mobile phone number information, and is used to retrieve whether the mobile phone number has a corresponding instant messaging account.
As an example, steps a21 to a23 include: calling a preset API, and sending the verification information to an application program of a client so that the application program in the client can verify the information to be verified input by a user according to the verification information; searching whether corresponding instant messaging account information exists according to the mobile phone number information in the user information, and prompting that an instant messaging account corresponding to the mobile phone number needs to be registered if the corresponding instant messaging account information does not exist; and if the corresponding instant messaging account information exists, sending the verification information to instant messaging software corresponding to the instant messaging account so that the user can input the verification information into a client side for identity verification.
The embodiment of the application provides an identity authentication method based on instant messaging, which is applied to an instant messaging server, and comprises the steps of firstly, if authentication request information sent by a client is received, generating corresponding authentication information according to the authentication request information; and respectively sending the verification information to an application program of the client and instant messaging software of the client so that the client can carry out identity verification on the information to be verified input by the user according to the verification information. In the embodiment, the verification information of the application program client is sent by adopting the instant messaging server and the instant messaging software account, so that the short message cost is saved and the operation cost of identity verification in the application program is reduced compared with the prior art that a short message verification code is sent by a short message operator.
EXAMPLE III
An embodiment of the present application further provides an identity authentication system based on instant messaging, including a client and an instant messaging server, where the identity authentication system based on instant messaging includes:
the client is used for acquiring user information through an application program, generating verification request information according to the user information, sending the verification request information to an instant messaging server, acquiring first verification information received through the application program and second verification information received through instant messaging software, and if receiving to-be-verified information input by a user, performing identity verification according to the first verification information and the to-be-verified information;
the instant messaging server is used for generating corresponding verification information according to verification request information if the verification request information sent by the client is received; and respectively sending the verification information to an application program of the client and instant messaging software of the client.
Optionally, the client includes:
the request module is used for acquiring user information through an application program and generating verification request information according to the user information;
the sending module is used for sending the verification request information to an instant messaging server so that the instant messaging server can generate corresponding verification information, and the verification information is respectively sent to the application program and the instant messaging software;
the receiving module is used for acquiring first verification information received by the application program and second verification information received by the instant messaging software, wherein the instant messaging software is used for pushing the second verification information to a user;
and the verification module is used for performing identity verification according to the first verification information and the information to be verified if the information to be verified input by the user is received.
Optionally, the sending module is further configured to:
calling a preset API (application program interface) to establish a communication connection channel with the instant communication server;
and sending the verification request information to the instant messaging server according to the communication connection channel so that the instant messaging server can generate corresponding verification information.
Optionally, the instant messaging server includes:
the generation module is used for generating corresponding verification information according to the verification request information if the verification request information sent by the client is received;
the return module is used for sending the verification information to the client so that the client can carry out identity verification on the information to be verified input by the user according to the verification information;
and the push module is used for respectively sending the verification information to an application program of the client and instant messaging software of the client so that the client can carry out identity verification on the information to be verified input by the user according to the verification information.
Optionally, the generating module is further configured to:
if receiving verification request information sent by a client, verifying the verification request information according to preset client configuration information;
and if the verification passes, generating corresponding verification information according to the verification request information, wherein the verification information is used for carrying out identity verification together with the information to be verified.
Optionally, the generating module is further configured to:
judging whether the client is an authorized client or not according to the client information corresponding to the client and the authorized client information;
if the client is an authorized client, judging whether the preset API information is an authorized API or not according to the preset API information and the authorized API information;
and if the preset API information is the authorized API, determining that the verification request information passes the verification.
Optionally, the generating module is further configured to:
and generating the verification information according to the client identification information, the timestamp and the user information through a preset verification information rule.
Optionally, the pushing module is further configured to:
sending the verification information to the application program through a preset API (application programming interface) so that the client can carry out identity verification on the information to be verified input by the user according to the verification information;
judging whether the user information has a corresponding instant messaging account;
if yes, the verification information is sent to instant messaging software corresponding to the instant messaging account, so that a user corresponding to the user information can input the verification information into the client side for identity verification.
The identity authentication system based on instant messaging provided by the application adopts the identity authentication method based on instant messaging in the embodiment, so that the technical problem that the operation cost of identity authentication in an application program is higher is solved. Compared with the prior art, the beneficial effects of the identity verification system based on instant messaging provided by the embodiment of the present application are the same as those of the identity verification method based on instant messaging provided by the above embodiment, and other technical features of the identity verification system based on instant messaging are the same as those disclosed in the method of the previous embodiment, and are not described herein again.
Example four
An embodiment of the present application provides an electronic device, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the instant messaging based identity authentication method in the first embodiment.
Referring now to FIG. 3, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device may include a processing system (e.g., central processing unit, graphics processor, etc.) that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) or a program loaded from a storage system into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing system, ROM and RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input systems including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output systems including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage systems including, for example, magnetic tape, hard disk, etc.; and a communication system. The communication system may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is understood that implementing or having all of the illustrated systems is not a requirement. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network over a communication system, or installed from a storage system, or installed from a ROM. The computer program, when executed by a processing system, performs the functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the application adopts the identity authentication method based on instant messaging in the embodiment, so that the technical problem that the operation cost of identity authentication in an application program is relatively high is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the identity authentication method based on instant messaging provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the previous embodiment, which are not described herein again.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
EXAMPLE five
The present embodiment provides a computer-readable storage medium having stored thereon computer-readable program instructions for executing the method for instant messaging based identity verification in the first embodiment.
The computer readable storage medium provided by the embodiments of the present application may be, for example, a usb disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the above. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring user information through an application program, generating verification request information according to the user information, sending the verification request information to an instant messaging server, acquiring first verification information received through the application program and second verification information received through instant messaging software, and if receiving to-be-verified information input by a user, performing identity verification according to the first verification information and the to-be-verified information;
or if receiving verification request information sent by a client, generating corresponding verification information according to the verification request information; and respectively sending the verification information to an application program of the client and instant messaging software of the client.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the application stores computer-readable program instructions for executing the identity authentication method based on instant messaging, and solves the technical problem that the operation cost of identity authentication in an application program is relatively high. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present application are the same as those of the identity authentication method based on instant messaging provided by the above embodiment, and are not described herein again.
EXAMPLE six
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the instant messaging based authentication method as described above.
The computer program product provided by the application solves the technical problem that the operation cost of the identity authentication in the application program is higher. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as those of the identity authentication method based on instant messaging provided by the above embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. An identity authentication method based on instant messaging is applied to a client, and the identity authentication method based on instant messaging comprises the following steps:
acquiring user information through an application program, and generating verification request information according to the user information;
sending the verification request information to an instant messaging server so that the instant messaging server can generate corresponding verification information, and sending the verification information to the application program and the instant messaging software respectively;
acquiring first verification information received by the application program and second verification information received by the instant messaging software, wherein the instant messaging software is used for pushing the second verification information to a user, the first verification information is packaged verification information which is invisible to the user, and the first verification information is used for comparing with the verification information input by the user to verify the identity;
if receiving information to be verified input by a user, performing identity verification according to the first verification information and the information to be verified;
the step of sending the verification information to the application program of the client and the instant messaging software of the client respectively comprises the following steps:
sending the verification information to an application program of the client through a preset API (application program interface);
inquiring an instant messaging software account corresponding to the user information according to the user information in the verification request information;
and sending the verification information to the instant messaging software account according to the instant messaging software account.
2. The instant messaging-based identity authentication method of claim 1, wherein the step of transmitting the authentication request message to an instant messaging server comprises:
calling a preset API (application program interface) to establish a communication connection channel with the instant communication server;
and sending the verification request information to the instant messaging server according to the communication connection channel so that the instant messaging server can generate corresponding verification information.
3. An identity authentication method based on instant messaging is characterized in that the identity authentication method based on instant messaging is applied to an instant messaging server, and comprises the following steps:
if receiving verification request information sent by a client, generating corresponding verification information according to the verification request information;
the verification information is respectively sent to an application program of a client and instant messaging software of the client, so that the client can perform identity verification on information to be verified input by a user according to the verification information, wherein the verification information sent to the application program is first verification information which is packaged verification information and invisible for the user to compare with the verification information input by the user so as to perform identity verification;
the step of sending the verification information to the application program of the client and the instant messaging software of the client respectively comprises the following steps:
sending the verification information to an application program of the client through a preset API (application program interface);
inquiring an instant messaging software account corresponding to the user information according to the user information in the verification request information;
and sending the verification information to the instant messaging software account according to the instant messaging software account.
4. The identity authentication method based on instant messaging as claimed in claim 3, wherein the step of generating the corresponding authentication information according to the authentication request information if the authentication request information sent by the client is received comprises:
if receiving verification request information sent by a client, verifying the verification request information according to preset client configuration information;
and if the authentication passes, generating corresponding authentication information according to the authentication request information, wherein the authentication information is used for identity authentication.
5. The identity authentication method based on instant messaging according to claim 4, wherein the preset client configuration information comprises authorized client information and authorized API information, the authentication request information comprises preset API information requested by a client, and the step of authenticating the authentication request information according to the preset client configuration information comprises:
judging whether the client is an authorized client or not according to the client information corresponding to the client and the authorized client information;
if the client is an authorized client, judging whether the preset API information is an authorized API or not according to the preset API information and the authorized API information;
and if the preset API information is the authorized API, determining that the verification request information passes the verification.
6. The identity authentication method based on instant messaging according to claim 3, wherein the authentication request information includes client identification information, a timestamp and user information, and the step of generating corresponding authentication information according to the authentication request information comprises:
and generating the verification information according to the client identification information, the timestamp and the user information through a preset verification information rule.
7. The identity authentication method based on instant messaging according to claim 3, wherein the authentication request message includes user information, and the step of sending the authentication information to the application program of the client and the instant messaging software of the client respectively comprises:
sending the verification information to the application program through a preset API (application programming interface) so that the client can carry out identity verification on the information to be verified input by the user according to the verification information;
judging whether the user information has a corresponding instant messaging account;
and if so, sending the verification information to instant messaging software corresponding to the instant messaging account, wherein the verification information is used for verifying the identity of the user at the client.
8. An instant messaging based identity authentication system, comprising a client and an instant messaging server, the instant messaging based identity authentication system comprising:
the client is used for acquiring user information through an application program, generating verification request information according to the user information, sending the verification request information to an instant messaging server, acquiring first verification information received through the application program and second verification information received through instant messaging software, wherein the first verification information is packaged verification information which is invisible to a user and used for being compared with verification information input by the user to carry out identity verification, and if the information to be verified input by the user is received, carrying out identity verification according to the first verification information and the information to be verified;
the instant messaging server is used for generating corresponding verification information according to verification request information if the verification request information sent by the client is received; respectively sending the verification information to an application program of a client and instant messaging software of the client; the step of sending the verification information to the application program of the client and the instant messaging software of the client respectively comprises the following steps:
sending the verification information to an application program of the client through a preset API (application program interface);
inquiring an instant messaging software account corresponding to the user information according to the user information in the verification request information;
and sending the verification information to the instant messaging software account according to the instant messaging software account.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the instant messaging based authentication method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program for implementing an instant messaging based authentication method, which is executed by a processor to implement the steps of the instant messaging based authentication method according to any one of claims 1 to 7.
CN202210919113.6A 2022-08-02 2022-08-02 Identity verification method, system, electronic device and medium based on instant messaging Active CN114979048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210919113.6A CN114979048B (en) 2022-08-02 2022-08-02 Identity verification method, system, electronic device and medium based on instant messaging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210919113.6A CN114979048B (en) 2022-08-02 2022-08-02 Identity verification method, system, electronic device and medium based on instant messaging

Publications (2)

Publication Number Publication Date
CN114979048A CN114979048A (en) 2022-08-30
CN114979048B true CN114979048B (en) 2022-11-29

Family

ID=82969338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210919113.6A Active CN114979048B (en) 2022-08-02 2022-08-02 Identity verification method, system, electronic device and medium based on instant messaging

Country Status (1)

Country Link
CN (1) CN114979048B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116436633B (en) * 2023-02-08 2023-12-05 广州希倍思智能科技有限公司 Platform login method and system for receiving and transmitting verification code based on instant messaging

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753475A (en) * 2008-12-04 2010-06-23 上海赢思软件技术有限公司 Method and device for realizing real-time communication among a plurality of members in real-time communication group
CN104618315A (en) * 2013-12-30 2015-05-13 腾讯科技(深圳)有限公司 Method, device and system for verification information push, and method, device and system for information verification
CN113824628A (en) * 2021-09-30 2021-12-21 传仲智能数字科技(上海)有限公司 User identity authentication method, device, server and storage medium based on IM

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350717B (en) * 2007-07-18 2011-04-27 中国移动通信集团公司 Method and system for logging on third party server through instant communication software
US20120216040A1 (en) * 2011-02-17 2012-08-23 Ram Tanamy System for Email Message Authentication, Classification, Encryption and Message Authenticity
US9386011B2 (en) * 2013-08-29 2016-07-05 Aol Inc. Systems and methods for managing resetting of user online identities or accounts
CN111147358A (en) * 2019-12-31 2020-05-12 中国银行股份有限公司 Security authentication method and device based on instant messaging software
CN112235177B (en) * 2020-08-29 2021-12-24 上海量明科技发展有限公司 Method, device and system for sending authentication information through instant messaging

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753475A (en) * 2008-12-04 2010-06-23 上海赢思软件技术有限公司 Method and device for realizing real-time communication among a plurality of members in real-time communication group
CN104618315A (en) * 2013-12-30 2015-05-13 腾讯科技(深圳)有限公司 Method, device and system for verification information push, and method, device and system for information verification
CN113824628A (en) * 2021-09-30 2021-12-21 传仲智能数字科技(上海)有限公司 User identity authentication method, device, server and storage medium based on IM

Also Published As

Publication number Publication date
CN114979048A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN111639319B (en) User resource authorization method, device and computer readable storage medium
CN110574350B (en) Method and system for performing a prioritized generation of a second factor certificate
US11038870B2 (en) Quick response (QR) code for secure provisioning
CN111757422B (en) Equipment activation method and device, user terminal, equipment to be activated and storage medium
CN111991813A (en) Method and device for logging in game, electronic equipment and storage medium
CN114979048B (en) Identity verification method, system, electronic device and medium based on instant messaging
CN108092947B (en) Method and device for identity authentication of third-party application
CN110545542A (en) Main control key downloading method and device based on asymmetric encryption algorithm and computer equipment
CN113282951A (en) Security verification method, device and equipment for application program
CN110602700A (en) Seed key processing method and device and electronic equipment
CN111935138B (en) Protection method and device for secure login and electronic equipment
CN115525930A (en) Information transfer method, device and related equipment
CN111130805B (en) Secure transmission method, electronic device, and computer-readable storage medium
CN113660100B (en) Method, system and electronic equipment for generating soft token seed
CN111786936A (en) Method and device for authentication
CN117216753B (en) Password data analysis method and device, electronic equipment and readable storage medium
CN115168690B (en) Data query method and device based on browser plug-in, electronic equipment and medium
CN115333748B (en) Anti-counterfeiting communication method, system, electronic equipment and computer readable storage medium
CN113742663B (en) Watermark file acquisition method and device and electronic equipment
CN115221492B (en) Authentication method and device based on hardware key, electronic equipment and storage medium
CN115248749A (en) Game data processing method and device, electronic equipment and readable storage medium
CN114238918A (en) TEE environment-based inter-device interaction authorization method and device and readable storage medium
CN116738405A (en) System login method, device, equipment and storage medium
CN115455449A (en) Request processing method, device, equipment and medium
CN115840399A (en) Intelligent building monitoring system based on Internet of things and monitoring method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant