CN108418775A - A kind of login method, terminal and server - Google Patents

A kind of login method, terminal and server Download PDF

Info

Publication number
CN108418775A
CN108418775A CN201710070599.XA CN201710070599A CN108418775A CN 108418775 A CN108418775 A CN 108418775A CN 201710070599 A CN201710070599 A CN 201710070599A CN 108418775 A CN108418775 A CN 108418775A
Authority
CN
China
Prior art keywords
login
terminal
user
message
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.)
Pending
Application number
CN201710070599.XA
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710070599.XA priority Critical patent/CN108418775A/en
Publication of CN108418775A publication Critical patent/CN108418775A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0853Network architectures or network communication protocols for network security for authentication of entities using an additional device, e.g. smartcard, SIM or a different communication terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of login method, this method includes:When first terminal carries out the login of the first application, the first facility information of the first terminal that first terminal is sent is received;According to the first facility information and default log-on message library, inquiry whether there is at least one first user corresponding with the first facility information, and if there are at least one first users, send at least one first user to first terminal;The login authorization requests that first terminal is sent are received, log in authorization requests for asking the login for treating login user to be authorized;Response logs in authorization requests, sends and logs in notification message to second terminal;It receives second terminal response and logs in the permission authorization response message that notification message is sent, and according to allowing authorization response message to generate authorization message, send authorization message to first terminal.The embodiment of the present invention further simultaneously discloses a kind of terminal and server.

Description

A kind of login method, terminal and server
Technical field
The present invention relates to a kind of exchange technology more particularly to login method, the terminal and servers in the communications field.
Background technology
Under the fast-changing environment of mobile Internet, the exploitation of the application program (App, Application) in terminal, Publication cost and the ability of iteratively faster will be inferior to webpage, so realizing the application function of terminal by Web page It is very necessary.
Currently, when carrying out application function by Web page, the login of user is inevitably carried out;And existing end The method for holding the first application on quick registration webpage is created locally inside the first corresponding client of application by terminal Resident service Websvr obtains account from the Websvr of listed client and logs in bill and realizes quick registration.
However, using during above by Web page quick registration, terminal will be realized carries out the by Web page As soon as must be in the case where being logged in the client that the terminal has been applied first when the quick registration of application It just may be implemented, therefore, for being fitted without the client of the first application, or be not logged on the client wants of the first application and want It realizes that the quick registration of the first application is impossible by Web page, there is limitation.
Invention content
In order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of login method, terminal and server, it can In the login for not depending on terminal itself, realizes the quick registration for realizing the first application by Web page in the terminal, carry The high terminal logs in the applicability of the first application by Web page.
The technical proposal of the invention is realized in this way:
An embodiment of the present invention provides a kind of login methods, are applied in server, including:
When first terminal carries out the login of the first application, the of the first terminal that the first terminal is sent is received One facility information, the first terminal are to carry out the terminal that first application logs in by Web page;
According to first facility information and default log-on message library, inquiry whether there is and first facility information pair At least one first user answered, and if there are at least one first users, send at least one first user To the first terminal, at least one first user is the common login user on the first terminal;
The login authorization requests that the first terminal is sent are received, the login authorization requests treat login use for asking The login at family is authorized, described to wait for that login user is that the first terminal chooses from least one user;
The login authorization requests are responded, sends and logs in notification message to second terminal, the second terminal is to have logged in The terminal for waiting for login user;
It receives the second terminal and responds the permission authorization response message that the login notification message is sent, and according to described Allow authorization response message to generate authorization message, sends the authorization message to the first terminal, the authorization message is fair Perhaps the information of login user is waited for described in being logged in first application.
An embodiment of the present invention provides a kind of servers, including:
First receiving unit, for when first terminal carries out the login that first applies, receiving the first terminal and sending The first terminal the first facility information, the first terminal be by Web page carrying out it is described first application step on The terminal of record;
First query unit, for according to first facility information and default log-on message library, inquiry with the presence or absence of with Corresponding at least one first user of first facility information;
First transmission unit sends described at least one first and uses for if there are at least one first users To the first terminal, at least one first user is the common login user on the first terminal at family;
First receiving unit is additionally operable to receive the login authorization requests that the first terminal is sent, and the login is awarded Power request for asking the login for treating login user to be authorized, it is described wait for login user be the first terminal from it is described to It is chosen in a few user;
First transmission unit is additionally operable to respond the login authorization requests, sends and logs in notification message to second terminal, institute It is to have logged in the terminal for waiting for login user to state second terminal;
First receiving unit is additionally operable to receive the permission that the second terminal responds the login notification message transmission Authorization response message;
First transmission unit is additionally operable to generate authorization message according to the permission authorization response message, sends the mandate For information to the first terminal, the authorization message is the letter for allowing to wait for login user described in login in first application Breath.
The embodiment of the present invention additionally provides a kind of login method, is applied in first terminal, including:
It receives first and applies corresponding logging request, and obtain the first of the first terminal according to the logging request and set Standby information, the logging request by Web page trigger when first application logs in;
First facility information is sent to server, it is sending with first facility information pair to receive the server At least one first user answered, at least one first user are the common login user on the first terminal;
It receives and logs in selection instruction, select to wait stepping on from least one first user according to the login selection instruction Family is employed, and waits for that login user sends login authorization requests to the server according to described;
It receives the server and responds the login authorization response message that the login authorization requests are sent, the login authorizes The authorization message that login user is waited for described in allowing to log in first application is carried in response message;
According to the authorization message, login user is waited for described in realization in first application by the Web page It logs in.
An embodiment of the present invention provides a kind of first terminals, including:
Second receiving unit applies corresponding logging request for receiving first;
Second acquisition unit, the first facility information for obtaining the first terminal according to the logging request are described Logging request by Web page trigger when first application logs in;
Second transmission unit, for sending first facility information to server;
Second receiving unit is additionally operable to receive the corresponding extremely with first facility information of the server transmission Few first user, at least one first user are the common login user on the first terminal;And it receives and steps on Record selection instruction;
Selecting unit is used for being selected to wait logging in from least one first user according to the login selection instruction Family;
Second transmission unit is additionally operable to wait for that login user sends login mandate to the server and asks according to It asks;
Second receiving unit is additionally operable to receive the server and responds the login that the login authorization requests are sent and awards Response message is weighed, is carried in the login authorization response message and waits for login user described in allowing to log in first application Authorization message;
Unit is logged in, described according to the authorization message, being realized in being applied described first by the Web page Wait for the login of login user.
The embodiment of the present invention provides a kind of login method again, is applied in second terminal, including:
When first terminal carries out the login of the first application, the login notification message that server is sent is received;
The login notification message is responded, receives and agrees to Authorized operation;
According to the agreement Authorized operation, sending allows authorization response message to the server.
An embodiment of the present invention provides a kind of second terminals, including:
Third receiving unit, for when first terminal carries out the login that first applies, receiving the login that server is sent Notification message;And the response login notification message, it receives and agrees to Authorized operation;
Third transmission unit, for according to the agreement Authorized operation, sending to allow authorization response message to the service Device.
An embodiment of the present invention provides a kind of login method, terminal and servers, and the first application is carried out in first terminal When login, the first facility information of the first terminal that first terminal is sent is received, first terminal is to be carried out by Web page The terminal that first application logs in;According to the first facility information and default log-on message library, inquiry is believed with the presence or absence of with the first equipment Cease corresponding at least one first user, and if there are at least one first users, send at least one first user to One terminal, at least one first user are the common login user on first terminal;Receive the login mandate that first terminal is sent Request logs in authorization requests for asking the login for treating login user to be authorized, wait for login user be first terminal to It is chosen in a few user;Response logs in authorization requests, sends and logs in notification message to second terminal, second terminal is The terminal for waiting for login user is logged in;It receives second terminal response and logs in the permission authorization response message that notification message is sent, and According to allowing authorization response message to generate authorization message, authorization message is sent to first terminal, authorization message is to allow first The information for waiting for login user is logged in.Using above-mentioned technic relization scheme, since first terminal can be obtained by server The login user that waits in common login account is taken, and by the interaction of server and the authorization messages of second terminal, to obtain To authorization message, the quick registration for waiting for login user is just directly completed according to authorization message, therefore, avoids and inputs user name With the process of password, and it is not need to rely on the login situation of first terminal itself, realizes and pass through Web page in the first terminal The quick registration for realizing the first application improves the applicability that the first terminal logs in the first application by Web page.
Description of the drawings
Fig. 1 is a kind of Organization Chart of login system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart one of login method provided in an embodiment of the present invention;
Fig. 3 is a kind of flowchart 2 of login method provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart 3 of login method provided in an embodiment of the present invention;
Fig. 5 is a kind of flow chart for login method that the embodiment of the present invention also provides;
Fig. 6 is the display interface of at least one first user of illustrative first terminal provided in an embodiment of the present invention Figure;
Fig. 7 is a kind of flow chart for login method that the embodiment of the present invention provides again;
Fig. 8 is the login notification message surface chart of illustrative second terminal provided in an embodiment of the present invention;
Fig. 9 is a kind of flow chart one of login method provided in an embodiment of the present invention;
Figure 10 is a kind of interaction figure one of login method provided in an embodiment of the present invention;
Figure 11 is a kind of interaction figure two of login method provided in an embodiment of the present invention;
Figure 12 is a kind of interaction figure three of login method provided in an embodiment of the present invention;
Figure 13 is that the login notification message of illustrative first terminal provided in an embodiment of the present invention sends success message circle Face figure;
Figure 14 is illustrative a kind of interaction figure of login method provided in an embodiment of the present invention;
Figure 15 is a kind of structural schematic diagram one of server provided in an embodiment of the present invention;
Figure 16 is a kind of structural schematic diagram two of server provided in an embodiment of the present invention;
Figure 17 is a kind of structural schematic diagram three of server provided in an embodiment of the present invention;
Figure 18 is a kind of structural schematic diagram four of server provided in an embodiment of the present invention;
Figure 19 is a kind of structural schematic diagram five of server provided in an embodiment of the present invention;
Figure 20 is a kind of structural schematic diagram one of first terminal provided in an embodiment of the present invention;
Figure 21 is a kind of structural schematic diagram two of first terminal provided in an embodiment of the present invention;
Figure 22 is a kind of structural schematic diagram three of first terminal provided in an embodiment of the present invention;
Figure 23 is a kind of structural schematic diagram one of second terminal provided in an embodiment of the present invention;
Figure 24 is a kind of structural schematic diagram two of second terminal provided in an embodiment of the present invention;
Figure 25 is a kind of structural schematic diagram three of second terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes.
Account:User obtains the customer identification number of server distribution using a service.
Credential:Corresponding to each login user account, it includes password that user, which provides, and the forms such as fingerprint can authenticate to The information of account number identity.
Log in bill:User logs in using before a kind of business, it is necessary to verify account number and credential;After being verified, by It is responsible for the backstage server of verification to the signature of the result that is verified (asymmetric or symmetric encrypted form can), this knot Fruit+digital signature data is exactly to log in bill.
Quick registration:When user logs in some client, does not have to input account and credential, but use existing account It is logged in bill is logged in.
Terminal:PC used by a user, smart mobile phone etc..
Commonly used equipment:The equipment is used for multiple times in finger user's short time and carrys out login user account.
Non- commonly used equipment:It is not common equipment.
Globally unique identifier (GUID, Globally Unique Identifier):The unique mark of equipment.
Websvr:The server of HTTP/HTTPS agreements is provided.
JS:Full name JavaScript, a kind of executable script of browser.
Fig. 1 is a kind of Organization Chart of the corresponding login system of login method in the embodiment of the present invention, and Fig. 1 includes:One Or multiple servers 1, at least two terminal devices 2 and network 4, network 4 include router, gateway etc. network entity, figure In do not embody.Terminal device 2-1 to 2-5 carries out information exchange by cable network or wireless network with server, so as to Relevant data information transfer is collected from terminal 2-1 to 2-5 to server.The type of terminal device is as shown in Figure 1, include hand Machine (terminal 2-3), tablet computer or PDA (terminal 2-5), desktop computer (terminal 2-2), PC machine (terminal 2-4), intelligence TV (terminals The types such as 2-1).Wherein, the application needed for various users is installed in terminal device, for example has the application of amusement function (such as Video Applications, audio play application, game application, ocr software), for another example having the application of service function, (such as digital map navigation is answered With, purchase by group application, camera application etc.).
Framework based on Fig. 1, the terminal in login system provided in an embodiment of the present invention is at least two terminals, in this hair Can be first terminal 2 and second terminal 3 in bright embodiment, wherein first terminal 2 and second terminal 3 are terminal device 2-1 To any two terminal device in 2-5.
Based on above-mentioned framework, it is proposed that each embodiment below.
Embodiment one
An embodiment of the present invention provides a kind of login methods, are applied in server, as shown in Fig. 2, this method can wrap It includes:
S101, first terminal carry out first application login when, receive first terminal send first terminal first Facility information, the first terminal are to carry out the terminal that the first application logs in by Web page.
It should be noted that a kind of login method provided in an embodiment of the present invention passes through first terminal suitable for user Web page carries out in the scene of user account login.
Since a variety of applications can be installed in existing terminal, for example, chat application, Video Applications, game application etc., because This, the account of oneself can be arranged in user in a certain application, log in a certain application (such as the using the account of oneself every time One application), to carry out personalized recommendation or the use of oneself.For example, when carrying out the inquiry of technical problem on certain professional website, Must be the page that user can just enter the professional website, alternatively, user needs when certain shopping website carries out shopping payment The account of oneself is logged in pay etc..In embodiments of the present invention, user can be realized by the Web page of first terminal The user of first application logs in, and preferably by Web page wait for the scene of login user quick registration on computers.
In addition, when first terminal is from certain function of progress or setting, it is possibility to have be directed to different user's difference accounts Number login setting, first terminal here refers to the terminal used for more people.
By above-mentioned scene description it is found that when user opens the browser of the first application, i.e., carry out the in first terminal As soon as when the login of application, server receives the first facility information of the first terminal of first terminal transmission, which is The terminal that the first application logs in is carried out by Web page.
That is, user on first terminal open first application Web page reach login interface when, this first eventually End just has sent the first facility information of oneself to server.Wherein, the first facility information obtain will be in first terminal side It is illustrated in corresponding login method.
S102, according to the first facility information and default log-on message library, inquiry whether there is and first facility information pair At least one first user answered, and if there are at least one first user, sending at least one first user to first eventually End, at least one first user are the common login user on first terminal.
Server is after the first facility information for receiving the first terminal that first terminal is sent, since server can obtain It takes first to apply corresponding default log-on message library, and presets the facility information and terminal for preserving terminal in log-on message library The log-on message of common user between login user, therefore, the server can be according to the first facility informations and default login Information bank, inquiry whether there is common login user corresponding with first facility information, i.e., at least one first user.
It should be noted that first terminal provided in an embodiment of the present invention waits for the normal of login user for what user wanted to log in Only it is that the present invention can be used to implement when the condition of the commonly used equipment of login user meeting first terminal with equipment The login method that example provides wait for the login of the first application of login user.If non-commonly used equipment cannot then use the present invention The login method that embodiment provides wait for the login of the first application of login user.
In embodiments of the present invention, server applies corresponding background server, the server can be on backstage for first Count the log-on message that the user couple first in all terminal applies.That is, server can get terminal Log-on message between facility information and the login user of terminal, the server is to the login user in each terminal according to default Registration conditions screening, it may be determined that go out common login user corresponding with each terminal, and then server thus can be true Which the common login user made on first terminal is.At this moment, if server is inquired there are at least one first user, It namely characterizes common login user on the first terminal to have found, then, which sends at least one first user extremely First terminal, so that the first terminal selects that wants to log in wait for login user in common login user, this at least one the One user is the common login user on first terminal.
It should be noted that in embodiments of the present invention, at least one user that server is sent is to first terminal, hair The form of at least one user sent can be identified at least one of account, the pet name or head portrait of at least one user, The embodiment of the present invention is not restricted.
In embodiments of the present invention, default registration conditions can be that the login times of login user meet default login times When, then the corresponding common login user of the first facility information that the login user is first terminal is characterized, the common login user Number determined according to specific judgement, can be at least one (i.e. above-mentioned at least one first user), it is specific determining Login user is to commonly use the default registration conditions of logging device can also by other means be judged, for example, according to stepping on The features such as the number of days of record are judged that the embodiment of the present invention is not restricted.
It should be noted that the form of each statistical information of terminal on the server is the corresponding equipment letter of each terminal Breath characterizes, therefore, in embodiments of the present invention, preserved in the default log-on message library that server obtains be facility information with The correspondence of common login user.
Preferably, first terminal is computer or PC in the embodiment of the present invention, and the first facility information can be GUID。
Further, it is most that the default registration conditions in the embodiment of the present invention, which can also be the common login user selected, The nearly several users etc. logged in using first terminal, the embodiment of the present invention is not restricted.
It is understood that at least one user that server is sent to first terminal in the embodiment of the present invention is first whole It, can be to avoid the quick registration of the user logged on first terminal once in a while, to protect when common login user on end The safety of the account of temporary login user is protected.
Further, server is according to the first facility information and default log-on message library, inquiry with the presence or absence of with this After corresponding at least one first user of one facility information, if at least one first user is not present, first end is characterized End is not commonly used equipment, is not suitable for login method provided in an embodiment of the present invention, at this moment, server can inform first terminal It cannot carry out quick registration or inform that first terminal is logged in by conventional user account and password, concrete implementation mistake The journey embodiment of the present invention is not restricted.
S103, the login authorization requests that first terminal is sent are received, which uses for asking to treat to log in The login at family is authorized, this waits for that login user is that the first terminal chooses from least one user.
S104, response log in authorization requests, send and log in notification message to second terminal, which is to have logged in wait for The terminal of login user.
Server can obtain oneself after sending at least one first user to first terminal on the first terminal Which user can be logged in, therefore, user has been selected on first terminal after waiting for login user, the first terminal It sends and logs in authorization requests to server, i.e., the server receives the login authorization requests of first terminal transmission, the login Authorization requests for asking the login for treating login user to be authorized, this wait for login user be the first terminal from this at least one The user chosen in a user.Then, server can respond login authorization requests, and transmission login notification message to second is eventually End, the second terminal are to have logged in wait for that the terminal of login user receives the login authorization requests that first terminal is sent.
In embodiments of the present invention, server is at the login authorization requests for having received first terminal transmission, first end End is sought to server for authentication information, and first terminal can directly be logged according to authorization message, and without carrying out The input of user account and password, the i.e. process of request server mandate.The licensing process of server is to need with second eventually again End carries out logging in authorization messages to realize, only in the case where having logged in the terminal for waiting for login user permission, the service Device can just give first terminal authorization message.
S105, the permission authorization response message that second terminal response logs in notification message transmission is received, and according to the permission Authorization response message generates authorization message, sends the authorization message to first terminal, which is to allow in the first application It is middle to log in the information for waiting for login user.
Server response logs in authorization requests, sends after logging in notification message to second terminal, since second terminal connects It receives login notification message just to need that the login notification message respond, if allowing to authorize, then server will connect It receives second terminal response and logs in the permission authorization response message that notification message is sent, and can be disappeared according to the permission authorization response Breath generates authorization message, sends the authorization message to first terminal, which is to allow to log in the first application to wait stepping on Employ the information at family.Wherein, it can be what server had logged on according to second terminal that server, which generates and logs in the process of bill, It waits for the acquisition of information of login user or generates above-mentioned login bill.
It should be noted that the authorization message in the embodiment of the present invention is to log in bill, such first terminal can be from clothes Quick registration can be directly realized by by being obtained at business device after logging in bill completes to wait for the login of login user.And log in bill Or authorization message is just generated when server has received the permission authorization response message of second terminal again.
It is understood that in embodiments of the present invention, server is not directly to the common login on commonly used equipment User directly authorizes, it is allowed to be logged on first terminal, and has to be by being stepped on to identical commonly use for second terminal It when employing the permission at family, can just authorize, this ensure that the safety of user's login account relevant information, it is determined that user's Privacy.
Further, as shown in figure 3, in the embodiment of the present invention, in server according to the first facility information and default login Information bank is inquired before at least one first user corresponding with the first facility information, i.e. before S102, the embodiment of the present invention is also Including:S106.It is specific as follows:
S106, it obtains and presets log-on message library.
In server according to the first facility information and default log-on message library, inquiry is corresponding with the first facility information at least Before one the first user, which needs first to obtain default log-on message library.
In embodiments of the present invention, what is stored in default log-on message library is that facility information is corresponding with common login user Relationship.
Specifically, as shown in figure 4, S106 is specifically included:S1061-S1063.It is specific as follows:
S1061, statistical history log-on message, the historical log information include all logged-in users and its corresponding institute There is terminal.
S1062, according to historical log information, determine corresponding first logged-in user of each terminal.
S1063, according to presetting registration conditions, it is logged common in each terminal from being determined in the first logged-in user Login user, using the correspondence library of the corresponding common login user of each terminal as default log-on message library.
In embodiments of the present invention, server applies corresponding background server, the server can be on backstage for first The log-on message that the user couple first in all terminal applies is counted, server can be with statistical history log-on message, the history Log-on message includes all logged-in users and its corresponding all terminals.Server can be according to historical log information, really Fixed each corresponding first logged-in user of terminal, that is, server can get the facility information and terminal of terminal Login user (the first logged-in user) between log-on message, the server is to the login user in each terminal according to pre- If registration conditions screening, it may be determined that go out common login user corresponding with each terminal, and then server thus can be with Determine which the common login user on first terminal is, that is, server can be according to default registration conditions, from Common login user logged in each terminal (at least one user) is determined in one logged-in user, which should The correspondence library of the corresponding common login user of each terminal is as default log-on message library.Then, if server is looked into It askes out that there are at least one first users, that is, characterizes and commonly use login user on the first terminal and have found, then, the service Device sends at least one first user to first terminal, so that the first terminal selects to want login in common login user Wait for login user, which is the common login user on first terminal.
It should be noted that first terminal is completed in the login method provided through the embodiment of the present invention waits for login user Quick registration after, first facility information can be obtained in server and waits for login user information, and according to this first Facility information and wait for that login user information can update default log-on message library.
It is understood that waiting for that login is used since first terminal can obtain to commonly use in login account by server Family, and by the interaction of server and the authorization messages of second terminal, to get authorization message, directly just believed according to mandate Breath completes the quick registration for waiting for login user, therefore, avoids the process of input username and password, and be not need to rely on The login situation of first terminal itself is realized the quick registration for realizing the first application by Web page in the first terminal, is improved The first terminal logs in the applicability of the first application by Web page.
Embodiment two
The embodiment of the present invention additionally provides a kind of login method, is applied in first terminal, as shown in figure 5, this method can To include:
S201, first is received using corresponding logging request, and obtain the first of first terminal according to the logging request and set Standby information, the logging request by Web page trigger when the first application logs in.
It should be noted that a kind of login method provided in an embodiment of the present invention passes through first terminal suitable for user Web page carries out in the scene of user account login.
In embodiments of the present invention, the Web page of the first whole terminal is realized by JS.
Since a variety of applications can be installed in existing terminal, for example, chat application, Video Applications, game application etc., because This, the account of oneself can be arranged in user in a certain application, log in a certain application (such as the using the account of oneself every time One application), to carry out personalized recommendation or the use of oneself.For example, when carrying out the inquiry of technical problem on certain professional website, Must be the page that user can just enter the professional website, alternatively, user needs when certain shopping website carries out shopping payment The account of oneself is logged in pay etc..In embodiments of the present invention, user can be realized by the Web page of first terminal The user of first application logs in, and preferably by Web page wait for the scene of login user quick registration on computers.
In addition, when first terminal is from certain function of progress or setting, it is possibility to have be directed to different user's difference accounts Number login setting, first terminal here refers to the terminal used for more people.
By above-mentioned scene description it is found that when user opens the browser of the first application, i.e., first terminal receives first Using corresponding logging request, then, the first equipment which can obtain first terminal according to the logging request is believed Breath, the logging request by Web page trigger when the first application logs in.
It should be noted that the first facility information of the first terminal in the embodiment of the present invention is by first terminal It is obtained in the resident service Websvr locallyd create inside the client of first application.Specific acquisition modes will be follow-up It is described in detail in embodiment.
S202, send the first facility information to server, receive that server sends it is corresponding with the first facility information extremely Few first user, at least one first user are the common login user on first terminal.
The first facility information, that is, server that first terminal obtains first terminal according to the logging request just receives first eventually After the first facility information for holding the first terminal sent, which needs to be waited for by server acquisition authorization message The quick registration of login user, then, first terminal just send the first facility information to server, which is obtained by oneself The default log-on message library taken, has inquired at least one first user corresponding with the first facility information, and by this at least one A first user is sent to first terminal, so that the first terminal selects one to wait logging in use from least one first user Family carries out quick registration.Wherein, which is the common login user on first terminal.
It should be noted that in embodiments of the present invention, at least one user that server is sent is to first terminal, hair The form of at least one user sent can be identified at least one of account, the pet name or head portrait of at least one user, The embodiment of the present invention is not restricted.That is, the form at least one user that first terminal receives can be at least At least one of account, the pet name or head portrait of one user identify, and the embodiment of the present invention is not restricted.
Illustratively, first terminal is computer A, and user opens the browser using A on computer A, process and server Login interaction after, this determines that user A is normal to be commonly used or logging on computer A using the corresponding background servers of A With login user, then, computer A has received the information of the user A of server transmission, i.e., as shown in fig. 6, computer A is using A The head portrait of user A is shown on the login interface of corresponding Web page.
It is understood that at least one user that server is sent to first terminal in the embodiment of the present invention is first whole It, can be to avoid the quick registration of the user logged on first terminal once in a while, to protect when common login user on end The safety of the account of temporary login user is protected.
S203, login selection instruction is received, selects to wait stepping on from least one first user according to the login selection instruction Family is employed, and waits for that login user is sent to server according to this and logs in authorization requests.
After first terminal receives at least one first user corresponding with the first facility information that server is sent, due to The information of oneself common login user can be known on the first terminal, then, user can be according to common login user, therefrom The login user that waits for that the user wants to log in is selected, i.e. first terminal has received the selection of the login based on user's operation and refers to It enables, and the first terminal can select to wait for login user from least one first user according to selection instruction is logged in, in this way If, first terminal can be gone to server request treat login user carry out authorize log in, then, which can Authorization requests are logged in wait for that login user is sent to server according to this.
Illustratively, it is exactly that computer has received login selection instruction as shown in fig. 6, user clicks the head portrait of user A, choosing It is the process for waiting for login user to have selected user A.
S204, the login authorization response message that server response logs in authorization requests transmission, the login authorization response are received Being carried in message allows to log in the authorization message for waiting for login user in the first application.
First terminal selects according to the login selection instruction from least one first user to wait for login user, and according to this After waiting for that login user sends to server and logs in authorization requests, the server can whereabouts second terminal log in it is logical Know, to determine whether to allow the login authorization requests for waiting for login user on first terminal, and server is receiving second If the permission authorization response message of terminal, so that it may to generate authorization message, and by the authorization message by logging in authorization response Message is sent to first terminal.
It should be noted that in embodiments of the present invention, server is in the login mandate for having received first terminal transmission Request, the first terminal are sought to server for authentication information, and first terminal can directly be stepped on according to authorization message Record, and without carrying out the input of user account and password, the i.e. process of request server mandate.The licensing process of server is again It needs to carry out logging in authorization messages with second terminal realizing, only in the feelings for having logged in the terminal for waiting for login user permission Under condition, which can just give first terminal authorization message.
In embodiments of the present invention, authorization message is to log in bill, and such first terminal can obtain from server It can be directly realized by the login that quick registration completion waits for login user after logging in bill.And log in bill or authorization message It is just to be generated when server has received the permission authorization response message of second terminal again.
S205, according to authorization message, the login for waiting for login user is realized in the first application by Web page.
First terminal receive server response log in authorization requests send login authorization response message after, this first eventually End just obtains authorization message, and since the authorization message is to log in bill, in other words, which has obtained can be with The foundation of quick registration, in this case, the first terminal can be realized directly according to the login bill and carry out the in Web page The login for waiting for login user of one application.
It is understood that waiting for that login is used since first terminal can obtain to commonly use in login account by server Family, and by the interaction of server and the authorization messages of second terminal, to get authorization message, directly just believed according to mandate Breath completes the quick registration for waiting for login user, therefore, avoids the process of input username and password, and be not need to rely on The login situation of first terminal itself is realized the quick registration for realizing the first application by Web page in the first terminal, is improved The first terminal logs in the applicability of the first application by Web page.
Embodiment three
The embodiment of the present invention provides a kind of login method again, is applied in second terminal, as shown in fig. 7, this method can To include:
S301, first terminal carry out first application login when, receive server send login notification message.
In embodiments of the present invention, server is at the login authorization requests for having received first terminal transmission, first end End is sought to server for authentication information, and first terminal can directly be logged according to authorization message, and without carrying out The input of user account and password, the i.e. process of request server mandate.The licensing process of server is to need with second eventually again End carries out logging in authorization messages to realize, only in the case where having logged in the terminal for waiting for login user permission, the service Device can just give first terminal authorization message.
That is, when first terminal carries out the login of the first application, when first terminal asks to wait logging in server After the login authorization requests of user, server, which just has sent, logs in notification message to second terminal, the second terminal is according to login Notification message to decide whether permission first terminal in the first application wait for the login of login user.I.e. second terminal has received The login notification message that server is sent.
It should be noted that the second terminal in the embodiment of the present invention is to have had logged on the terminal for waiting for login user, example Such as, mobile phone, tablet or apparatus such as computer, the embodiment of the present invention are not restricted, still, the second terminal in the embodiment of the present invention For the electronic equipment different from first terminal.
Further, after second terminal receives the login notification message that service is sent, which can be current It is shown on display interface and logs in notification message, then, user can determine whether to permission the on display interface in this prior One terminal carries out the login for waiting for login user of the first application.
Illustratively, as shown in Figure 8, it is assumed that second terminal is mobile phone B, then the mobile phone B has received the login of server It after notification message, is shown in current display interface and logs in notification message, is i.e. " webpage, which logs in, to be confirmed ", user is prompted to have first terminal Request, which authorizes, waits for the authorization requests of login user, in addition, can show the title of the first application in mobile phone B piece uploading, wait logging in and use The login account and login time at family.
S302, response log in notification message, receive and agree to Authorized operation.
Second terminal is after receiving the login notification message that server is sent, since the second terminal can be based on user Operation respond the login notification message, therefore, the second terminal based on user's operation have received unified authorization operation.
Specifically, second terminal response logs in notification message, is received in current display interface and agree to Authorized operation.
Further, it is based on user's operation, second terminal can also receive in current display interface and disagree Authorized operation, In this case, server is the quick registration for not allowing first terminal in the first application wait for login user.
Illustratively, as shown in figure 8, log in notification message shown in mobile phone B (second terminal) when can also show and " step on Response operation button, the user such as record " and " cancel and logging in " click " login ", then characterize mobile phone B and have received agreement Authorized operation;With " cancel log in " is clicked at family, then characterizes mobile phone B and have received and disagree Authorized operation.
S303, according to Authorized operation is agreed to, sending allows authorization response message to server.
Second terminal logs in notification message in response, receives after agreeing to Authorized operation, and it is to allow to characterize the second terminal First terminal realizes the login for waiting for login user of the first application by webpage, and then, second terminal transmission allows to authorize Response message is to server.
It is understood that waiting for that login is used since first terminal can obtain to commonly use in login account by server Family, and by the interaction of server and the authorization messages of second terminal, to get authorization message, directly just believed according to mandate Breath completes the quick registration for waiting for login user, therefore, avoids the process of input username and password, and be not need to rely on The login situation of first terminal itself is realized the quick registration for realizing the first application by Web page in the first terminal, is improved The first terminal logs in the applicability of the first application by Web page.
Example IV
Realization process based on embodiment two, the embodiment of the present invention additionally provide a kind of login method, are applied to first eventually In end, before S201, before first terminal receives the first corresponding logging request of application, as shown in figure 9, this method can be with Including:
S2000, when first is opened using corresponding Web, access local resident service, got by resident service Hardware information.
S2001, the second facility information is calculated according to hardware information.
S2002, the second facility information is encrypted, obtains the first facility information.
It should be noted that being equipped with first in embodiments of the present invention, on first terminal applies corresponding client, this In inventive embodiments, when the client of the first application of installation on first terminal, which can grasp user simultaneously Make to register one in system with first using corresponding permanent service, which starts a Websvr.
Then, when first is opened using corresponding Web, first terminal can ask local resident service, specifically Local Websvr is accessed, the Websvr started by resident service gets hardware information, i.e. first terminal passes through Websvr The hardware informations such as the disc information of first terminal have been got, and according to these hardware informations, first terminal can be calculated Second facility information, for example, GUID.Finally, it after first terminal can encrypt the second facility information, obtains encrypted first and sets Standby information.
Specifically, when first is opened using corresponding Web, the ciphering process of the first facility information can be by clothes Business device is encrypted, and the second facility information calculated can be sent to server by first terminal by encrypted tunnel, should Server encrypts the second facility information, obtains the first facility information, and first facility information is sent to first terminal.
It should be noted that after server gets the first facility information, since the first facility information is after encrypting Information, therefore, server also needs to be decrypted accordingly, obtains the second facility information, by the second facility information and pre- If log-on message library, the inquiry of at least one first user is realized.
Illustratively, the second facility information is GUID, and the first facility information is GUIDSig.
It is understood that using encrypted first facility information in the embodiment of the present invention, so eventually first End ensure that the safety of information transmission, it is therefore prevented that the attack of malice with the interactive process of server.
Embodiment five
An embodiment of the present invention provides a kind of login methods, and as shown in Figure 10, this method may include:
S401, first terminal receive first and apply corresponding logging request, and obtain first terminal according to the logging request The first facility information, the logging request by Web page carry out first application log in when trigger.
In the embodiment of the present invention " the corresponding logging request of the first application of first terminal reception, and according to the logging request Obtain first terminal the first facility information, the logging request be by Web page carry out first application log in when trigger " mistake Journey is consistent with the description of the S201 in embodiment two, and the embodiment of the present invention repeats no more.
S402, first terminal send the first facility information to server.
In the process and embodiment two of " first terminal sends the first facility information to server " in the embodiment of the present invention S202 description it is consistent, the embodiment of the present invention repeats no more.
S403, server, which obtain, presets log-on message library.
The process of " server, which obtains, presets log-on message library " in the embodiment of the present invention is with the S106's in embodiment one Description is consistent, and the embodiment of the present invention repeats no more.
According to the first facility information and default log-on message library, inquiry whether there is and first equipment for S404, server Corresponding at least one first user of information, and if there are at least one first users, send at least one first user extremely First terminal, at least one first user are the common login user on first terminal.
In the embodiment of the present invention " server whether there is according to the first facility information and default log-on message library, inquiry At least one first user corresponding with first facility information, and if there are at least one first user, sending at least one A first user is to first terminal " process it is consistent with the description of the S102 in embodiment one, the embodiment of the present invention repeats no more.
S405, first terminal, which receive, logs in selection instruction, is selected from least one first user according to selection instruction is logged in It selects and waits for login user, and wait for that login user is sent to server according to this and log in authorization requests.
In the embodiment of the present invention " first terminal, which receives, logs in selection instruction, according to logging in selection instruction from least one Selection waits for login user in first user, and waits for that login user is sent to server according to this and log in authorization requests " process with The description of S203 in embodiment two is consistent, and the embodiment of the present invention repeats no more.
S406, server response log in authorization requests, send and log in notification message to second terminal, which is Log in the terminal for waiting for login user.
In the embodiment of the present invention " server response logs in authorization requests, sends and logs in notification message to second terminal, should Second terminal is to have logged in the terminal for waiting for login user " process it is consistent with the description of the S104 in embodiment one, the present invention is real Example is applied to repeat no more.
S407, second terminal response log in notification message, receive and agree to Authorized operation.
The process and reality of " second terminal response logs in notification message, receives and agrees to Authorized operation " in the embodiment of the present invention The description for applying the S302 in example three is consistent, and the embodiment of the present invention repeats no more.
According to Authorized operation is agreed to, sending allows authorization response message to server for S408, second terminal.
In the embodiment of the present invention " second terminal according to agree to Authorized operation, send allow authorization response message to service The process of device " is consistent with the description of the S303 in embodiment three, and the embodiment of the present invention repeats no more.
S409, server send the authorization message to first terminal according to allowing authorization response message to generate authorization message, The authorization message is to allow to log in the information for waiting for login user in the first application.
In the embodiment of the present invention " server according to allow authorization response message generate authorization message, send the mandate letter Cease to first terminal " process it is consistent with the description of the S105 in embodiment one, the embodiment of the present invention repeats no more.
S410, first terminal are realized in the first application by Web page according to authorization message and wait for stepping on for login user Record.
In the embodiment of the present invention " first terminal is realized in the first application by Web page and waits stepping on according to authorization message Employ the login at family " process it is consistent with the description of the S205 in embodiment two, the embodiment of the present invention repeats no more.
Further, as shown in figure 11, S404, S405 and S406 in the embodiment of the present invention can also be specifically: S4041, S4051 and S4061.It is specific as follows:
According to the first facility information and default log-on message library, inquiry whether there is and first equipment for S4041, server Corresponding at least one first user of information, and if there are at least one first user, generate signing messages, by this at least one A first user and the signing messages are sent to first terminal, which is the common login on first terminal User.
S4051, first terminal, which receive, logs in selection instruction, is selected from least one first user according to selection instruction is logged in It selects and waits for login user, and wait for that login user is sent to server according to this and log in authorization requests and signing messages.
The validity of S4061, server authentication signing messages, when the signing messages is effective, response logs in authorization requests, It sends and logs in notification message to second terminal, which is to have logged in the terminal for waiting for login user.
On the basis of based on above-mentioned S404, S405 and S406, first terminal, second terminal and server are interacting When, more processes of interaction and the verification of signing messages.
This is because:During logging in mandate, therefore the generation of malicious attack in order to prevent introduces A.L.S. The concept (for example, MidSig) of breath, server can be effectively prevented the attack of malicious user by the verification to signing messages Behavior or the act of authorization of assuming another's name.
Further, as shown in figure 12, login method provided in an embodiment of the present invention, this method can also include first whole Active poll is held to carry out the acquisition process of authorization message, it is specific as follows:
S501, first terminal receive first and apply corresponding logging request, and obtain first terminal according to the logging request The first facility information, the logging request by Web page carry out first application log in when trigger.
In the embodiment of the present invention " the corresponding logging request of the first application of first terminal reception, and according to the logging request Obtain first terminal the first facility information, the logging request be by Web page carry out first application log in when trigger " mistake Journey is consistent with the description of the S201 in embodiment two, and the embodiment of the present invention repeats no more.
S502, first terminal send the first facility information to server.
In the process and embodiment two of " first terminal sends the first facility information to server " in the embodiment of the present invention S202 description it is consistent, the embodiment of the present invention repeats no more.
S503, server, which obtain, presets log-on message library.
The process of " server, which obtains, presets log-on message library " in the embodiment of the present invention is with the S106's in embodiment one Description is consistent, and the embodiment of the present invention repeats no more.
According to the first facility information and default log-on message library, inquiry whether there is and first equipment for S504, server Corresponding at least one first user of information, and if there are at least one first users, send at least one first user extremely First terminal, at least one first user are the common login user on first terminal.
In the embodiment of the present invention " server whether there is according to the first facility information and default log-on message library, inquiry At least one first user corresponding with first facility information, and if there are at least one first user, sending at least one A first user is to first terminal " process it is consistent with the description of the S102 in embodiment one, the embodiment of the present invention repeats no more.
S505, first terminal, which receive, logs in selection instruction, is selected from least one first user according to selection instruction is logged in It selects and waits for login user, and wait for that login user is sent to server according to this and log in authorization requests.
In the embodiment of the present invention " first terminal, which receives, logs in selection instruction, according to logging in selection instruction from least one Selection waits for login user in first user, and waits for that login user is sent to server according to this and log in authorization requests " process with The description of S203 in embodiment two is consistent, and the embodiment of the present invention repeats no more.
S506, server response log in authorization requests, send and log in notification message to second terminal, which is Log in the terminal for waiting for login user.
In the embodiment of the present invention " server response logs in authorization requests, sends and logs in notification message to second terminal, should Second terminal is to have logged in the terminal for waiting for login user " process it is consistent with the description of the S104 in embodiment one, the present invention is real Example is applied to repeat no more.
S507, server, which are sent, logs in notification message transmission success message to first terminal.
Server response logs in authorization requests, sends after logging in notification message to second terminal, which can accuse Know first terminal, had sent to second terminal and logged in notification message, user can be prompted to go in second terminal to carry out together Meaning Authorized operation.
Illustratively, as shown in figure 13, it is assumed that when first terminal is computer A, show " login authentication " on computer A, i.e., It logs in notification message and sends success message, prompt user's " please determining the login using this account in second terminal " and wait logging in The head portrait etc. of user, that is, user A.
S508, second terminal response log in notification message, receive and agree to Authorized operation.
The process and reality of " second terminal response logs in notification message, receives and agrees to Authorized operation " in the embodiment of the present invention The description for applying the S302 in example three is consistent, and the embodiment of the present invention repeats no more.
According to Authorized operation is agreed to, sending allows authorization response message to server for S509, second terminal.
In the embodiment of the present invention " second terminal according to agree to Authorized operation, send allow authorization response message to service The process of device " is consistent with the description of the S303 in embodiment three, and the embodiment of the present invention repeats no more.
According to allowing authorization response message to generate authorization message, which is to allow to answer first for S510, server The information of login user is waited for middle login.
In the embodiment of the present invention " according to allowing authorization response message to generate authorization message, which is server Allow to log in the first application to wait for the information of login user " process it is consistent with the description of the S105 in embodiment one, this hair Bright embodiment repeats no more.
Unlike, in the embodiment of the present invention, server will not actively send authorization message to first terminal, but this One terminal removes active obtaining.
S512, first terminal send success message according to notification message is logged in, and automatic regular polling server is with the presence or absence of mandate Information.
First terminal logs in after notification message sends success message receiving, and the first terminal is always to server It is timed poll and whether there is authorization message, specifically, being realized by JS.
If S511, being polled to there are authorization message, first terminal is answered according to authorization message, by Web page first The login of login user is waited for middle realization.
In the embodiment of the present invention " first terminal is realized in the first application by Web page and waits stepping on according to authorization message Employ the login at family " process it is consistent with the description of the S205 in embodiment two, the embodiment of the present invention repeats no more.
Unlike, the premise that the embodiment of the present invention is realized is that first terminal is polled to from server in the presence of mandate letter When breath, which then according to authorization message, is realized in the first application by Web page and waits for stepping on for login user Record.
It is understood that waiting for that login is used since first terminal can obtain to commonly use in login account by server Family, and by the interaction of server and the authorization messages of second terminal, to get authorization message, directly just believed according to mandate Breath completes the quick registration for waiting for login user, therefore, avoids the process of input username and password, and be not need to rely on The login situation of first terminal itself is realized the quick registration for realizing the first application by Web page in the first terminal, is improved The first terminal logs in the applicability of the first application by Web page.
Further, illustratively, as shown in figure 14, server can be divided into login service device, facility information server And authorization server, all embodiments above-mentioned are based on, a kind of login method provided in an embodiment of the present invention may include:
Step 0:User can register one in the operating system of PC simultaneously when installing client on PC (first terminal) Resident service, the resident service can start a websvr.
Step 1:The websvr of pc access the machine inquires the GUID (the second facility information) of the machine.
Step 2:GUID is calculated according to hardware information in the websvr of PC the machine, and is sent GUID using encrypted tunnel To login service device.
Step 3:Login service device encrypts GUID, obtains GUIDSig (the first facility information).
Step 4:PC gets GUIDSig (the first facility information).
Step 5:PC initiates logging request to login service device, and GUIDSig is taken in request.
Step 6:Login service device decrypts GUIDSig, obtains GUID, and inquiring the GUID to facility information server corresponds to Equipment whether be user commonly used equipment (process for judging whether there is at least one first user).
Step 7:If the corresponding equipment of GUID is the commonly used equipment of user, facility information server is by the letter of commonly used equipment It ceases (at least one first user) and returns to login service device.
Step 8:Login service device generates a middle signature MidSig (signing messages), returns to MidSig and at least one First user is to PC.
Step 9:PC gets middle signature MidSig, indicates that the login mode of the present invention is available, shown on the page to The head portrait of few first user, user click from the head portrait of at least one first user and wait for that the head portrait of login user is stepped on Record.
Step 10:PC asks to authorize to login service device, and middle signature MidSig is taken in parameter.
Step 11:Login service device verifies the validity of middle signature MidSig, is sent out to authorization server after being proved to be successful Play authorization requests, it is desirable that user authorizes in cell phone application (second terminal).
Step 12:Authorization server to the cell phone application sending out notice (log in notification message) of user, allow user authorize whether It can this time be logged in.
Step 13:Authorization server returns to login service device, and advertisement message has pushed success.
Step 14:PC gets the result (log in notification message and send success message) of login service device, learns message Successfully it is pushed to the cell phone application of user.
Step 15:PC prompts user in login page:It please authorizes in cell phone application and this time logs in.
Step 16:Whether PC automatic regular polling login service devices, inquiry user have authorized (authorization message).
Step 17:Login service device initiates to ask to authorization server, inquires the sub-authorization and is identified or is rejected (clothes Business device and second terminal log in the process of authorization requests).
Step 18:User authorizes this time to log in (process that response logs in authorization requests) in cell phone application.
Step 19:Authorization server return authorizes successfully, indicates that user has authorized the secondary login.
Step 20:Login service device receives mandate and successfully replys, and generates and logs in bill (authorization message), is issued to PC In so that PC is logined successfully.
Embodiment six
As shown in figure 15, an embodiment of the present invention provides a kind of servers 1, including:
First receiving unit 10, for when first terminal carries out the login that first applies, receiving the first terminal hair First facility information of the first terminal sent, the first terminal are to carry out first application by Web page The terminal of login.
First query unit 11, for according to first facility information and default log-on message library, inquiry to whether there is At least one first user corresponding with first facility information.
If first transmission unit 12 sends described at least one first for there are at least one first user For user to the first terminal, at least one first user is the common login user on the first terminal.
First receiving unit 10 is additionally operable to receive the login authorization requests that the first terminal is sent, the login Authorization requests are described to wait for that login user is the first terminal from described for asking the login for treating login user to be authorized It is chosen at least one user.
First transmission unit 12 is additionally operable to respond the login authorization requests, sends and logs in notification message to second terminal, The second terminal is to have logged in the terminal for waiting for login user.
First receiving unit 10, is additionally operable to receive that the second terminal responds that the login notification message sends permits Perhaps authorization response message.
First transmission unit 12 is additionally operable to generate authorization message according to the permission authorization response message, be awarded described in transmission Information is weighed to the first terminal, the authorization message is the letter for allowing to wait for login user described in login in first application Breath.
Optionally, it is based on Figure 15, as shown in figure 16, the server 1 further includes:First acquisition unit 13.
The first acquisition unit 13, for described according to first facility information and default log-on message library, inquiry Before at least one first user corresponding with first facility information, obtains and preset log-on message library.
Optionally, the first acquisition unit 13 is specifically used for statistical history log-on message, in the historical log information Including all logged-in users and its corresponding all terminals;According to the historical log information, determine that each terminal is respectively right The first logged-in user answered;According to the default registration conditions, determined from first logged-in user described each Logged common login user in terminal, by the correspondence of the corresponding common login user of each terminal Library is as the default log-on message library.
Optionally, it is based on Figure 15, as shown in figure 17, the server 1 further includes:Generation unit 14.
If the generation unit 14 generates signing messages for there are at least one first user.
First transmission unit 12, specifically at least one first user and the signing messages to be sent to The first terminal.
First receiving unit 10 is specifically used for receiving the login authorization requests and the label that the first terminal is sent Name information.
Optionally, it is based on Figure 15, as shown in figure 18, the server 1 further includes:Authentication unit 15.
The authentication unit 15, for after receiving the signing messages, verifying the validity of the signing messages
First transmission unit 12 is asked also particularly useful for the login mandate when the signing messages is effective, is responded It asks, sends and log in notification message to the second terminal.
Optionally, first transmission unit 12 is additionally operable to the response login authorization requests, sends and log in notice After message to second terminal, sends and log in notification message transmission success message to the first terminal.
As shown in figure 19, in practical applications, above-mentioned first query unit 11, first acquisition unit 13, generation unit 14 It can be realized by the processor 16 on server with authentication unit 15, specially central processing unit (CPU), microprocessor (MPU), the realizations such as digital signal processor (DSP) or field programmable gate array (FPGA), the first receiving unit 10 is by receiving Device 17 realizes that the first transmission unit 12 can be realized that the server further includes by transmitter 18:Storage medium 19, the storage medium 19, transmitter 18, receiver 17 can be connect by system bus 110 with processor 16, wherein storage medium 19 is for storing Executable program code, the program code include computer-managed instruction, and storage medium 19 may include high-speed RAM memory, May also further include nonvolatile memory, for example, at least one magnetic disk storage.
It is understood that waiting for that login is used since first terminal can obtain to commonly use in login account by server Family, and by the interaction of server and the authorization messages of second terminal, to get authorization message, directly just believed according to mandate Breath completes the quick registration for waiting for login user, therefore, avoids the process of input username and password, and be not need to rely on The login situation of first terminal itself is realized the quick registration for realizing the first application by Web page in the first terminal, is improved The first terminal logs in the applicability of the first application by Web page.
Embodiment seven
As shown in figure 20, an embodiment of the present invention provides a kind of first terminals 2, including:
Second receiving unit 20 applies corresponding logging request for receiving first.
Second acquisition unit 21, the first facility information for obtaining the first terminal according to the logging request, institute Logging request is stated by Web page trigger when first application logs in.
Second transmission unit 22, for sending first facility information to server.
Second receiving unit 20 is additionally operable to receive the corresponding with first facility information of the server transmission At least one first user, at least one first user are the common login user on the first terminal;And it receives Log in selection instruction.
Selecting unit 23, for selecting to wait logging in from least one first user according to the login selection instruction User.
Second transmission unit 22 is additionally operable to wait for that login user sends login mandate to the server and asks according to It asks.
Second receiving unit 20 is additionally operable to receive the login that the server responds the login authorization requests transmission Authorization response message carries in the login authorization response message and waits for login user described in allowing to log in first application Authorization message.
Unit 24 is logged in, for according to the authorization message, institute to be realized in first application by the Web page State the login for waiting for login user.
Optionally, second receiving unit 20, is specifically used for receiving that the server sends described at least one the One user and signing messages.
Second transmission unit 22 is authorized specifically for waiting for that login user sends to log in the server according to Request and the signing messages.
Optionally, it is based on Figure 20, as shown in figure 21, the first terminal 2 further includes:Second query unit 25.
Second receiving unit 20 is additionally operable to wait for that login user sends login to the server and awards described in the basis After power request, receives the login notification message that the server is sent and send success message.
Second query unit 25, for according to logins notification message transmission success message, described in automatic regular polling Server whether there is the authorization message.
If the login unit 24, according to the authorization message, leads to specifically for being polled to there are the authorization message Cross the Web page waits for login user in first application login described in realization.
Optionally, the second acquisition unit 21 is additionally operable to before the corresponding logging request of the first application of the reception, When the corresponding Web of first application is opened, local resident service is accessed, hardware is got by the resident service Information;The second facility information is calculated according to the hardware information;Second facility information is encrypted, is obtained described First facility information.
As shown in figure 22, in practical applications, above-mentioned second acquisition unit 21, selecting unit 23, log in unit 24 and the Two query units 25 can realize by the processor 26 on first terminal, specially central processing unit (CPU), microprocessor (MPU), the realizations such as digital signal processor (DSP) or field programmable gate array (FPGA), the second receiving unit 20 is by receiving Device 27 realizes that the second transmission unit 22 can be realized that the first terminal further includes storage medium 29, the storage medium by transmitter 28 29, transmitter 28, receiver 27 can be connect by system bus 210 with processor 26, wherein storage medium 29 is for storing Executable program code, the program code include computer-managed instruction, and storage medium 29 may include high-speed RAM memory, May also further include nonvolatile memory, for example, at least one magnetic disk storage.
It is understood that waiting for that login is used since first terminal can obtain to commonly use in login account by server Family, and by the interaction of server and the authorization messages of second terminal, to get authorization message, directly just believed according to mandate Breath completes the quick registration for waiting for login user, therefore, avoids the process of input username and password, and be not need to rely on The login situation of first terminal itself is realized the quick registration for realizing the first application by Web page in the first terminal, is improved The first terminal logs in the applicability of the first application by Web page.
Embodiment eight
As shown in figure 23, an embodiment of the present invention provides a kind of second terminals 3, including:
Third receiving unit 30, for when first terminal carries out the login that first applies, receiving stepping on for server transmission Record notification message;And the response login notification message, it receives and agrees to Authorized operation.
Third transmission unit 31, for according to the agreement Authorized operation, sending to allow authorization response message to the clothes Business device.
Optionally, it is based on Figure 23, as shown in figure 24, the second terminal 3 further includes:Display unit 32.
The display unit 32, after the login notification message for receiving server transmission, on currently display circle The login notification message is shown on face.
The third receives 30 yuan of list, is specifically used for responding the login notification message, in the current display interface It receives and agrees to Authorized operation.
As shown in figure 25, in practical applications, above-mentioned third receiving unit can be by the receiver 33 in second terminal It realizes, above-mentioned third transmission unit can realize that above-mentioned display unit 32 can be by second terminal by the transmitter 34 in second terminal On display 35 realize that the second terminal can also include:Processor 36 and storage medium 37, processor 36 is specifically by center The realizations such as processor (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA), The storage medium 37, transmitter 34, receiver 33, display 35 can be connect by system bus 38 with processor 36, wherein For storage medium 37 for storing executable program code, which includes computer-managed instruction, and storage medium 37 may Including high-speed RAM memory, it is also possible to further include nonvolatile memory, for example, at least one magnetic disk storage.
It is understood that waiting for that login is used since first terminal can obtain to commonly use in login account by server Family, and by the interaction of server and the authorization messages of second terminal, to get authorization message, directly just believed according to mandate Breath completes the quick registration for waiting for login user, therefore, avoids the process of input username and password, and be not need to rely on The login situation of first terminal itself is realized the quick registration for realizing the first application by Web page in the first terminal, is improved The first terminal logs in the applicability of the first application by Web page.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention can be used can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (24)

1. a kind of login method, which is characterized in that including:
When first terminal carries out the login of the first application, receive the first terminal that the first terminal is sent first sets Standby information, the first terminal are to carry out the terminal that first application logs in by Web page;
According to first facility information and default log-on message library, inquiry is with the presence or absence of corresponding with first facility information At least one first user, and if there are at least one first users, send at least one first user to institute First terminal is stated, at least one first user is the common login user on the first terminal;
The login authorization requests that the first terminal is sent are received, the login authorization requests are for asking to treat login user Login is authorized, described to wait for that login user is that the first terminal chooses from least one user;
The login authorization requests are responded, sends and logs in notification message to second terminal, the second terminal is described to have logged in Wait for the terminal of login user;
It receives the second terminal and responds the permission authorization response message that the login notification message is sent, and according to the permission Authorization response message generates authorization message, sends the authorization message to the first terminal, the authorization message is to allow The information of login user is waited for described in being logged in first application.
2. according to the method described in claim 1, it is characterized in that, described believe according to first facility information with default log in Library is ceased, is inquired before at least one first user corresponding with first facility information, the method further includes:
It obtains and presets log-on message library.
3. according to the method described in claim 2, it is characterized in that, it is described obtain preset log-on message library, including:
Statistical history log-on message, the historical log information include all logged-in users and its corresponding all terminals;
According to the historical log information, corresponding first logged-in user of each terminal is determined;
It is logged normal in each terminal from being determined in first logged-in user according to the default registration conditions With login user, stepped on the correspondence library of the corresponding common login user of each terminal as described preset Record information bank.
4. if according to the method described in claim 1, it is characterized in that, described there are at least one first user, send out Send at least one first user to the first terminal, including:
If there are at least one first user, signing messages is generated, by least one first user and the label Name information is sent to the first terminal;
Correspondingly, the login authorization requests for receiving the first terminal and sending, including:
Receive the login authorization requests and the signing messages that the first terminal is sent.
5. according to the method described in claim 4, it is characterized in that, the response login authorization requests, send to log in and lead to Message is known to second terminal, including:
After receiving the signing messages, the validity of the signing messages is verified, when the signing messages is effective, response The login authorization requests send and log in notification message to the second terminal.
6. according to the method described in claim 1, it is characterized in that, the response login authorization requests, send to log in and lead to After knowing message to second terminal, the method further includes:
It sends and logs in notification message transmission success message to the first terminal.
7. a kind of login method, which is characterized in that including:
It receives first and applies corresponding logging request, and obtain the first equipment letter of the first terminal according to the logging request Breath, the logging request by Web page trigger when first application logs in;
First facility information is sent to server, receives the corresponding with first facility information of the server transmission At least one first user, at least one first user are the common login user on the first terminal;
It receives and logs in selection instruction, select to wait logging in use from least one first user according to the login selection instruction Family, and wait for that login user sends login authorization requests to the server according to described;
It receives the server and responds the login authorization response message that the login authorization requests are sent, the login authorization response The authorization message that login user is waited for described in allowing to log in first application is carried in message;
According to the authorization message, the login of login user is waited for described in realization in first application by the Web page.
8. the method according to the description of claim 7 is characterized in that described receive being set with described first for the server transmission Corresponding at least one first user of standby information, including:
Receive at least one first user and signing messages that the server is sent;
Correspondingly, waiting for that login user is sent to the server described in the basis logs in authorization requests, including:
Wait for that login user sends login authorization requests and the signing messages to the server according to described.
9. the method according to the description of claim 7 is characterized in that waiting for that login user is sent out to the server described in the basis It send after logging in authorization requests, the method further includes:
It receives the login notification message that the server is sent and sends success message;
Success message is sent according to the login notification message, server whether there is the authorization message described in automatic regular polling;
If being polled to there are the authorization message, according to the authorization message, by the Web page in first application The login of login user is waited for described in middle realization.
10. according to the method described in claim 6, it is characterized in that, it is described receive first application corresponding logging request before, The method further includes:
When described first is opened using the corresponding Web, local resident service is accessed, is obtained by the resident service To hardware information;
The second facility information is calculated according to the hardware information;
Second facility information is encrypted, first facility information is obtained.
11. a kind of login method, which is characterized in that including:
When first terminal carries out the login of the first application, the login notification message that server is sent is received;
The login notification message is responded, receives and agrees to Authorized operation;
According to the agreement Authorized operation, sending allows authorization response message to the server.
12. according to the method for claim 11, which is characterized in that it is described receive server send login notification message it Afterwards, the method further includes:
The login notification message is shown in current display interface;
Correspondingly, the response login notification message, receives and agrees to Authorized operation, including:
The login notification message is responded, is received in the current display interface and agrees to Authorized operation.
13. a kind of server, which is characterized in that including:
First receiving unit, for when first terminal carries out the login that first applies, receiving the institute that the first terminal is sent The first facility information of first terminal is stated, the first terminal is to carry out first application by Web page to log in Terminal;
First query unit, for according to first facility information and default log-on message library, inquiry with the presence or absence of with it is described Corresponding at least one first user of first facility information;
First transmission unit sends at least one first user extremely for if there are at least one first users The first terminal, at least one first user are the common login user on the first terminal;
First receiving unit is additionally operable to receive the login authorization requests that the first terminal is sent, and the login mandate is asked It asks for asking the login for treating login user to be authorized, it is described to wait for that login user is the first terminal from described at least one It is chosen in a user;
First transmission unit is additionally operable to respond the login authorization requests, sends and logs in notification message to second terminal, and described the Two terminals are to have logged in the terminal for waiting for login user;
First receiving unit, is additionally operable to receive that the second terminal responds that the login notification message sends allows to authorize Response message;
First transmission unit is additionally operable to generate authorization message according to the permission authorization response message, sends the authorization message To the first terminal, the authorization message is the information for allowing to wait for login user described in login in first application.
14. server according to claim 13, which is characterized in that the server further includes:First acquisition unit;
The first acquisition unit, for described according to first facility information and default log-on message library, inquiry with it is described Before corresponding at least one first user of first facility information, obtains and preset log-on message library.
15. server according to claim 14, which is characterized in that
The first acquisition unit is specifically used for statistical history log-on message, and the historical log information includes all stepped on Employ family and its corresponding all terminals;According to the historical log information, determine that each terminal corresponding first has been stepped on Employ family;It is logged in each terminal from being determined in first logged-in user according to the default registration conditions Common login user, using the correspondence library of the corresponding common login user of each terminal as described pre- If log-on message library.
16. server according to claim 13, which is characterized in that the server further includes:Generation unit;
If the generation unit generates signing messages for there are at least one first user;
First transmission unit, specifically at least one first user and the signing messages are sent to described One terminal;
First receiving unit is specifically used for receiving the login authorization requests and the A.L.S. that the first terminal is sent Breath.
17. server according to claim 16, which is characterized in that the server further includes:Authentication unit;
The authentication unit, for after receiving the signing messages, verifying the validity of the signing messages;
First transmission unit is sent also particularly useful for the login authorization requests when the signing messages is effective, are responded Notification message is logged in the second terminal.
18. server according to claim 13, which is characterized in that
First transmission unit is additionally operable to the response login authorization requests, and transmission login notification message to second is eventually After end, sends and log in notification message transmission success message to the first terminal.
19. a kind of first terminal, which is characterized in that including:
Second receiving unit applies corresponding logging request for receiving first;
Second acquisition unit, the first facility information for obtaining the first terminal according to the logging request, the login Request by Web page trigger when first application logs in;
Second transmission unit, for sending first facility information to server;
Second receiving unit is additionally operable to receive the server is sent corresponding with first facility information at least one A first user, at least one first user are the common login user on the first terminal;And it receives and logs in choosing Select instruction;
Selecting unit waits for login user for being selected from least one first user according to the login selection instruction;
Second transmission unit is additionally operable to wait for that login user sends login authorization requests to the server according to;
Second receiving unit is additionally operable to receive the login mandate sound that the server responds the login authorization requests transmission Message is answered, it is described to log in the mandate for being carried in authorization response message and allowing to wait for login user described in login in first application Information;
Unit is logged in, for according to the authorization message, waiting stepping on described in realization in first application by the Web page Employ the login at family.
20. terminal according to claim 19, which is characterized in that
Second receiving unit is specifically used for receiving at least one first user and A.L.S. that the server is sent Breath;
Second transmission unit, specifically for according to described in wait for login user to the server send log in authorization requests and The signing messages.
21. terminal according to claim 19, which is characterized in that the first terminal further includes:Second query unit;
Second receiving unit is additionally operable to wait for that login user sends login authorization requests to the server described in the basis Later, it receives the login notification message that the server is sent and sends success message;
Second query unit, for according to logins notification message transmission success message, server described in automatic regular polling With the presence or absence of the authorization message;
The login unit, if specifically for being polled to there are the authorization message, according to the authorization message, by described Web page waits for the login of login user in first application described in realization.
22. terminal according to claim 19, which is characterized in that
The second acquisition unit is additionally operable to before the corresponding logging request of the first application of the reception, in first application When the corresponding Web is opened, local resident service is accessed, hardware information is got by the resident service;According to institute It states hardware information and the second facility information is calculated;Second facility information is encrypted, the first equipment letter is obtained Breath.
23. a kind of second terminal, which is characterized in that including:
Third receiving unit, the login notice sent for when first terminal carries out the login that first applies, receiving server Message;And the response login notification message, it receives and agrees to Authorized operation;
Third transmission unit, for according to the agreement Authorized operation, sending to allow authorization response message to the server.
24. terminal according to claim 23, which is characterized in that the second terminal further includes:Display unit;
The display unit is shown after the login notification message for receiving server transmission in current display interface Show the login notification message;
The third receiving unit, is specifically used for responding the login notification message, is received in the current display interface same Meaning Authorized operation.
CN201710070599.XA 2017-02-09 2017-02-09 A kind of login method, terminal and server Pending CN108418775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710070599.XA CN108418775A (en) 2017-02-09 2017-02-09 A kind of login method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710070599.XA CN108418775A (en) 2017-02-09 2017-02-09 A kind of login method, terminal and server

Publications (1)

Publication Number Publication Date
CN108418775A true CN108418775A (en) 2018-08-17

Family

ID=63124867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710070599.XA Pending CN108418775A (en) 2017-02-09 2017-02-09 A kind of login method, terminal and server

Country Status (1)

Country Link
CN (1) CN108418775A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100250921A1 (en) * 2009-03-27 2010-09-30 Gil Spencer Authorizing a Login Request of a Remote Device
CN103248489A (en) * 2013-05-17 2013-08-14 刘琦 Method for realizing client login through intelligent terminal, server and intelligent terminal
US20140173709A1 (en) * 2011-12-16 2014-06-19 Avigdor Eldar Secure user attestation and authentication to a remote server
CN104539741A (en) * 2015-01-26 2015-04-22 北京奇艺世纪科技有限公司 Prompting method and prompting device for account login
CN105072079A (en) * 2015-06-30 2015-11-18 小米科技有限责任公司 Account logon method, account logon device and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100250921A1 (en) * 2009-03-27 2010-09-30 Gil Spencer Authorizing a Login Request of a Remote Device
US20140173709A1 (en) * 2011-12-16 2014-06-19 Avigdor Eldar Secure user attestation and authentication to a remote server
CN103248489A (en) * 2013-05-17 2013-08-14 刘琦 Method for realizing client login through intelligent terminal, server and intelligent terminal
CN104539741A (en) * 2015-01-26 2015-04-22 北京奇艺世纪科技有限公司 Prompting method and prompting device for account login
CN105072079A (en) * 2015-06-30 2015-11-18 小米科技有限责任公司 Account logon method, account logon device and terminal device

Similar Documents

Publication Publication Date Title
US10574646B2 (en) Managing authorized execution of code
US10057251B2 (en) Provisioning account credentials via a trusted channel
US9992206B2 (en) Enhanced security for electronic communications
JP2023166562A (en) First factor contactless card authentication system and method
US8532620B2 (en) Trusted mobile device based security
CN110138718A (en) Information processing system and its control method
US8627493B1 (en) Single sign-on for network applications
US8453220B2 (en) Device association
CN104104654A (en) Method and device for setting Wifi access authority and Wifi authentication
US9998287B2 (en) Secure authentication of remote equipment
CN105721412A (en) Method and device for authenticating identity between multiple systems
CN113922982B (en) Login method, electronic equipment and computer readable storage medium
CN109218389A (en) The method, apparatus and storage medium and electronic equipment of processing business request
CN107948210A (en) A kind of login method, device, client, server and medium
CN108390878B (en) Method and device for verifying network request security
US20060122936A1 (en) System and method for secure publication of online content
CN108418775A (en) A kind of login method, terminal and server
CN114500031B (en) System, method, electronic equipment and medium for acquiring BI report based on single sign-on
TWI795148B (en) Device, method and system of handling access control
KR101437550B1 (en) Method for connect interception of web-sever
KR101190057B1 (en) System for user authentication using trust third party and method thereof
US20190036905A1 (en) Client device ticket
CN118233167A (en) User login method, device, equipment, medium and product

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180817