[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109753784B - Authorization method based on multi-dimensional code, mobile terminal and server - Google Patents

Authorization method based on multi-dimensional code, mobile terminal and server Download PDF

Info

Publication number
CN109753784B
CN109753784B CN201811578659.XA CN201811578659A CN109753784B CN 109753784 B CN109753784 B CN 109753784B CN 201811578659 A CN201811578659 A CN 201811578659A CN 109753784 B CN109753784 B CN 109753784B
Authority
CN
China
Prior art keywords
mobile terminal
authorization
target application
application program
server
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
CN201811578659.XA
Other languages
Chinese (zh)
Other versions
CN109753784A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811578659.XA priority Critical patent/CN109753784B/en
Publication of CN109753784A publication Critical patent/CN109753784A/en
Application granted granted Critical
Publication of CN109753784B publication Critical patent/CN109753784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an authorization method based on a multi-dimensional code, a mobile terminal and a server, wherein the method applied to the first mobile terminal comprises the following steps: acquiring authorization information aiming at the target application program, wherein the authorization information comprises at least one of authorization authority and authorization time related information, and the first mobile terminal has the authorization authority and is logged in the target application program; sending the authorization information to a server; receiving a multidimensional code picture which is fed back by the server and generated according to the authorization information and the user identification code; and displaying the multidimensional code picture so that a second mobile terminal can obtain the authorization information by scanning the multidimensional code picture and is successfully authorized based on the authorization information. The scheme can realize authorization between the mobile terminals through the multi-dimensional codes, and fills the gap that the authorization between the mobile terminals and the computer can only be performed in the prior art.

Description

Authorization method based on multi-dimensional code, mobile terminal and server
Technical Field
The invention relates to the technical field of mobile terminals, in particular to an authorization method based on a multi-dimensional code, a mobile terminal and a server.
Background
With the development of the advanced technology and the social development, the multi-dimensional code is more and more popular, and has larger information bearing capacity due to the high density of the dot matrix image forming the multi-dimensional code. In addition, the multidimensional code is easy to generate, and has higher identification efficiency for the mobile terminal.
The account authorization is carried out by using the multidimensional code, other terminals can directly obtain corresponding authority by identifying the multidimensional code, the defects that account and password are input complicatedly and are easy to be peeped and stolen are overcome, if the two-dimensional code aiming at the target application program popped up on a webpage of a computer can be scanned by the mobile terminal to complete the authorization of the webpage, the process is simple and rapid, and the account and the password are not easy to be peeped and stolen.
However, with the development of information technology, the phenomenon that the same user owns multiple mobile terminals is more and more common, and the requirement for switching the target application program among multiple mobile terminals is higher and higher, however, the multi-dimensional code authorization in the prior art does not support the authorization among the mobile terminals.
Disclosure of Invention
The embodiment of the invention aims to provide an authorization method based on a multi-dimensional code, a mobile terminal and a server, so as to solve the technical problem that in the prior art, authorization cannot be performed between different mobile terminals through a multi-dimensional code picture.
To solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an authorization method based on a multi-dimensional code is provided according to an embodiment of the present invention, and is applied to a first mobile terminal, where the method includes:
acquiring authorization information aiming at the target application program, wherein the authorization information comprises at least one of authorization authority and authorization time related information, and the first mobile terminal has the authorization authority and is logged in the target application program;
sending the authorization information to a server;
receiving a multidimensional code picture which is fed back by the server and generated according to the authorization information and the user identification code;
and displaying the multidimensional code picture so that a second mobile terminal can obtain the authorization information by scanning the multidimensional code picture and log in the target application program based on the authorization information.
Preferably, the method further comprises:
and if a first notification message fed back by the server for notifying that the second mobile terminal is authorized successfully based on the authorization information of the target application program is received, exiting the target application program.
Preferably, the method further comprises:
and after logging in the target application program again, sending request information to the server to request the server to feed back related operations executed on the target application program after the second mobile terminal is successfully authorized.
Preferably, the authorization time related information includes an authorization time period, the method further includes:
and if the operation of canceling the authorization is detected in the authorization time period, sending a message of canceling the authorization to a server so as to enable the server to stop providing the service related to the target application program for the second mobile terminal.
Preferably, the method further comprises:
and if the notification message which is generated and sent by the server and used for notifying that the second mobile terminal is successfully authorized is not received within the identification time period set by the server, the state of the multi-dimensional code picture is invalid.
In a second aspect, an authorization method based on a multi-dimensional code is provided according to an embodiment of the present invention, and is applied to a server, where the method includes:
receiving authorization information sent by a first mobile terminal; the authorization information comprises authorization authority and authorization time related information;
generating a user identification code according to the authorization information; the first mobile terminal is a mobile terminal which has logged in a target application program and has authorization authority;
generating a multi-dimensional code picture according to the authorization information and the user identification code, and feeding back the multi-dimensional code picture to the first mobile terminal;
and after the second mobile terminal identifies the multi-dimensional code picture, receiving a user identification code sent by the second mobile terminal, and after the user identification code passes the authentication, successfully authorizing the second mobile terminal.
Preferably, the method further comprises:
after receiving a user identification code sent by a second mobile terminal and successfully authenticating the user identification code, generating and sending a first notification message for indicating that the second mobile terminal is successfully authorized to a first mobile terminal, so that the first mobile terminal exits from the target application program according to the first notification message; and the user identification code is obtained by scanning a multi-dimensional code picture displayed by the first mobile terminal by the second mobile terminal.
Preferably, the method further comprises:
after detecting that the first mobile terminal logs in the target application program again, after receiving request information sent by the first mobile terminal and used for requesting the operation executed on the target application program after the second mobile terminal is successfully authorized, feeding back a related operation result executed on the target application program after the second mobile terminal is successfully authorized to the first mobile terminal.
Preferably, the authorization time related information includes an authorization time period, the method further includes:
if the message of canceling the authorization sent by the first mobile terminal is received in the authorization time period, stopping providing the service related to the target application program for the second mobile terminal;
and sending a second notification message for notifying that the forced quit is performed to the second mobile terminal.
Preferably, the method further comprises:
and when the multi-dimensional code picture is generated, setting an identification time period for identifying the multi-dimensional code by the second mobile terminal as a time period for enabling the state of the multi-dimensional code picture generated by the first mobile terminal to be effective.
In a third aspect, an authorization method based on a multi-dimensional code is provided according to an embodiment of the present invention, and is applied to a second mobile terminal that obtains authorization information for a target application according to a multi-dimensional code picture provided by a first mobile terminal, where the method includes:
identifying a multi-dimensional code picture displayed by a first mobile terminal, and acquiring authorization information and a user identification code;
sending the user identification code to a server;
and after the server successfully authenticates the user identification code, receiving a notification message for notifying that the authorization is successful according to the authorization information.
Preferably, the method further comprises:
and after the authorization is successful according to the authorization information, the operation executed on the target application program is sent to the server, so that the server feeds back the relevant operation to the first mobile terminal after receiving the request information sent by the first mobile terminal.
Preferably, the method further comprises:
and if a second notification message which is sent by the server and informs that the target application program has been forcibly quitted is received in the authorization time period, quitting the target application program.
In a fourth aspect, corresponding to the multi-dimensional code-based authorization method applied to the first mobile terminal provided in the first aspect, an embodiment of the present invention provides a mobile terminal, including:
an obtaining module, configured to obtain authorization information for the target application, where the authorization information includes at least one of authorization authority and authorization time related information, and the first mobile terminal has logged in the target application and has authorization authority;
the sending module is used for sending the authorization information to a server;
the receiving module is used for receiving a multidimensional code picture which is fed back by the server and generated according to the authorization information and the user identification code;
and the display module is used for displaying the multidimensional code picture so that a second mobile terminal can obtain the authorization information through the multidimensional code picture and log in the target application program based on the authorization information.
In a fifth aspect, corresponding to the multidimensional code based authorization method applied to the server provided in the second aspect, an embodiment of the present invention provides a server, including:
the receiving module is used for receiving the authorization information sent by the first mobile terminal; the authorization information comprises authorization authority and authorization time related information;
the user identification code generating module is used for generating a user identification code according to the authorization information; the first mobile terminal is a mobile terminal which has logged in a target application program and has authorization authority;
the multidimensional code picture generating module is used for generating a multidimensional code picture according to the authorization information and the user identification code and feeding the multidimensional code picture back to the first mobile terminal;
and the authorization module is used for receiving the user identification code sent by the second mobile terminal after the second mobile terminal identifies the multidimensional code picture, and authorizing the second mobile terminal successfully after the user identification code passes the authentication.
In a fifth aspect, corresponding to the multi-dimensional code-based authorization method applied to the second mobile terminal provided in the third aspect of the embodiment of the present invention, an embodiment of the present invention provides a mobile terminal, including:
the identification module is used for identifying the multi-dimensional code picture displayed by the first mobile terminal and acquiring authorization information and a user identification code;
the sending module is used for sending the user identification code to a server;
and the receiving module is used for receiving a notification message for notifying that the authorization is successful according to the authorization information after the server successfully authenticates the user identification code.
According to the authorization method based on the multi-dimensional code, the mobile terminal and the server provided by the embodiment of the invention, the first mobile terminal sends the authorization information to the server, then receives the multi-dimensional code picture generated according to the authorization information and the user identification code and sent by the server, and displays the multi-dimensional code picture so that the second mobile terminal can obtain the authorization information by scanning the multi-dimensional code picture and is successfully authorized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a first method of a multi-dimensional code-based authorization method applied to a first mobile terminal in an embodiment of the present invention;
fig. 2 is a flowchart of a second method of the multi-dimensional code based authorization method applied to the first mobile terminal in the embodiment of the present invention;
FIG. 3 is a flowchart of a first method of a multidimensional code based authorization method applied to a server in an embodiment of the present invention;
FIG. 4 is a flowchart of a second method of the multi-dimensional code-based authorization method applied to the server in the embodiment of the present invention;
fig. 5 is a flowchart of a first method of a multi-dimensional code based authorization method applied to a second mobile terminal in the embodiment of the present invention;
fig. 6 is a flowchart of a second method of the multi-dimensional code based authorization method applied to a second mobile terminal in the embodiment of the present invention;
FIG. 7 is a block diagram of a first mobile terminal in an embodiment of the invention;
FIG. 8 is a block diagram of a server in an embodiment of the invention;
FIG. 9 is a block diagram of a second mobile terminal in an embodiment of the invention;
fig. 10 is a schematic diagram of a hardware configuration of a first mobile terminal in an embodiment of the invention;
FIG. 11 is a diagram of a hardware configuration of a server in an embodiment of the invention;
fig. 12 is a diagram illustrating a hardware configuration of the second mobile terminal in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an authorization method based on a multidimensional code, which is applied to a first mobile terminal which has logged in a target application program and has authorization authority.
The first mobile terminal can be a mobile terminal such as a mobile phone and a tablet computer.
Example one
The embodiment of the invention provides an authorization method based on a multidimensional code, which is applied to a first mobile terminal which has logged in a target application program and has authorization authority, and as shown in figure 1, the method at least comprises the following steps:
step S102, obtaining authorization information aiming at the target application program, wherein the authorization information comprises at least one item of authorization authority and authorization time related information;
in the embodiment of the invention, when the first mobile terminal which has logged in the target application program and has the authorization authority acquires the authorization information aiming at the target application program, such as the authorization information which can be sent by operating the first mobile terminal for the acquired person.
Further, the authorization information may only include authorization right, only include authorization time related information, or include both authorization right and authorization time related information.
Further, regarding the authorization time related information, it is pointed out herein that the authorization time related information may be a specific time period for the first mobile terminal to authorize the second mobile terminal, such as 0.5h, 1h, or 3h after the second mobile terminal is successfully authorized; the time when the first mobile terminal successfully authorizes the second mobile terminal is not limited to be immediately started after the second mobile terminal scans the multidimensional code of the first mobile terminal, or may be a specific start-stop time period, and when the specific start time is reached, the timing is started.
In the embodiment of the present invention, the authorization permission may be permission for the target application owned by all the first mobile terminals, or may also be a deadline for the target application owned by a part of the first mobile terminals, and may be set according to actual requirements.
Step S104, sending the authorization information to a server;
in the embodiment of the invention, after the first mobile terminal acquires the authorization information, the authorization information is sent to the server to request the server to generate the multi-dimensional code picture, wherein the multi-dimensional code picture can be a two-dimensional code or a three-dimensional code.
Step S106, receiving a multidimensional code picture which is fed back by the server and generated according to the authorization information and the user identification code;
in the embodiment of the invention, after the first mobile terminal sends the authorization information to the server, the server waits for receiving the multidimensional code picture generated according to the authorization information and the user identification code.
And S108, displaying the multidimensional code picture so that a second mobile terminal can obtain the authorization information by scanning the multidimensional code picture and is successfully authorized based on the authorization information.
In the embodiment of the invention, after the first mobile terminal receives the multidimensional code picture fed back by the server, the multidimensional code picture is displayed on the current interface, so that the second mobile terminal scans the multidimensional code picture and generates the multidimensional code picture according to the authorization information and the user identification code based on the multidimensional code picture, therefore, the second mobile terminal can obtain the authorization information and the user identification code after scanning the multidimensional code picture, and further can be successfully authorized according to the authorization information.
In one embodiment, referring to fig. 2, the method further comprises:
step S109, if a first notification message fed back by the server for notifying that the second mobile terminal has been authorized successfully based on the authorization information of the target application program is received, exiting the target application program.
In the embodiment of the invention, at the same time, the target application program can only be successfully logged in on one mobile terminal between the first mobile terminal and the second mobile terminal, so that the first mobile terminal logs out of the target application program after receiving the first notification message that the second mobile terminal is successfully authorized.
In one embodiment, the method further comprises:
step S1010, after the first mobile terminal logs in the target application again, sending a request message to the server to request the server to feed back related operations executed on the target application after the second mobile terminal is authorized successfully.
In the embodiment of the invention, after the first mobile terminal logs in the target application program again, the operation executed by the second mobile terminal on the target application program can be checked through the server. In this way, for the target application program, the first mobile terminal may synchronize the operation executed by the second mobile terminal after authorizing the second mobile terminal, and specifically, after logging in the target application program again, the first mobile terminal may send the request information to the server, so that the request server feeds back the operation related to the request information executed on the target application program after the second mobile terminal is successfully authorized.
In one embodiment, the authorization time related information includes an authorization time period, the method further comprising:
step S1011, if an operation of canceling the authorization is detected within the authorization time period, sending a message of canceling the authorization to the server, so that the server stops providing the service related to the target application program for the second mobile terminal.
In the embodiment of the invention, the first mobile terminal can send authorization information to the server and also can send a message of canceling authorization to the server, and when the first mobile terminal detects the operation of canceling authorization in the authorization time period, the first mobile terminal sends the message of canceling authorization to the server, so that the server provides services related to the target application program for the second mobile terminal.
In one embodiment, the method further comprises:
step S1012, if a notification message generated and sent by the server for notifying that the second mobile terminal has been successfully authorized is not received within the identification time period set by the server, the state of the multi-dimensional code picture becomes invalid.
In the embodiment of the invention, when the server generates the multi-dimensional code picture according to the authorization information and the user identification code, the identification time period is set at the same time, if the notification message that the second mobile terminal is successfully authorized and generated and sent by the user is not received in the identification time period set by the server, the state of the multi-dimensional code of the first mobile terminal becomes invalid, and after the state of the multi-dimensional code becomes invalid, even if the second mobile terminal scans the multi-dimensional code picture again, the multi-dimensional code picture cannot be successfully authorized.
According to the authorization method based on the multi-dimensional code, the first mobile terminal sends the authorization information to the server, then receives the multi-dimensional code picture generated according to the authorization information and the user identification code and sent by the server, and displays the multi-dimensional code picture so that the second mobile terminal can obtain the authorization information through scanning the multi-dimensional code picture and can be successfully authorized.
In addition, the authorization permission of the technical scheme can be all permissions of the first mobile terminal for the target application program or partial permissions of the first mobile terminal for the target application program, and the technical blank that the mobile terminal is used for authorizing the computer equipment intelligently and the authorization permission cannot be set in the prior art is filled.
Furthermore, the authorization information in the scheme may also include authorization time related information, which may be a predetermined time period after the multidimensional code image displayed on the first mobile terminal is scanned by the second mobile terminal, so that a technical blank that the mobile terminal authorizes the computer after the multidimensional code displayed on the computer device is identified by the mobile terminal in the prior art is filled, and the authorization time period cannot be set according to actual requirements.
Fig. 3 is a multi-dimensional code-based authorization method applied to a server according to an embodiment of the present invention, where the method includes:
step S202, receiving authorization information sent by a first mobile terminal; the authorization information comprises authorization authority and authorization time related information.
In the embodiment of the present invention, the authorization information includes authorization authority and authorization time related information, which is described in detail in the previous embodiment and is not described herein again.
Step S204, generating a user identification code according to the authorization information; the first mobile terminal is a mobile terminal which has logged in a target application program and has authorization authority;
in the embodiment of the present invention, after receiving the authorization information sent by the first mobile terminal, the server generates the user identification code uid according to the authorization information, where it is indicated that the uid (user identification) is used as the user identification code and can only be used by one mobile terminal at the same time.
Step S206, generating a multi-dimensional code picture according to the authorization information and the user identification code, and feeding back the multi-dimensional code picture to the first mobile terminal;
and S208, after the second mobile terminal identifies the multi-dimensional code picture, receiving a user identification code sent by the second mobile terminal, and after the user identification code passes the authentication, successfully authorizing the second mobile terminal.
In the embodiment of the invention, the server authenticates the received user identification code after receiving the user identification code sent by the second mobile terminal, and authorizes the second mobile terminal after passing the authentication.
In the embodiment of the present invention, after the server authenticates the user identifier, a notification message indicating that the authentication is passed or the authorization is successful may be sent to the second mobile terminal, so as to notify that the second mobile terminal has been successfully authorized.
In the embodiment of the present invention, the specific authentication method may be:
the server generates a user identification code after receiving the authorization information sent by the first mobile terminal, stores the generated user identification code, compares the received user identification code with the stored user identification code after receiving the user identification code sent by the second mobile terminal, and if the stored user identification code comprises the received user identification code, the received user identification code of the second mobile terminal passes the authentication.
In one embodiment, referring to fig. 4, the method further comprises:
step S209, after the user identification code sent by the second mobile terminal is successfully authenticated, generating and sending a first notification message for indicating that the second mobile terminal is successfully authorized to the first mobile terminal, so that the first mobile terminal exits the target application program according to the first notification message; and the user identification code is obtained by scanning a multi-dimensional code picture displayed by the first mobile terminal by the second mobile terminal.
Based on the same time period, one user identification code can only be used by one mobile terminal, namely when the second mobile terminal is successfully authorized to log in the target application program, the first mobile terminal logs out of the target application program. For use friendliness, in the scheme, after the user identification code sent by the second mobile terminal passes authentication, the server generates a first notification message for indicating that the second mobile terminal has been successfully sent, and sends the first notification message to the first mobile terminal, so that the first mobile terminal logs out according to the first notification message.
As a specific implementation manner, the first notification message may be sent to the first mobile terminal and the second mobile terminal at the same time, so that the user of the second mobile terminal can know in time when the second mobile terminal is successfully authorized, thereby avoiding the waste of time caused by knowing that the operation command is not successfully authorized after being sent, and the waste of time caused by not knowing that the operation command is not timely sent after the operation command is successfully authorized.
In one embodiment, the method further comprises:
step S2010, after detecting that the first mobile terminal logs in the target application program again, receiving request information sent by the first mobile terminal and used for requesting an operation executed on the target application program after the second mobile terminal is authorized successfully, and feeding back a result of a related operation executed on the target application program after the second mobile terminal is authorized successfully to the first mobile terminal.
In one embodiment, the authorization time related information includes an authorization time period, the method further comprising:
step S2011, if the message for canceling the authorization sent by the first mobile terminal is received within the authorization time period, stopping providing the service related to the target application program for the second mobile terminal;
in the embodiment of the invention, when receiving a message of canceling authorization sent by a first mobile terminal within the authorization time period, stopping providing services related to a target application program for a second mobile terminal; then, a second notification message for notifying that the mobile terminal has been forcibly exited can be sent to the second mobile terminal, so that the user of the second mobile terminal can know the second mobile terminal, and time waste caused by the fact that the sent operation instruction cannot be responded due to the fact that the user does not know that the authorization finger has been cancelled is avoided.
In one embodiment, the method further comprises:
step S207, when the multi-dimensional code picture is generated, setting an identification time period for the second mobile terminal to identify the multi-dimensional code as a time period in which the state of the multi-dimensional code picture generated by the first mobile terminal is valid.
In the embodiment of the invention, when the multidimensional code picture is generated according to the authorization information and the user identification code, the server simultaneously sets the effective identification time period of the multidimensional code picture, and in the effective identification time period, the second mobile terminal can obtain the authorization information and the user identification code by identifying the multidimensional code; and when the server receives the user identification code from the second mobile terminal within the identification time period or the received user identification code is not authenticated, it is impossible to generate the first notification message that the second mobile terminal has been successfully authorized, and if the first mobile terminal does not receive the first notification message from the server for notifying that the second mobile terminal has been successfully authorized within the identification time period, the state of the multidimensional code becomes invalid.
The authorization method based on the multidimensional code is applied to a server, and after authorization information sent by a first mobile terminal is received, a user identification code is generated according to the authorization information, then a multidimensional code picture is generated according to the authorization information and the user identification code, and the multidimensional code picture is fed back to the first mobile terminal; and after the second mobile terminal identifies the multi-dimensional code, receiving a user identification code sent by the second mobile terminal, and after the user identification code passes the authentication, successfully authorizing the second mobile terminal. Therefore, the scheme can realize authorization between the mobile terminals through the multi-dimensional codes, and fills the gap that the authorization between the mobile terminals and the computer can only be performed in the prior art.
Furthermore, the authorization information in the scheme may also include authorization time related information, which may be a predetermined time period after the multi-dimensional code image displayed on the first mobile terminal is scanned by the second mobile terminal, so that a technical gap that the mobile terminal authorizes the computer after the two-dimensional code displayed on the computer device is identified by the mobile terminal in the prior art is filled, and the authorization time period cannot be set according to actual requirements.
Referring to fig. 5, an embodiment of the present invention provides a multidimensional code based authorization method, which is applied to a second mobile terminal that acquires authorization information for a target application according to a multidimensional code picture provided by a first mobile terminal, where the method includes:
step S302, identifying a multi-dimensional code picture displayed by a first mobile terminal, and acquiring authorization information and a user identification code;
in the embodiment of the invention, the second mobile terminal can acquire the authorization information and the user identification code by identifying the multidimensional code picture displayed on the current interface of the first mobile terminal, wherein the authorization information comprises at least one item of authorization authority and authorization time related information.
Step S304, sending the user identification code to a server;
in the embodiment of the invention, after the second mobile terminal acquires the authorization information and the user identification code by identifying the multi-dimensional code picture, the user identification code is sent to the server so that the server can authenticate the user identification code and further determine whether the second mobile terminal is authorized.
And S306, after the server successfully authenticates the user identification code, acquiring the corresponding authority of the target application program according to the authorization authority information.
In the embodiment of the invention, when the server performs authentication according to the fed-back user identification code, and the user identification code passes the authentication, the second mobile terminal is successfully authorized, that is, the second mobile terminal obtains the corresponding authority aiming at the target application program according to the authorization information.
In one embodiment, the method further comprises:
and after the authorization is successful according to the authorization information, sending the operation executed on the target application program to the server, so that the server feeds back the operation related to the request information to the first mobile terminal after receiving the request information sent by the first mobile terminal.
In the embodiment of the invention, the second mobile terminal is successfully authorized, the operations executed on the target application program after logging in the target application program are all stored in the server, and the first mobile terminal can send request information to the server to request to view the operations executed on the target application program by the second mobile terminal after logging in the target application program again.
In one embodiment, the method further comprises:
and if a second notification message which is sent by the server and informs that the authorization is cancelled is received in the authorization time period, exiting the target application program.
According to the authorization method based on the multi-dimensional code, provided by the embodiment of the invention, the second mobile terminal can obtain the authorization information aiming at the target application program by identifying the multi-dimensional code picture displayed on the current interface of the first mobile terminal, so that the technical problem that the authorization aiming at the target application program between the mobile terminals cannot be realized in the prior art is solved.
Furthermore, the authorization information in the scheme may also include authorization time related information, which may be a predetermined time period after the multi-dimensional code image displayed on the first mobile terminal is scanned by the second mobile terminal, so that a technical gap that the mobile terminal authorizes the computer after the two-dimensional code displayed on the computer device is identified by the mobile terminal in the prior art is filled, and the authorization time period cannot be set according to actual requirements.
As follows, a specific example is illustrated:
referring to fig. 6, after the first mobile terminal 61 acquires the authorization information, the authorization information is sent to the server 62, and after receiving the authorization information, the server 62 first generates a user identification code, then generates a multi-dimensional code picture according to the user identification code, and sends the generated multi-dimensional code picture to the first mobile terminal 61.
And after receiving the multi-dimensional code picture sent by the server, the first mobile terminal displays the multi-dimensional code picture on the current page.
The second mobile terminal 63 identifies the multi-dimensional code picture displayed on the current interface of the first mobile terminal, acquires the user identification code and the authorization information, sends the acquired user identification code to the server 62, the server 62 authenticates the user identification code after receiving the user identification code sent by the second mobile terminal 63, and when the user identification code passes the authentication, the authentication is authorized by the second mobile terminal 63.
The authorization information for the second mobile terminal may be to authorize all rights of the operation target application program possessed by the first mobile terminal 61 to the second mobile terminal 63, or to authorize part of the rights of the operation target application program possessed by the first mobile terminal 61 to the second mobile terminal 63, for example, when the target application program is multiple, when the first mobile terminal possesses an internal operation of all rights of the multiple target programs, and the right granted to the second mobile terminal may be only a consumption type operation, such as using application coins, playing games (affecting the level of the level), or a progress type operation, such as holding up a book, collecting videos/music, issuing a bullet/comment, modifying the game character, or a basic type operation, such as watching videos, listening to songs, playing games (not affecting the level of the level). In addition, when the first mobile terminal authorizes a plurality of target application programs for the second mobile terminal at the same time, the authorization authority information of each target application program can be set according to requirements.
Corresponding to the authorization method based on the multi-dimensional code applied to the first mobile terminal provided in the embodiment of the present invention, an embodiment of the present invention provides a mobile terminal, as shown in fig. 7, where the mobile terminal includes:
an obtaining module 72, configured to obtain authorization information for the target application, where the authorization information includes at least one of authorization authority and authorization time related information, and the first mobile terminal has logged in the target application and has authorization authority;
a sending module 74, configured to send the authorization information to a server;
a receiving module 76, configured to receive a multidimensional code picture generated according to the authorization information and the user identification code and fed back by the server;
and a display module 78, configured to display the multi-dimensional code picture, so that the second mobile terminal obtains the authorization information through the multi-dimensional code picture and logs in the target application program based on the authorization information.
In one embodiment of the present invention,
the receiving module is further configured to receive a first notification message fed back by a server to notify that the second mobile terminal has been successfully authorized based on the authorization information of the target application program;
the mobile terminal further includes:
and the quitting module is used for quitting the target application program if the receiving module receives a first notification message which is fed back by the server and used for notifying that the second mobile terminal is authorized successfully based on the authorization information of the target application program.
In one embodiment of the present invention,
the acquisition module is further used for acquiring request information after logging in the target application program again;
the sending module is further configured to:
and sending the acquired request information to a server to request the server to feed back related operations executed on the target application program after the second mobile terminal is successfully authorized.
In one embodiment, the authorization time related information includes an authorization time period, and the sending module is further configured to:
and if the operation of canceling the authorization is detected in the authorization time period, sending a message of canceling the authorization to a server so as to enable the server to stop providing the service related to the target application program for the second mobile terminal.
In one embodiment of the present invention,
the receiving module is further configured to receive a notification message generated and sent by the server and used for notifying that the second mobile terminal has been successfully authorized;
the mobile terminal further includes:
and the state changing module is used for changing the state of the multidimensional code picture into invalid if the receiving module does not receive a notification message which is generated and sent by the server and used for notifying that the second mobile terminal is successfully authorized within the identification time period set by the server.
The mobile terminal provided by the embodiment of the invention sends the authorization information to the server, and then receives the multidimensional code picture which is sent by the server and generated according to the authorization information and the user identification code, and then displays the multidimensional code picture so that the second mobile terminal can obtain the authorization information by scanning the multidimensional code picture and is successfully authorized.
In addition, the authorization permission of the technical scheme can be all permissions of the first mobile terminal for the target application program or partial permissions of the first mobile terminal for the target application program, and the technical blank that the mobile terminal is used for authorizing the computer equipment intelligently and the authorization permission cannot be set in the prior art is filled.
Furthermore, the authorization information in the scheme may also include authorization time related information, which may be a predetermined time period after the multidimensional code image displayed on the first mobile terminal is scanned by the second mobile terminal, so that a technical blank that the mobile terminal authorizes the computer after the multidimensional code displayed on the computer device is identified by the mobile terminal in the prior art is filled, and the authorization time period cannot be set according to actual requirements.
Corresponding to the authorization method based on the multi-dimensional code applied to the server provided by the embodiment of the present invention, the embodiment of the present invention provides a server, as shown in fig. 8, where the server includes:
a receiving module 82, configured to receive authorization information sent by a first mobile terminal; the authorization information comprises authorization authority and authorization time related information;
a user identification code generating module 84, configured to generate a user identification code according to the authorization information; the first mobile terminal is a mobile terminal which has logged in a target application program and has authorization authority;
a multidimensional code picture generating module 86, configured to generate a multidimensional code picture according to the authorization information and the user identification code, and feed back the multidimensional code picture to the first mobile terminal;
and the authorization module 88 is configured to receive the user identification code sent by the second mobile terminal after the second mobile terminal identifies the multi-dimensional code picture, and authorize the second mobile terminal successfully after the user identification code passes authentication.
In one embodiment, the server further comprises:
after receiving a user identification code sent by a second mobile terminal and successfully authenticating the user identification code, generating and sending a first notification message for indicating that the second mobile terminal is successfully authorized to a first mobile terminal, so that the first mobile terminal exits from the target application program according to the first notification message; and the user identification code is obtained by scanning a multi-dimensional code picture displayed by the first mobile terminal by the second mobile terminal.
In one embodiment, the server further comprises:
the detection module is used for detecting that the first mobile terminal logs in the target application program again;
the receiving module is further configured to receive, after it is detected that the first mobile terminal logs in the target application program again, request information sent by the first mobile terminal and used for requesting a related operation executed on the target application program after the second mobile terminal is authorized successfully;
the sending module is further configured to feed back a result of the relevant operation executed on the target application program after the second mobile terminal is successfully authorized to the first mobile terminal.
In one embodiment, the authorization time related information includes an authorization time period,
the receiving module is further configured to receive a message for canceling authorization sent by the first mobile terminal
The server, further comprising:
the canceling module is used for stopping providing the service related to the target application program for the second mobile terminal if a message for canceling the authorization sent by the first mobile terminal is received in the authorization time period;
the sending module is further configured to send a second notification message for notifying that the mobile terminal has been forcibly exited to the second mobile terminal.
In one embodiment, the server further comprises:
and the identification time period setting module is used for setting an identification time period for identifying the multidimensional code by the second mobile terminal when the multidimensional code picture is generated, wherein the identification time period is used as a time period for which the state of the multidimensional code picture generated by the first mobile terminal is effective.
According to the server provided by the embodiment of the invention, after the receiving module receives the authorization information sent by the first mobile terminal, the user identification code generating module generates the user identification code according to the authorization information, the multidimensional code picture generating module generates the multidimensional code picture according to the authorization information and the user identification code, and feeds the multidimensional code picture back to the first mobile terminal; and after the second mobile terminal identifies the multi-dimensional code, receiving a user identification code sent by the second mobile terminal, and after the user identification code passes the authentication, successfully authorizing the second mobile terminal by the authorization module. Therefore, the scheme can realize authorization between the mobile terminals through the multi-dimensional codes, and fills the gap that the authorization between the mobile terminals and the computer can only be performed in the prior art.
Furthermore, the authorization information in the scheme may also include authorization time related information, which may be a predetermined time period after the multi-dimensional code image displayed on the first mobile terminal is scanned by the second mobile terminal, so that a technical gap that the mobile terminal authorizes the computer after the two-dimensional code displayed on the computer device is identified by the mobile terminal in the prior art is filled, and the authorization time period cannot be set according to actual requirements.
Corresponding to the authorization method based on the multi-dimensional code applied to the second mobile terminal provided in the embodiment of the present invention, an embodiment of the present invention provides a mobile terminal, as shown in fig. 9, where the mobile terminal includes:
the identification module 92 is used for identifying the multi-dimensional code picture displayed by the first mobile terminal and acquiring authorization information and a user identification code;
a sending module 94, configured to send the user identifier to a server;
a receiving module 96, configured to receive a notification message for notifying that the authorization has been successful according to the authorization information after the server successfully authenticates the user identification code.
In an embodiment, the sending module is further configured to send, after being successfully authorized according to the authorization information, an operation executed on the target application to the server, so that the server feeds back the operation to the first mobile terminal after receiving the request information sent by the first mobile terminal.
In one embodiment, the mobile terminal further comprises:
and if a second notification message which is sent by the server and informs that the target application program has been forcibly quitted is received in the authorization time period, quitting the target application program.
The mobile terminal provided by the embodiment of the invention can acquire the authorization information aiming at the target application program by identifying the multi-dimensional code picture displayed on the current interface of the first mobile terminal, and overcomes the technical problem that the authorization aiming at the target application program between the mobile terminals can not be realized in the prior art.
Furthermore, the authorization information in the scheme may also include authorization time related information, which may be a predetermined time period after the multi-dimensional code image displayed on the first mobile terminal is scanned by the second mobile terminal, so that a technical gap that the mobile terminal authorizes the computer after the two-dimensional code displayed on the computer device is identified by the mobile terminal in the prior art is filled, and the authorization time period cannot be set according to actual requirements.
Corresponding to the authorization method based on the multi-dimensional code applied to the first mobile terminal that has logged in the target application and has the authorization right provided in the embodiment of the present invention, fig. 10 is a hardware structure diagram of the first mobile terminal that has logged in the target application and has the authorization right in the embodiment of the present invention. The mobile terminal 1000 shown in fig. 10 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a power supply 1011. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile device such as a mobile phone and a tablet computer. The mobile terminal has logged in the target program and has authorization rights.
In the embodiment of the present invention, the memory 1009 stores a computer program, and when the computer program is executed by the processor 1010, the following steps can be implemented:
obtaining authorization information aiming at the target application program, wherein the authorization information comprises at least one item of authorization authority and authorization time related information;
sending the authorization information to a server;
receiving a multidimensional code picture which is fed back by the server and generated according to the authorization information and the user identification code;
and displaying the multidimensional code picture so that a second mobile terminal can obtain the authorization information by scanning the multidimensional code picture and log in the target application program based on the authorization information.
Optionally, when the computer program is executed by the processor 1010, the method further comprises:
and if a first notification message fed back by the server for notifying that the second mobile terminal is authorized successfully based on the authorization information of the target application program is received, exiting the target application program.
Optionally, when the computer program is executed by the processor 1010, the method further comprises:
and after logging in the target application program again, sending request information to the server to request the server to feed back related operations executed on the target application program after the second mobile terminal is successfully authorized.
Optionally, the computer program, when executed by the processor 1010, includes an authorization time period, and the method further includes:
and if the operation of canceling the authorization is detected in the authorization time period, sending a message of canceling the authorization to a server so as to enable the server to stop providing the service related to the target application program for the second mobile terminal.
Optionally, when the computer program is executed by the processor 710, the method further comprises:
and if the notification message which is generated and sent by the server and used for notifying that the second mobile terminal is successfully authorized is not received within the identification time period set by the server, the state of the multi-dimensional code picture is invalid.
According to the mobile terminal provided by the embodiment of the invention, the authorization information is sent to the server, and then the multidimensional code picture generated according to the authorization information and the user identification code sent by the server is received, and then the multidimensional code picture is displayed so that the second mobile terminal can obtain the authorization information by scanning the multidimensional code picture and is successfully authorized.
In addition, the authorization permission of the technical scheme can be all permissions of the first mobile terminal for the target application program or partial permissions of the first mobile terminal for the target application program, and the technical blank that the mobile terminal is used for authorizing the computer equipment intelligently and the authorization permission cannot be set in the prior art is filled.
Furthermore, the authorization information in the scheme may also include authorization time related information, which may be a predetermined time period after the multi-dimensional code image displayed on the first mobile terminal is scanned by the second mobile terminal, so that a technical gap that the mobile terminal authorizes the computer after the two-dimensional code displayed on the computer device is identified by the mobile terminal in the prior art is filled, and the authorization time period cannot be set according to actual requirements.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1001 may be used for receiving and sending signals during a message transmission or a call, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 1001 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 1002, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 1003 may convert audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as sound. Also, the audio output unit 1003 may also provide audio output related to a specific function performed by the mobile terminal 1000 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1004 is used to receive an audio or video signal. The input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, the Graphics processor 10041 Processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1006. The image frames processed by the graphic processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1001 in case of a phone call mode.
The mobile terminal 1000 can also include at least one sensor 1005, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 10061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 10061 and/or the backlight when the mobile terminal 1000 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1006 is used to display information input by the user or information provided to the user. The Display unit 1006 may include a Display panel 10061, and the Display panel 10061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1007 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 10071 (e.g., operations by a user on or near the touch panel 10071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 10071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 10071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 can include other input devices 10072. Specifically, the other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 10071 can be overlaid on the display panel 10061, and when the touch panel 10071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 10061 according to the type of the touch event. Although in fig. 7, the touch panel 10071 and the display panel 10061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 1008 is an interface through which an external device is connected to the mobile terminal 1000. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1008 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 1000 or may be used to transmit data between the mobile terminal 1000 and external devices.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, and the like), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1009 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1010 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 1009 and calling data stored in the memory 1009, thereby integrally monitoring the mobile terminal. Processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The mobile terminal 700 may also include a power supply 1011 (e.g., a battery) for powering the various components, and the power supply 1011 may be logically coupled to the processor 1010 via a power management system that may be configured to manage charging, discharging, and power consumption.
In addition, the mobile terminal 1000 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 1010, a memory 1009, and a computer program stored in the memory 1009 and capable of running on the processor 1010, where the computer program is executed by the processor 1010 to implement each process of the above authorization method embodiment based on the multi-dimensional code picture, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
Further, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method embodiment for performing authorization based on a multi-dimensional code, where the method is applied to a first mobile terminal, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Corresponding to the multidimensional code based authorization method applied to the server according to the embodiment of the present invention, an embodiment of the present invention provides a server, which is shown in fig. 11 and includes a processor 1110, a transceiver 1120, a memory 1130, and a bus interface. Wherein:
in this embodiment of the present invention, the network device further includes: a computer program stored in the memory 1130 and capable of running on the processor 1110, where the computer program, when executed by the processor 1110, implements each process in the method shown in fig. 3 or fig. 4, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
In FIG. 11, the bus architecture may include any number of interconnected buses and bridges, with various circuits including one or more processors, represented by the processor 1110, and memory, represented by the memory 1130, linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 1120 may be a plurality of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium.
The processor 1110 is responsible for managing the bus architecture and general processing, and the memory 1130 may store data used by the processor 1110 in performing operations.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Corresponding to the multi-dimensional code based authorization method applied to the second mobile terminal provided by the embodiment of the present invention, an embodiment of the present invention provides a mobile terminal, and fig. 12 is a hardware structure diagram of a second mobile duplicate in which authorization information is obtained by identifying a multi-dimensional code picture of the first mobile terminal in the embodiment of the present invention. The mobile terminal 1200 shown in fig. 12 includes, but is not limited to: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensor 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, processor 1210, and power source 1211. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 12 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile device such as a mobile phone and a tablet computer. The mobile terminal has logged in the target program and has authorization rights.
In the embodiment of the present invention, the memory 1209 stores therein a computer program, and when the computer program is executed by the processor 1210, the following steps can be implemented:
identifying a multi-dimensional code picture displayed by a first mobile terminal, and acquiring authorization information and a user identification code;
sending the user identification code to a server;
and after the server successfully authenticates the user identification code, receiving a notification message for notifying that the authorization is successful according to the authorization information.
Preferably, when the computer program is executed by the processor 1210, the method further comprises:
and after the authorization is successful according to the authorization information, the operation executed on the target application program is sent to the server, so that the server feeds back the operation to the first mobile terminal after receiving the request information sent by the first mobile terminal.
Preferably, when the computer program is executed by the processor 1210, the method further comprises:
and if a second notification message which is sent by the server and informs that the target application program has been forcibly quitted is received in the authorization time period, quitting the target application program.
It is noted that the radio frequency unit 1201, the network module 1202, the audio output unit 1203, the input unit 1204, the sensor 1205, the display unit 1206, the user input unit 1207, the interface unit 1208, the memory 1209, the processor 1210, the power source 1211, the touch panel 12071 and the display panel 12061 of the display unit 1206, and the touch panel 12071 and the display panel 12061 serving as the user input unit 1207 or other input devices 12072 have similar structures, operation principles, and implemented functions, and technical relationships achieved by mutual operation engineering and mutual operation among a plurality of them are similar to those of the first mobile terminal, and are not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of each method embodiment applied to the second mobile terminal, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The mobile terminal provided by the embodiment of the invention can acquire the authorization information aiming at the target application program by identifying the multi-dimensional code picture displayed on the current interface of the first mobile terminal, and overcomes the technical problem that the authorization aiming at the target application program between the mobile terminals can not be realized in the prior art.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (16)

1. An authorization method based on multi-dimensional codes is applied to a first mobile terminal, and is characterized in that the method comprises the following steps:
acquiring authorization information aiming at a target application program, wherein the authorization information comprises at least one of authorization authority and authorization time related information, and the first mobile terminal has the authorization authority and is logged in the target application program;
sending the authorization information to a server;
receiving a multidimensional code picture which is fed back by the server and generated according to the authorization information and the user identification code;
displaying the multidimensional code picture so that a second mobile terminal can obtain the authorization information through the multidimensional code picture and log in the target application program based on the authorization information;
wherein the authorization authority is all authority owned by the first mobile terminal for the target application program or partial authority owned by the first mobile terminal for the target application program.
2. The method of claim 1, further comprising:
and if a first notification message fed back by the server for notifying that the second mobile terminal is authorized successfully based on the authorization information of the target application program is received, exiting the target application program.
3. The method of claim 2, further comprising:
and after logging in the target application program again, sending request information to the server to request the server to feed back related operations executed on the target application program after the second mobile terminal is successfully authorized.
4. The method of claim 3, wherein the authorization time-related information comprises an authorization time period, the method further comprising:
and if the operation of canceling the authorization is detected in the authorization time period, sending a message of canceling the authorization to a server so as to enable the server to stop providing the service related to the target application program for the second mobile terminal.
5. The method according to any one of claims 1-4, further comprising:
and if the notification message which is generated and sent by the server and used for notifying that the second mobile terminal is successfully authorized is not received within the identification time period set by the server, the state of the multi-dimensional code picture is invalid.
6. A multi-dimensional code-based authorization method is applied to a server, and is characterized in that the method comprises the following steps:
receiving authorization information sent by a first mobile terminal; the authorization information comprises authorization authority and authorization time related information;
generating a user identification code according to the authorization information; the first mobile terminal is a mobile terminal which has logged in a target application program and has authorization authority;
generating a multi-dimensional code picture according to the authorization information and the user identification code, and feeding back the multi-dimensional code picture to the first mobile terminal;
after the second mobile terminal identifies the multi-dimensional code picture, receiving a user identification code sent by the second mobile terminal, and after the user identification code passes the authentication, successfully authorizing the second mobile terminal;
wherein the authorization authority is all authority owned by the first mobile terminal for the target application program or partial authority owned by the first mobile terminal for the target application program.
7. The method of claim 6, further comprising:
after receiving a user identification code sent by a second mobile terminal and successfully authenticating the user identification code, generating and sending a first notification message for indicating that the second mobile terminal is successfully authorized to a first mobile terminal, so that the first mobile terminal exits from the target application program according to the first notification message; and the user identification code is obtained by scanning a multi-dimensional code picture displayed by the first mobile terminal by the second mobile terminal.
8. The method of claim 7, further comprising:
after detecting that the first mobile terminal logs in the target application program again, after receiving request information sent by the first mobile terminal and used for requesting related operations executed on the target application program after the second mobile terminal is successfully authorized, feeding back a related operation result executed on the target application program after the second mobile terminal is successfully authorized to the first mobile terminal.
9. The method of claim 8, wherein the authorization time-related information comprises an authorization time period, the method further comprising:
if the message of canceling the authorization sent by the first mobile terminal is received in the authorization time period, stopping providing the service related to the target application program for the second mobile terminal;
and sending a second notification message for notifying that the forced quit is performed to the second mobile terminal.
10. The method according to any one of claims 6-9, further comprising:
and when the multi-dimensional code picture is generated, setting an identification time period for identifying the multi-dimensional code by the second mobile terminal as a time period for enabling the state of the multi-dimensional code picture generated by the first mobile terminal to be effective.
11. An authorization method based on multi-dimensional codes is applied to a second mobile terminal, and is characterized in that the method comprises the following steps:
identifying a multi-dimensional code picture displayed by a first mobile terminal, and acquiring authorization information and a user identification code; the authorization information comprises authorization authority and authorization time related information;
sending the user identification code to a server;
after the server successfully authenticates the user identification code, receiving a notification message for notifying that the user identification code is successfully authorized according to the authorization information;
wherein the authorization authority is all authority which is owned by the first mobile terminal and is aimed at a target application program or partial authority which is owned by the first mobile terminal and is aimed at the target application program.
12. The method of claim 11, further comprising:
and after the authorization is successful according to the authorization information, the operation executed on the target application program is sent to the server, so that the server feeds back the relevant operation to the first mobile terminal after receiving the request information sent by the first mobile terminal.
13. The method of claim 11, wherein the authorization time-related information comprises an authorization time period, and wherein the method further comprises:
and if a second notification message which is sent by the server and informs that the target application program has been forcibly quitted is received in the authorization time period, quitting the target application program.
14. A mobile terminal, comprising:
the mobile terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring authorization information aiming at a target application program, the authorization information comprises at least one of authorization authority and authorization time related information, and the mobile terminal has the authorization authority after logging in the target application program;
the sending module is used for sending the authorization information to a server;
the receiving module is used for receiving a multidimensional code picture which is fed back by the server and generated according to the authorization information and the user identification code;
the display module is used for displaying the multidimensional code picture so that a second mobile terminal can obtain the authorization information through the multidimensional code picture and log in the target application program based on the authorization information;
wherein the authorization authority is all authority owned by the mobile terminal for the target application program or partial authority owned by the mobile terminal for the target application program.
15. A server, comprising:
the receiving module is used for receiving the authorization information sent by the first mobile terminal; the authorization information comprises authorization authority and authorization time related information;
the user identification code generating module is used for generating a user identification code according to the authorization information; the first mobile terminal is a mobile terminal which has logged in a target application program and has authorization authority;
the multidimensional code picture generating module is used for generating a multidimensional code picture according to the authorization information and the user identification code and feeding the multidimensional code picture back to the first mobile terminal;
the authorization module is used for receiving the user identification code sent by the second mobile terminal after the second mobile terminal identifies the multi-dimensional code picture, and authorizing the second mobile terminal successfully after the user identification code passes the authentication;
wherein the authorization authority is all authority owned by the first mobile terminal for the target application program or partial authority owned by the first mobile terminal for the target application program.
16. A mobile terminal, comprising:
the identification module is used for identifying the multi-dimensional code picture displayed by the first mobile terminal and acquiring authorization information and a user identification code; the authorization information comprises authorization authority and authorization time related information;
the sending module is used for sending the user identification code to a server;
the receiving module is used for receiving a notification message for notifying that the user identification code is successfully authorized according to the authorization information after the server successfully authenticates the user identification code;
wherein the authorization authority is all authority which is owned by the first mobile terminal and is aimed at a target application program or partial authority which is owned by the first mobile terminal and is aimed at the target application program.
CN201811578659.XA 2018-12-24 2018-12-24 Authorization method based on multi-dimensional code, mobile terminal and server Active CN109753784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811578659.XA CN109753784B (en) 2018-12-24 2018-12-24 Authorization method based on multi-dimensional code, mobile terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811578659.XA CN109753784B (en) 2018-12-24 2018-12-24 Authorization method based on multi-dimensional code, mobile terminal and server

Publications (2)

Publication Number Publication Date
CN109753784A CN109753784A (en) 2019-05-14
CN109753784B true CN109753784B (en) 2021-07-30

Family

ID=66403939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811578659.XA Active CN109753784B (en) 2018-12-24 2018-12-24 Authorization method based on multi-dimensional code, mobile terminal and server

Country Status (1)

Country Link
CN (1) CN109753784B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062026B (en) * 2019-12-11 2022-06-17 维沃移动通信有限公司 Verification information sharing method and electronic equipment
CN113342390B (en) * 2021-07-01 2024-06-04 统信软件技术有限公司 Authority management method and system for application program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253784A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Logging and authorization method and system
CN105119931A (en) * 2015-09-11 2015-12-02 深圳市亚略特生物识别科技有限公司 Application logging method and application logging system
CN105656922A (en) * 2016-02-04 2016-06-08 腾讯科技(深圳)有限公司 Login method and device of application program and intelligent equipment
CN105959297A (en) * 2016-06-23 2016-09-21 珠海市魅族科技有限公司 Quick login methods, terminal, smart device, and server
CN108510022A (en) * 2018-03-19 2018-09-07 维沃移动通信有限公司 A kind of Quick Response Code generates, verification method and server

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7721328B2 (en) * 2004-10-01 2010-05-18 Salesforce.Com Inc. Application identity design
JP6015592B2 (en) * 2013-08-14 2016-10-26 富士ゼロックス株式会社 Information processing apparatus and information processing program
CN108898206A (en) * 2018-06-11 2018-11-27 上海掌门科技有限公司 A kind of method and barcode scanning safe checking method generating gathering code
CN108880824B (en) * 2018-09-06 2024-01-26 山西特信环宇信息技术有限公司 Mobile phone bidirectional application terminal system of electronic identity card and application method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253784A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Logging and authorization method and system
CN105119931A (en) * 2015-09-11 2015-12-02 深圳市亚略特生物识别科技有限公司 Application logging method and application logging system
CN105656922A (en) * 2016-02-04 2016-06-08 腾讯科技(深圳)有限公司 Login method and device of application program and intelligent equipment
CN105959297A (en) * 2016-06-23 2016-09-21 珠海市魅族科技有限公司 Quick login methods, terminal, smart device, and server
CN108510022A (en) * 2018-03-19 2018-09-07 维沃移动通信有限公司 A kind of Quick Response Code generates, verification method and server

Also Published As

Publication number Publication date
CN109753784A (en) 2019-05-14

Similar Documents

Publication Publication Date Title
CN111062026B (en) Verification information sharing method and electronic equipment
CN110166439B (en) Equipment sharing method, terminal, router and server
CN110719319B (en) Resource sharing method, device, terminal equipment and storage medium
CN110457888B (en) Verification code input method and device, electronic equipment and storage medium
CN108629171B (en) Unread message processing method and terminal
CN110430119B (en) Information transmission method, server, terminal device and medium
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN113179413A (en) Information processing method and device, electronic equipment and storage medium
CN111756696A (en) Login method of application program, first electronic device and second electronic device
CN110941501A (en) Application sharing method and electronic equipment
CN108156537B (en) Remote operation method of mobile terminal and mobile terminal
CN109376519B (en) Fingerprint unlocking method and terminal equipment
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN111597540B (en) Login method of application program, electronic device and readable storage medium
CN109600340B (en) Operation authorization method, device, terminal and server
CN109753784B (en) Authorization method based on multi-dimensional code, mobile terminal and server
CN111107223B (en) Message processing method and electronic equipment
CN111159738B (en) Authority configuration method, application login method and device
CN110113486B (en) Application icon moving method and terminal
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN109451143B (en) Call method and mobile terminal
CN107995669B (en) Display method of wireless access point AP information and mobile terminal
CN109409068B (en) Operation execution method and terminal
CN109740000B (en) Multimedia file processing method and mobile terminal
CN107818247B (en) Mobile terminal unlocking method and mobile terminal

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