WO2013075661A1 - 登录及开放平台标识方法、开放平台及系统 - Google Patents

登录及开放平台标识方法、开放平台及系统 Download PDF

Info

Publication number
WO2013075661A1
WO2013075661A1 PCT/CN2012/085185 CN2012085185W WO2013075661A1 WO 2013075661 A1 WO2013075661 A1 WO 2013075661A1 CN 2012085185 W CN2012085185 W CN 2012085185W WO 2013075661 A1 WO2013075661 A1 WO 2013075661A1
Authority
WO
WIPO (PCT)
Prior art keywords
open platform
party application
user terminal
account
platform
Prior art date
Application number
PCT/CN2012/085185
Other languages
English (en)
French (fr)
Inventor
庄泗华
周桓宇
龙丁奋
郭学亨
张津
方智勇
于树南
董江德
谢启明
马洋涛
劳宁
Original Assignee
腾讯科技(深圳)有限公司
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
Priority claimed from CN201110375863.3A external-priority patent/CN102821084B/zh
Priority claimed from CN201110376343.4A external-priority patent/CN102821085B/zh
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2013075661A1 publication Critical patent/WO2013075661A1/zh
Priority to US14/098,085 priority Critical patent/US20140096205A1/en

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/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • 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/0884Network architectures or network communication protocols for network security for authentication of entities by delegation of authentication, e.g. a proxy authenticates an entity to be authenticated on behalf of this entity vis-à-vis an authentication entity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/41User authentication where a single sign-on provides access to a plurality of computers

Definitions

  • the invention relates to an open platform technology, in particular to a login and open platform identification method, an open platform and a system. Background technique
  • an account of the user registration website is accessed through a third-party application website.
  • the open platform of the registration website is required to authorize the third-party application website. That is, the user accesses the third-party application without logging in, or has not yet authorized the third-party application, and the open platform of the registered website does not pass the relevant parameters of the user to the third-party application.
  • the three-party application cannot access the basic data such as the user's personal information. If the third-party application needs to obtain the user's basic data, the user can provide services to the user.
  • the user will not be allowed to access the resources provided by the third-party application, nor can the user enjoy the Services provided by third-party applications.
  • the three-party application can also access and update the relevant data of the user's Weibo.
  • the existing third-party application authorization login method is complex and cannot meet the needs of the user.
  • the instant messaging open platform is a client platform system, and the implementation process of the reminder function has problems: the application of the application that needs to send the reminder message
  • the dimension center cannot know which open platform the current user is running on. That is to say, the message for the current user does not know which platform to deliver to.
  • the main object of the present invention is to provide a login method, development platform and system that are simple to implement and convenient for users to log in to multiple websites.
  • the present invention provides a login method, including: an open platform access page receiving an authorization instruction of a user terminal to a third-party application;
  • the first login identifier OpenID and the first login key OpenKey of the user terminal are delivered to the third-party application according to a predetermined open platform login and return-back protocol;
  • the three-party application performs authorization login based on the user terminal according to the first OpenID and the first OpenKey;
  • the open platform account is used as the identifier of the open platform to send a reminder message to the user terminal.
  • the method further includes:
  • the third-party application is authenticated according to the first OpenID and the first OpenKey. After the verification succeeds, the third-party application authorizes the login successfully.
  • the step of performing legality verification on the third-party application according to the first OpenID and the first OpenKey includes: Receiving the verification request sent by the third-party application, where the verification request carries the first OpenID and the first OpenKey;
  • the method further includes:
  • the open platform After the verification is successful, the open platform returns user authorization data to the third party application.
  • the method before the step of transmitting the first OpenID and the first OpenKey of the user terminal to the third-party application according to the predetermined open platform login and return-back protocol, the method further includes:
  • the open platform generates an initial OpenID and an initial OpenKey according to the login account of the user terminal;
  • the manner in which the open platform enters a page includes:
  • the open platform enters a page according to an application login command of the user terminal; or the open platform logs in to the third-party application through the user terminal, and the third-party application invokes an interface of the open platform to enter the page.
  • performing an open platform identifier includes:
  • the open platform obtains an open platform account generated according to the application identifier AppID of the third-party application and the platform login account of the user terminal when the third-party application is started by the user terminal of the open platform; and the open platform account is transmitted to the open platform account. And receiving, by the third-party application, a notification instruction sent by the third-party application, and sending, according to the open platform account carried by the notification instruction, a reminder message corresponding to the notification instruction to the user terminal for the third-party application.
  • the invention provides a login open platform, where the open platform includes: a boot module, a sending module, and a platform identifier module, where a guiding module, configured to receive an authorization command of the user terminal for the third-party application, and a sending module, configured to: after the user terminal authorizes the connection succeeding, according to the open platform login and return-hop protocol, the first OpenlD and the first of the user terminal An OpenKey is delivered to the third-party application; and the third-party application performs an authorization login based on the user terminal according to the first Open1D and the first OpenKey;
  • the platform identifier module is configured to send a reminder message to the user terminal by using an open platform account as an identifier of the open platform when the user terminal that logs in to the open platform starts the third-party application.
  • the open platform further includes:
  • the verification module is configured to perform legality verification on the third-party application according to the first Open1D and the first OpenKey. After the verification succeeds, the third-party application authorizes the login successfully.
  • the verification module is further configured to receive the verification request sent by the third-party application, where the verification request carries the first Open1D and the first OpenKey; and the first OpenlD in the verification request The first OpenKey performs legality verification.
  • the verification module is further configured to: after the verification succeeds, return the user authorization data to the third-party application.
  • the open platform further includes:
  • a conversion module configured to generate an initial Open1D and an initial OpenKey according to the login account of the user terminal; and convert the initial OpenlD and the initial OpenKey to the first OpenlD and the first OpenKey according to a predetermined mapping relationship.
  • the platform identifier module includes: an acquiring module, a sending module, and a reminding module, where:
  • An obtaining module configured to: when an application terminal that logs in to the open platform launches the third-party application, obtain an open platform account sending module generated according to the AppID of the third-party application and the platform login account of the user terminal, for transmitting the open platform account to the third-party usage; a reminding module, configured to receive a notification instruction sent by a third-party application, and send a notification to the user terminal to send a corresponding notification to the third-party application according to the open platform account carried by the notification instruction, and the login system provided by the invention, the system Includes: User terminals, open platforms, and third-party applications, where:
  • the user terminal is configured to link the open platform, send an authorization instruction to the third-party application to the open platform, and receive the access resource and service provided by the third-party application after the third-party application authorizes the login successfully;
  • the open platform is configured to: receive an authorization command of the user terminal to the third-party application by the access page; and after the user terminal authorizes the connection succeeding, log in to the hopback protocol according to the predetermined open platform, and set the first OpenID and the first of the user terminal.
  • the OpenKey is delivered to the third-party application, and when the third-party application is started by the user terminal that logs in to the open platform, the open platform account is used as the identifier of the open platform to send a reminder message to the user terminal;
  • the third-party application is configured to obtain the first OpenID and the first OpenKey sent by the open platform, and allow the user terminal to access the third-party application resource according to the first OpenID and the first OpenKey to send the login state, and Providing a site service for the user terminal.
  • the open platform is further configured to perform legality verification on the third-party application according to the first OpenID and the first OpenKey, and after the verification succeeds, the third-party application authorizes the login to succeed;
  • the third-party application is further configured to receive the validity verification of the local server according to the first OpenID and the first OpenKey; or the third-party application receives the legality of the open platform according to the first OpenID and the first OpenKey. verification.
  • the third-party application is further configured to send a verification of obtaining user authorization data to the open platform. And the first OpenID and the first OpenKey are carried in the verification request; and the user authorization data returned by the open platform after the legal verification of the first OpenID and the first OpenKey is successfully performed is received.
  • the third-party application is further configured to receive an application login instruction of the client, invoke an interface of the open platform according to the application login instruction, and open a page of the open platform.
  • the open platform is specifically configured to acquire an open platform account generated according to an AppID of a third-party application and a platform login account of the user terminal when the third-party application is started by the user terminal that logs in to the open platform, and the open platform account is opened.
  • the platform account is delivered to the third-party application, and receives the notification instruction sent by the third-party application, and sends a notification message corresponding to the notification to the user terminal for the third-party application according to the open platform account carried by the notification instruction.
  • An open platform identification method provided by the present invention includes:
  • the open platform obtains an open platform account generated according to the application identifier AppID of the third-party application and the platform login account of the user terminal when the third-party application is started by the user terminal that is logged in to the open platform;
  • Receiving a notification instruction sent by the third-party application and sending, according to the open platform account carried by the notification instruction, a reminder message corresponding to the notification instruction to the user terminal for the third-party application.
  • the step of the open platform acquiring an open platform account generated according to the AppID of the third party application and the platform login account of the user terminal includes:
  • the open platform obtains the open platform account from a cache
  • the open platform temporarily generates the open platform account by a predetermined algorithm according to the platform login account of the user terminal and the AppID of the third party application.
  • the open platform accounts according to the open platform account carried by the notification instruction.
  • the step of sending the reminder message corresponding to the notification instruction to the user terminal for the third-party application includes:
  • the open platform queries the platform login account of the user terminal corresponding to the open platform account carried by the notification command according to the open platform account carried by the notification instruction;
  • the step of the sending, by the open platform, the alert message corresponding to the notification command to the user terminal according to the open platform account carried by the notification command includes:
  • the open platform queries the platform login account of the user terminal corresponding to the open platform account carried by the notification command and the AppID of the corresponding third party application according to the open platform account carried by the notification instruction;
  • the reminder message corresponding to the notification instruction is sent to the corresponding user terminal according to the platform login account of the corresponding user terminal.
  • the open platform includes a platform identification module, and the platform identification module includes: an acquisition module, a sending module, and a reminding module, where
  • An obtaining module configured to acquire an open platform account generated according to an AppID of the third-party application and a platform login account of the user terminal when the third-party application is started by the user terminal that is logged in to the open platform;
  • a sending module configured to: send the open platform account to the third-party application; the reminding module is configured to receive a notification instruction sent by the third-party application, and according to the open platform account carried by the notification instruction, The third party application sends a reminder message corresponding to the notification instruction to the user terminal.
  • the obtaining module is further configured to acquire the open platform account from a cache; Or temporarily generating the open platform account according to a platform login account of the user terminal and an AppID of the third-party application by using a predetermined algorithm.
  • the reminding module includes:
  • the query unit is configured to query, according to the open platform account carried by the notification instruction, a platform login account of the user terminal corresponding to the open platform account carried by the notification instruction;
  • a sending unit configured to send, according to the platform login account of the corresponding user terminal, a reminder message corresponding to the notification instruction to the corresponding user terminal.
  • the reminding module further includes: a verifying unit, where:
  • the query unit is further configured to query, according to the open platform account carried by the notification instruction, the platform login account of the user terminal corresponding to the open platform account carried by the notification command and the AppID of the corresponding third party application;
  • the checking unit is configured to check an AppID of the corresponding third-party application
  • the sending unit is further configured to: after the verification is passed, log in to the corresponding account according to the platform of the corresponding user terminal.
  • the user terminal sends a reminder message corresponding to the notification instruction.
  • An open platform identification system provided by the present invention, the system comprising: an open platform and a third party application, wherein
  • the open platform is configured to acquire an open platform account generated according to an AppID of the third-party application and a platform login account of the user terminal when the third-party application is started by the user terminal that logs in to the open platform; Transmitting the account to the third-party application; receiving the notification instruction sent by the third-party application, and sending, according to the open platform account carried by the notification instruction, the third-party application to the user terminal to send the notification instruction Reminder message
  • the third-party application is configured to: when the user terminal logs in to the third-party application, receive an open platform account that is sent by the open platform, and record a third-party login account of the user terminal and the open platform account. Corresponding relationship; when the third-party application needs to send a notification to the user terminal, obtain a corresponding open platform according to the third-party login account of the user terminal The account number is provided to the open platform.
  • the invention provides a login and open platform identification method, an open platform and a system, and guides the user terminal to approve the authorization of the third-party application through the page of the open platform; after the user terminal authorizes the connection successfully, the development platform logs back and forth according to the open platform.
  • the protocol, the user's first OpenID and the first OpenKey are brought to the third-party application; the third-party application performs the user terminal-based authorized login according to the first OpenID and the first OpenKey, and starts the third party on the user terminal that logs in to the open platform.
  • the open platform account is used as the identifier of the open platform to send a reminder message to the user terminal; thereby, various forms of login can be realized, and the user does not need to register and manage the login account of multiple websites, and only needs to register through an open platform. Accounts, authorized to access multiple websites, to provide convenience for users; and at the same time to solve the reminder and push problems for third-party applications, and to prevent interference problems generated across applications.
  • FIG. 1 is a schematic flow chart of a first embodiment of a login method provided by the present invention
  • FIG. 2 is a schematic flow chart of step S103 in FIG. 1 of the present invention.
  • FIG 3 is a flow chart showing the first example of the step S203 in Figure 2 of the present invention.
  • FIG. 4 is a schematic flow chart of a second example of step S203 in FIG. 2 of the present invention.
  • FIG. 5 is a schematic flowchart diagram of a second embodiment of a login method provided by the present invention.
  • FIG. 6 is a schematic flowchart of a first example of a second embodiment of the login method provided by the present invention
  • FIG. 7 is a schematic flowchart of a second example of the second embodiment of the login method provided by the present invention. Schematic diagram of the first embodiment of the open platform;
  • FIG. 9 is a schematic structural view of a second embodiment of an open platform provided by the present invention.
  • FIG. 10 is a schematic structural diagram of a platform identification module in an open platform provided by the present invention
  • FIG. 11 is a schematic structural diagram of a first example of a reminder module in the platform identification module of the present invention
  • FIG. 11 is a second reminder module in the platform identification module of the present invention
  • FIG. 13 is a schematic structural diagram of an embodiment of a login system according to the present invention
  • 14 is a schematic structural diagram of an embodiment of an open platform identification system of the present invention.
  • the method running environment of the embodiment of the present invention involves an open platform, a third-party application site (hereinafter referred to as a third-party application), and a client-oriented client (hereinafter referred to as a user terminal), wherein the user terminal registers a login account and correspondingly on the open platform.
  • the password of the user terminal can be used for instant messaging login on the open platform through the registered login account and the corresponding password.
  • the user terminal can realize the instant messaging third party by authorizing the third party application through the open platform. Authorized login.
  • AppID The unique identifier of the app, which can be used to find the APP (application program) basic information. Distributed by the development platform when registering with third-party applications.
  • AppSecret When the user terminal logs in to a third-party application through instant messaging, and when the development platform returns to the third-party application OpenKey, in order to ensure the security of communication between the third-party application and the server of the development platform, the communication channel is prevented from being maliciously used, and sufficient To ensure the rights of third-party application applications, you need to use AppSecret to join the signature mechanism when communicating. AppSecret is only known to both open and third-party applications, and is unique and not public.
  • OpenID is the user ID that communicates with the third-party application, which corresponds to the instant communication number of the user terminal.
  • the third-party application must be carried when accessing OpenAPI.
  • OpenKey is a verification string for third-party application communication. Third-party applications must be carried when accessing OpenAPI.
  • OpenAPI is the programming interface provided by the open platform for third-party application access.
  • a login method includes: Step S101: An open platform access page receives an authorization instruction of a user terminal for a third-party application; wherein, the page entered by the open platform is an authorization page,
  • the manner in which the open platform enters the authorization page may be: The open platform enters the authorization page according to the application login instruction of the user terminal, the application
  • the login command can be a voice command, or a control that the open platform sets for the user terminal to enter the third-party application, for example, the user can click the client's aap application button to enter the authorization page; or, the open platform logs in to the third-party application through the user terminal (for example,
  • Step S102 After the user terminal authorizes the connection successfully, according to the predetermined open platform login and return hopping protocol, the first login identifier (OpenID) and the first login key (OpenKey) of the user terminal are transmitted to the third-party application; The application performs authorization login based on the user terminal according to the first OpenID and the first OpenKey.
  • OpenID open platform login and return hopping protocol
  • OpenKey first login key
  • the open platform logs in to the jumpback protocol according to the preset open platform, opens the login success page of the third-party application, notifies the third-party application, the user terminal agrees to authorize, and at the same time, opens the platform. Bring the first OpenID and the first OpenKey to a third-party application.
  • the third-party application After the third-party application receives the first OpenID and the first OpenKey from the open platform, the third-party application sends a login status, allowing the user to access the resources provided by the third-party application, and allowing the user to log in. Enjoy the services provided by this third-party app.
  • Step S103 When the user terminal that logs in to the open platform starts the third-party application, the reminder message is sent to the user terminal by using the open platform account as the identifier of the open platform.
  • This step is shown in Figure 2. Specifically, it includes:
  • Step S201 The open platform acquires an open platform account generated according to the AppID of the third-party application and the platform login account of the user terminal when the user terminal that logs in to the open platform starts the third-party application;
  • the user logs in to the open platform through a platform login account on a mobile terminal such as a PC, a mobile phone, or an IPhone.
  • the platform login account serves as an identifier for the user to log in to the open platform.
  • the open platform can be clicked and run on the open platform according to actual needs.
  • a third-party application on it to get the appropriate service or resource.
  • the embodiment sets a parameter open platform account (hereinafter referred to as QplusID) associated with the user terminal of the third party application, and the parameter QPlusID is entered by the open platform according to the platform of the user terminal and the AppID of the third party application ( Application ID) generated.
  • QplusID a parameter open platform account associated with the user terminal of the third party application
  • Each user terminal has a platform login account on the open platform.
  • each third-party application on the open platform has a corresponding AppID, and the open platform generates a QPlusID according to the platform login account of the user terminal and the AppID of the third-party application.
  • the message can be delivered to the corresponding open platform according to the QPlusID.
  • the open platform generates the QplusID according to the platform login account of the user terminal and the AppID of the third-party application, and may be generated by using a predetermined algorithm, such as an existing TEA (Tindy Encryption Algorithm), DES (Data Encryption Standard, A symmetric encryption algorithm such as the data density standard) and IDEA (International Data Encryption Algorithm), which serializes the platform login account of the user terminal and the AppID of the third-party application to generate a QplusID.
  • TEA Tindy Encryption Algorithm
  • DES Data Encryption Standard
  • a symmetric encryption algorithm such as the data density standard
  • IDEA International Data Encryption Algorithm
  • the QPlusID generated by the open platform according to the platform login account of the user terminal and the AppID of the third-party application may be pre-generated and saved in the local cache, or may be temporarily generated.
  • Step S202 Pass the open platform account to the third-party application;
  • the open platform After the open platform obtains the QPlusID associated with the user terminal of the third-party application, the open platform notifies the third-party application to obtain the QPlusID, and the third-party application obtains the QPlusID transmitted from the open platform through the front-end, and then logs in to the background server of the third-party application.
  • the obtained QPlusID is transmitted to the background server of the third-party application, and the background server of the third-party application simultaneously saves the correspondence between the login account of the user terminal on the third-party application (that is, the third-party login account in this embodiment) and the QPlusID. .
  • the QPlusID is provided to the open platform.
  • Step S203 Receive a notification instruction sent by the third-party application, and send a reminder message corresponding to the notification to the user terminal for the third-party application according to the open platform account carried by the notification instruction.
  • the third-party application front-end can be in the login state or offline, and the third-party application's background server saves the locally saved list.
  • the QPlusID corresponding to the third-party login account of the user terminal is detected, and the corresponding QPlusID is specified when requesting the interface of the open platform reminder center, and the reminder center of the open platform queries the background server of the open platform for the platform login account number of the user terminal and the first
  • the AppID of the three-party application, the reminder center of the open platform thus knows the sending destination of the reminder message, and verifies whether the AppID of the third-party application is correct, so as to prevent malicious access or interference across applications.
  • step S203 includes:
  • Step S2031 The open platform, according to the open platform account carried by the notification instruction, queries the platform login account of the user terminal corresponding to the open platform account carried by the local notification notification instruction;
  • the open platform queries the platform login account of the user terminal corresponding to the QPlusID provided by the third-party application according to the QPlusID provided by the third-party application.
  • Step S2032 Send a login account to the corresponding user terminal according to the platform of the corresponding user terminal. Send a reminder message corresponding to the notification command.
  • step S203 includes:
  • Step S2033 The open platform receives the platform login account of the user terminal corresponding to the open platform account carried by the notification command and the AppID of the corresponding third party application according to the open platform account carried by the notification instruction;
  • the open platform queries the platform login account of the user terminal corresponding to the QPlusID provided by the third-party application and the AppID of the corresponding third-party application according to the QPlusID provided by the third-party application.
  • Step S2034 Perform verification on the AppID of the corresponding third-party application.
  • Step S2035 After the verification is passed, the reminder message corresponding to the notification instruction is sent to the corresponding user terminal according to the platform login account of the corresponding user terminal.
  • the open platform After the user terminal starts the third-party application after the user terminal logs in to the open platform, the open platform transmits the open platform account generated by the third-party application's AppID and the platform login account generated by the user terminal to the third-party application, and the third-party application
  • the open platform sends a corresponding reminder message to the third-party application according to the open platform account specified by the third-party application, which solves the reminder and push problem to the third-party application, and prevents interference generated across the application. problem.
  • a login method according to the second embodiment of the present invention based on the foregoing embodiment, before the step S102, further includes:
  • Step S1021 The open platform generates an initial OpenID and an initial OpenKey according to the login account of the user terminal.
  • Step S1022 Convert the initial OpenID and the initial OpenKey into a first OpenID and a first OpenKey according to a predetermined mapping relationship.
  • Step S104 Perform validity verification on the third-party application according to the first OpenID and the first OpenKey. After the verification succeeds, the third-party application authorizes the login successfully.
  • the first OpenID and the first OpenKey that are transmitted by the open platform to the third-party application are preset mappings of the initial OpenID and the initial OpenKey obtained by the open platform. The relationship is transformed.
  • the open platform is configured to log in to the user terminal, and after the user terminal is authorized to authorize the third-party application, generate an initial OpenID and an initial OpenKey according to the login account of the user terminal; and corresponding to the initial OpenID and the initial OpenKey according to the predetermined mapping relationship.
  • the third-party application after receiving the first OpenID and the first OpenKey brought by the open platform, performs legality authentication according to the first OpenID and the first OpenKey.
  • the specific certification process includes the following two situations:
  • the first scenario is as follows: The third-party application performs locality authentication, and receives the validity authentication of the first OpenID and the first OpenKey by the local server.
  • the second case is: The third-party application receives the legality certification of the first OpenID and the first OpenKey by the open platform.
  • the authentication process is specifically: the third-party application sends an authentication request to the open platform, and carries the first OpenID and the first OpenKey in the verification request; and then, the open platform sends the third-party application to the third-party application.
  • the first OpenID and the first OpenKey in the verification request are validated.
  • the third-party application authorizes the login successfully, and the third-party application sends the login state, allowing the user terminal to access the resources provided by the third-party application, and allowing the user to The terminal enjoys the services provided by the third party application.
  • the third-party application In the process of the third-party application receiving the authentication of the first OpenID and the first OpenKey by the open platform, if the third-party application needs to obtain the authorization data of the user, the third-party application carries the first OpenID and the first OpenKey through the local server. Open platform background server The user authorization data is obtained. After the open platform successfully authenticates the validity of the first OpenID and the first OpenKey, the open platform returns the user authorization data to the third-party application.
  • the first instance (corresponding to the scenario where the open platform has a login state):
  • the user terminal uses openID to log in.
  • the specific process is as follows:
  • the user terminal sends an application login instruction to the open platform.
  • the open platform returns to the authorization page, and the user terminal is guided to agree to the authorization
  • the open platform logs in to the jumpback protocol according to the open platform, and opens the login success page of the third-party application, and brings the first OpenID and the first OpenKey;
  • the third-party application obtains the user authorization data by using the local server to bring the first OpenID and the first OpenKey to the background server of the open platform. If the third-party application does not need to use the user-authorized data, you can skip this step and step 6 and go directly to step 7;
  • the third-party application sends the login status, allowing the user terminal to access the resources provided by the third-party website and enjoying the services provided by the website.
  • the second instance (corresponding to the scenario where the open platform has no login status):
  • the user terminal can select OpenID or service account login.
  • the specific process is as follows:
  • the user logs in to the third-party application and performs instant messaging login in the third-party application
  • the third-party application invokes the foreground js API provided by the open platform to open the open platform authorization page;
  • the open platform guides the user to log in using the instant messaging account and password, and guides the user terminal. Agree to authorize third party applications;
  • the open platform logs in to the hopback protocol according to the open platform, and notifies the third-party application that the user authorization is successful, and brings the first OpenID and the first OpenKey;
  • the third-party application obtains user authorization data according to the open platform login and return-back protocol to the open platform;
  • the third-party application sends a login status, allowing the user terminal to access the resources provided by the third-party website and enjoying the services provided by the website.
  • the user terminal only needs to use one account, and can log in to the authorized website (third-party application) through the authorization of the open platform, thereby realizing the purpose of logging in to multiple websites by one account, thereby providing convenience and improvement for the user. user experience.
  • the present invention also provides an open platform identification method as shown in FIG. 2, including:
  • Step S201 When the user terminal that logs in to the open platform starts the third-party application, the open platform acquires an open platform account generated according to the AppID of the third-party application and the platform login account of the user terminal; the user is in a mobile terminal such as a PC, a mobile phone, or an IPhone. Log in to the open platform through the platform login account. The platform login account is used as the identifier for the user to log in to the open platform. After the user logs in to the open platform, the third-party application running on the open platform can be clicked on the open platform according to actual needs to obtain the corresponding service. Or resources.
  • the embodiment sets a parameter open platform account (hereinafter referred to as QplusID) associated with the user terminal of the third party application, and the parameter QPlusID is defined by the open platform root. It is generated according to the platform login account of the user terminal and the AppID (application identifier) of the third-party application.
  • QplusID parameter open platform account
  • Each user terminal has a platform login account on the open platform.
  • each third-party application on the open platform has a corresponding AppID, and the open platform generates a QPlusID according to the platform login account of the user terminal and the AppID of the third-party application.
  • the message can be delivered to the corresponding open platform according to the QPlusID.
  • the open platform generates the QplusID according to the platform login account of the user terminal and the AppID of the third-party application, and may be generated by using a predetermined algorithm, such as an existing TEA (Tindy Encryption Algorithm), DES (Data Encryption Standard, A symmetric encryption algorithm such as the data density standard) and IDEA (International Data Encryption Algorithm), which serializes the platform login account of the user terminal and the AppID of the third-party application to generate a QplusID.
  • TEA Tindy Encryption Algorithm
  • DES Data Encryption Standard
  • a symmetric encryption algorithm such as the data density standard
  • IDEA International Data Encryption Algorithm
  • the QPlusID generated by the open platform according to the platform login account of the user terminal and the AppID of the third-party application may be pre-generated and saved in the local cache, or may be temporarily generated.
  • the open platform After the user terminal logs in to the open platform and starts the third-party application, if there is a corresponding QPlusID in the cache of the open platform, the open platform directly obtains the corresponding QPlusID. If the cache does not exist, the open platform starts to pull to the background server.
  • the background server of the open platform generates a QPlusID according to information such as the platform login account of the user terminal and the AppID of the third party application.
  • Step S202 Pass the open platform account to the third-party application.
  • the open platform After the open platform obtains the QPlusID associated with the user terminal of the third-party application, the open platform notifies the third-party application to obtain the QPlusID, and the third-party application obtains the QPlusID transmitted from the open platform through the front-end, and then logs in to the background server of the third-party application.
  • the obtained QPlusID is transmitted to the background server of the third-party application, and the background server of the third-party application simultaneously saves the login account of the user terminal on the third-party application (that is, the third-party login account in this embodiment).
  • the QPlusID is provided to the open platform.
  • Step S203 Receive a notification instruction sent by the third-party application, and send a reminder message corresponding to the notification to the user terminal for the third-party application according to the open platform account carried by the notification instruction.
  • the third-party application front-end can be in the login state or offline, and the third-party application's background server saves the locally saved list.
  • the QPlusID corresponding to the third-party login account of the user terminal is detected, and the corresponding QPlusID is specified when requesting the interface of the open platform reminder center, and the reminder center of the open platform queries the background server of the open platform for the platform login account number of the user terminal and the first
  • the AppID of the three-party application, the reminder center of the open platform thus knows the sending destination of the reminder message, and verifies whether the AppID of the third-party application is correct, so as to prevent malicious access or interference across applications.
  • step S203 includes:
  • Step S2031 The open platform, according to the open platform account carried by the notification instruction, queries the platform login account of the user terminal corresponding to the open platform account carried by the local notification notification instruction;
  • the open platform queries the platform login account of the user terminal corresponding to the QPlusID provided by the third-party application according to the QPlusID provided by the third-party application.
  • Step S2032 Send a reminder message corresponding to the notification instruction to the corresponding user terminal according to the platform login account of the corresponding user terminal.
  • step S203 includes:
  • step S2033 the open platform obtains the platform login account of the user terminal corresponding to the open platform account carried by the notification command and the AppID of the corresponding third-party application according to the open platform account carried by the notification instruction; According QPlusID open platform provided by third-party applications, platforms login account of the user terminal QPlusID corresponding offer from the local query third-party applications and the corresponding third-party applications AppID 0
  • Step S2034 Perform verification on the AppID of the corresponding third-party application.
  • Step S2035 After the verification is passed, the reminder message corresponding to the notification instruction is sent to the corresponding user terminal according to the platform login account of the corresponding user terminal.
  • the open platform transmits the open platform account generated according to the AppID of the third-party application and the platform login account of the user terminal to the third-party application, and the third-party application
  • the open platform sends a corresponding reminder message to the third-party application according to the open platform account specified by the third-party application, and solves the reminder and push problem to the third-party application, and prevents cross-application generation. Interference problem.
  • the first embodiment of the present invention provides an open platform, including: a guiding module 401, a sending module 402, and a platform identifying module 403, where:
  • the guiding module 401 is configured to receive an authorization command of the user terminal to the third-party application by using the accessing terminal, and the sending module 402 is configured to: after the user terminal authorizes the connection succeeding, log in to the hopping protocol according to the predetermined open platform, and use the first OpenID of the user terminal. And transmitting the first OpenKey to the third-party application; performing, by the third-party application, the user terminal-based authorized login according to the first OpenID and the first OpenKey;
  • the platform identification module 403 is configured to send an alert message to the user terminal by using an open platform account as an identifier of the open platform when the user terminal logging in to the open platform starts the third-party application.
  • the page that the open platform enters is an authorization page
  • the manner in which the open platform enters the authorization page may be: the open platform enters the authorization page according to the application login instruction of the user terminal, and the application login instruction may be a voice instruction. It can also be an open platform for the user terminal to enter the settings of the third-party application, such as the user can click the client's aap application button. Enter the authorization page; or, the open platform logs in to the third-party application through the user terminal (for example, the user enters the third-party application by clicking the login button on the third-party application), and the third-party application invokes the corresponding interface of the open platform to enter the authorization page, the interface Can be js APL
  • the user is guided by the boot module 401 to agree to the authorization of the third party application.
  • the open platform logs in to the jumpback protocol according to the preset open platform, opens the login success page of the third-party application, notifies the third-party application, the user terminal agrees to authorize, and at the same time, opens the platform.
  • the first OpenID and the first OpenKey are sent to the third party application by the sending module 402.
  • the third-party application After the third-party application receives the first OpenID and the first OpenKey from the open platform, the third-party application sends a login status, allowing the user to access the resources provided by the third-party application, and allowing the user to log in. Enjoy the services provided by this third-party app.
  • the second embodiment of the present invention provides an open platform. Based on the foregoing first embodiment, the method further includes: a generating conversion module 4012 and a verification module 404, where:
  • the generating conversion module 4012 is connected between the guiding module 401 and the sending module 402, and configured to generate an initial OpenID and an initial OpenKey according to the login account of the user terminal; and convert the initial OpenID and the initial OpenKey according to a predetermined mapping relationship. For the first OpenID and the first OpenKey
  • the authentication module 404 is connected to the sending module 402, and is configured to perform legality verification on the third-party application according to the first OpenID and the first OpenKey. After the verification succeeds, the third-party application authorizes the login successfully.
  • the verification module 404 is further configured to receive a verification request sent by the third-party application, where the verification request carries the first OpenID and the first OpenKey, and perform legality verification on the first OpenID and the first OpenKey in the verification request, And when the verification is successful, return the user authorization data to the third party application.
  • the first OpenID and the first OpenKey that are transmitted by the open platform to the third-party application are preset mappings of the initial OpenID and the initial OpenKey obtained by the open platform. The relationship is transformed.
  • the generating conversion module 4012 After the open platform logs in to the user terminal, and the user terminal is allowed to agree to the authorization of the third-party application by the guiding module 401, the generating conversion module 4012 generates an initial OpenID and an initial OpenKey according to the login account of the user terminal; and generates a conversion module 4012. According to the predetermined mapping relationship, the initial OpenID and the initial OpenKey are converted into the first OpenID and the first OpenKey, thereby increasing the security of the third-party authorized login.
  • the third-party application after receiving the first OpenID and the first OpenKey brought by the open platform, performs legality authentication according to the first OpenID and the first OpenKey.
  • the specific certification process includes the following two situations:
  • the first scenario is as follows: The third-party application performs locality authentication, and receives the validity authentication of the first OpenID and the first OpenKey by the local server.
  • the second scenario is as follows:
  • the third-party application receives the legality authentication of the first OpenID and the first OpenKey by the open platform, and specifically authenticates the first OpenID and the first OpenKey through the verification module 404 of the open platform.
  • the authentication process is specifically: the third-party application sends an authentication request to the open platform, and carries the first OpenID and the first OpenKey in the verification request; and then, the open platform sends the third-party application to the third-party application.
  • the first OpenID and the first OpenKey in the verification request are validated.
  • the third-party application authorizes the login successfully, and the third-party application sends the login state, allowing the user terminal to access the resources provided by the third-party application, and allowing the user to enjoy the services provided by this third-party app.
  • the third-party application In the process of the third-party application receiving the authentication of the first OpenID and the first OpenKey by the open platform, if the third-party application needs to obtain the authorization data of the user, the third-party application carries the first 0 penID and the first OpenKey through the local server. Backend server to the open platform The user authorization data is obtained. After the open platform successfully authenticates the validity of the first OpenID and the first OpenKey, the open platform returns the user authorization data to the third-party application.
  • the platform identification module 403 includes: an obtaining module 4031, a sending module 4032, and a reminding module 4033, wherein:
  • the obtaining module 4031 is configured to obtain an open platform account generated according to an AppID of the third-party application and a platform login account of the user terminal when the third-party application is started by the user terminal that logs in to the open platform;
  • the sending module 4032 is configured to deliver the open platform account to the third-party application
  • the reminding module 4033 is configured to receive the notification instruction sent by the third-party application, and send the third-party application to the third-party application according to the open platform account carried by the notification instruction.
  • the user terminal sends a reminder message corresponding to the notification.
  • the user logs in to the open platform through a platform login account on a mobile terminal such as a PC, a mobile phone, or an IPhone.
  • the platform login account serves as an identifier for the user to log in to the open platform. After the user logs in to the open platform, the open platform can be clicked and run on the open platform according to actual needs.
  • a third-party application on it to get the appropriate service or resource.
  • the embodiment sets a parameter open platform account (hereinafter referred to as QPlusID) associated with the user terminal of the third party application, and the parameter QPlusID is generated by the open platform according to the platform login account of the user terminal and the AppID of the third party application. .
  • QPlusID a parameter open platform account associated with the user terminal of the third party application
  • Each user terminal has a platform login account on the open platform.
  • each third-party application on the open platform has a corresponding AppID, and the open platform generates a QPlusID according to the platform login account of the user terminal and the AppID of the third-party application.
  • the message can be delivered to the corresponding open platform according to the QPlusID.
  • the open platform generates the login ID based on the platform of the user terminal and the AppID of the third-party application.
  • the QPlusID can be pre-generated and saved in the local cache, or it can be generated temporarily.
  • the open platform obtains the corresponding QPlusID directly through the obtaining module 4031. If the cache does not exist, the open platform passes the obtaining module 4031.
  • the background server starts pulling, and the back-end server of the open platform generates a QPlusID according to information such as the platform login account of the user terminal and the AppID of the third-party application.
  • the open platform After the open platform obtains the QPlusID associated with the user terminal, the open platform notifies the third-party application to obtain the QPlusID, and passes the QPlusID to the third-party application through the sending module 4032; the third-party application obtains the open platform through the front-end application.
  • the QPlusID comes in, log in to the background server of the third-party application, and pass the obtained QPlusID to the background server of the third-party application for saving.
  • the background server of the third-party application also saves the login account of the user terminal on the third-party application (ie, the implementation) The corresponding relationship between the third-party login account and the QPlusID.
  • the QPlusID is provided to the open platform.
  • the open platform generates the QplusID according to the platform login account of the user terminal and the AppID of the third-party application, and may be generated by using a predetermined algorithm, such as an existing TEA (Tindy Encryption Algorithm), DES (Data Encryption Standard, A symmetric encryption algorithm such as the data density standard) and IDEA (International Data Encryption Algorithm), which serializes the platform login account of the user terminal and the AppID of the third-party application to generate a QplusID.
  • TEA Tindy Encryption Algorithm
  • DES Data Encryption Standard
  • a symmetric encryption algorithm such as the data density standard
  • IDEA International Data Encryption Algorithm
  • the third-party application front-end can be in the login state or offline, and the third-party application's background server saves the locally saved list.
  • the QPlusID corresponding to the third-party login account of the user terminal is detected, and the corresponding request is specified when requesting the interface of the open platform reminder center QPlusID
  • the open platform reminder module 4033 asks the background server of the open platform to query the platform login account of the user terminal and the AppID of the third-party application through the reminder center, and the reminder center of the open platform knows the sending destination of the reminder message, and verifies the first Whether the AppID of the three-party application is correct to prevent malicious access or interference across applications.
  • the alerting module 4033 includes: a querying unit 40331 and a sending unit 40332, where:
  • the query unit 40331 is configured to: according to the open platform account carried by the notification instruction, query the account login account of the user terminal corresponding to the open platform account carried by the local notification notification instruction;
  • the sending unit 40332 is configured to send, according to the platform login account of the corresponding user terminal, a reminder message corresponding to the notification instruction to the corresponding user terminal.
  • the reminding module 4033 includes: the query unit 40331, the sending unit 40332, and the checking unit 40333, where:
  • the query unit 40331 is configured to: according to the open platform account carried by the notification instruction, the platform login account of the user terminal corresponding to the open platform account carried by the local query notification command and the AppID of the corresponding third party application;
  • the verification unit 40333 is configured to check the AppID of the corresponding third-party application, and the sending unit 40332 is configured to send a reminder corresponding to the notification instruction to the corresponding user terminal according to the platform login account of the corresponding user terminal after the verification is passed. Message.
  • the present invention further provides an open platform, the open platform includes a platform identification module 403, and the platform identification module 403, as shown in FIG. 10, includes: an obtaining module 4031, a sending module 4032, and a reminding module 4033, wherein:
  • the obtaining module 4031 is configured to obtain an open platform generated according to the AppID of the third-party application and the platform login account of the user terminal when the user terminal that logs in to the open platform starts the third-party application. account number;
  • the sending module 4032 is configured to deliver the open platform account to the third-party application
  • the reminding module 4033 is configured to receive the notification instruction sent by the third-party application, and send the third-party application to the third-party application according to the open platform account carried by the notification instruction.
  • the user terminal sends a reminder message corresponding to the notification.
  • the user logs in to the open platform through a platform login account on a mobile terminal such as a PC, a mobile phone, or an IPhone.
  • the platform login account serves as an identifier for the user to log in to the open platform. After the user logs in to the open platform, the open platform can be clicked and run on the open platform according to actual needs.
  • a third-party application on it to get the appropriate service or resource.
  • the embodiment sets a parameter open platform account (hereinafter referred to as QPlusID) associated with the user terminal of the third party application, and the parameter QPlusID is generated by the open platform according to the platform login account of the user terminal and the AppID of the third party application. .
  • QPlusID a parameter open platform account associated with the user terminal of the third party application
  • Each user terminal has a platform login account on the open platform.
  • each third-party application on the open platform has a corresponding AppID, and the open platform generates a QPlusID according to the platform login account of the user terminal and the AppID of the third-party application.
  • the message can be delivered to the corresponding open platform according to the QPlusID.
  • the QPlusID generated by the open platform according to the platform login account of the user terminal and the AppID of the third-party application may be pre-generated and saved in the local cache, or may be temporarily generated.
  • the open platform After the user terminal logs in to the open platform and starts the third-party application, if there is a corresponding QPlusID in the cache of the open platform, the open platform obtains the corresponding QPlusID directly through the obtaining module 4031. If the cache does not exist, the open platform passes the obtaining module 4031. The background server starts pulling, and the back-end server of the open platform generates a QPlusID according to information such as the platform login account of the user terminal and the AppID of the third-party application. After the open platform obtains the QPlusID associated with the user terminal, the open platform notifies the third-party application to obtain the QPlusID, and passes the QPlusID to the third-party application through the sending module 4032; the third-party application obtains the open platform through the front-end application.
  • the QPlusID After the QPlusID comes in, log in to the background server of the third-party application, and pass the obtained QPlusID to the background server of the third-party application for saving.
  • the background server of the third-party application also saves the login account of the user terminal on the third-party application (ie, the implementation) The corresponding relationship between the third-party login account and the QPlusID.
  • the QPlusID is provided to the open platform.
  • the open platform generates the QplusID according to the platform login account of the user terminal and the AppID of the third-party application, and may be generated by using a predetermined algorithm, such as an existing TEA (Tindy Encryption Algorithm), DES (Data Encryption Standard, A symmetric encryption algorithm such as the data density standard) and IDEA (International Data Encryption Algorithm), which serializes the platform login account of the user terminal and the AppID of the third-party application to generate a QplusID.
  • TEA Tindy Encryption Algorithm
  • DES Data Encryption Standard
  • a symmetric encryption algorithm such as the data density standard
  • IDEA International Data Encryption Algorithm
  • the third-party application front-end can be in the login state or offline, and the third-party application's background server saves the locally saved list.
  • the QPlusID corresponding to the third-party login account of the user terminal is detected, and the corresponding QPlusID is specified when requesting from the interface of the open platform reminder center, and the reminder module 4033 of the open platform queries the background server of the open platform to query the platform of the user terminal through the reminder center.
  • the login ID of the account and the third-party application, the reminder center of the open platform knows the sending destination of the reminder message, and verifies whether the AppID of the third-party application is correct, so as to prevent malicious access or interference across applications.
  • the reminding module 4033 includes: a query unit 40331 and a sending list. Yuan 40332, where:
  • the query unit 40331 is configured to: according to the open platform account carried by the notification instruction, query the account login account of the user terminal corresponding to the open platform account carried by the local notification notification instruction;
  • the sending unit 40332 is configured to send, according to the platform login account of the corresponding user terminal, a reminder message corresponding to the notification instruction to the corresponding user terminal.
  • the reminding module 4033 includes: the query unit 40331, the sending unit 40332, and the checking unit 40333, where:
  • the query unit 40331 is configured to: according to the open platform account carried by the notification instruction, the platform login account of the user terminal corresponding to the open platform account carried by the local query notification command and the AppID of the corresponding third party application;
  • the verification unit 40333 is configured to check the AppID of the corresponding third-party application, and the sending unit 40332 is configured to send a reminder corresponding to the notification instruction to the corresponding user terminal according to the platform login account of the corresponding user terminal after the verification is passed. Message.
  • a preferred embodiment of the present invention provides a login system, including: a user terminal 501, an open platform 502, and a third-party application 503, where:
  • the user terminal 501 is configured to link the open platform 502, and send an authorization command to the third-party application 503 to the open platform 502; and receive the access resources and services provided by the third-party application 503 after the third-party application 503 authorizes the login successfully;
  • the open platform 502 is configured to receive an authorization command of the user terminal to the third-party application 503 by entering the page. After the user terminal 501 authorizes the connection successfully, the first openID and the first user ID are obtained according to the predetermined open platform 502 login and return-hop protocol.
  • the OpenKey is sent to the third-party application 503, and when the user terminal that logs in to the open platform 502 starts the third-party application, the open platform account is used as the identifier of the open platform 502 to send a reminder message to the user terminal 501;
  • the third-party application 503 is configured to obtain the first OpenID and the first sent by the open platform 502.
  • the OpenKey is configured to allow the user terminal to access the third-party application 503 resources according to the first OpenID and the first OpenKey, and provide the user terminal with the site service.
  • the open platform 502 is further configured to perform legality verification on the third-party application 503 according to the first OpenID and the first OpenKey. After the verification is successful, the third-party application 503 authorizes the login to succeed;
  • the third-party application 503 is further configured to receive the validity verification of the local server according to the first OpenID and the first OpenKey; or the third-party application 503 receives the validity verification of the open platform 502 according to the first OpenID and the first OpenKey.
  • the third-party application 503 When the third-party application 503 receives the validity verification of the open platform 502 according to the first OpenID and the first OpenKey, the third-party application 503 is further configured to send an authentication request for acquiring the user authorization data to the open platform 502, where the verification request carries the first The OpenID and the first OpenKey; the user authorization data returned by the open platform 502 after the legal verification of the first OpenID and the first OpenKey is successful.
  • the manner in which the open platform 502 enters the authorization page may be: the open platform 502 enters the authorization page according to the application login command of the user terminal 501; or the open platform 502 logs in to the third-party application 503 through the user terminal 501, and
  • the third page application 503 invokes the js API (javascript Application Programming Interface, javascript application programming interface) of the open platform 502 to enter the authorization page.
  • the third party application 503 receives the login instruction of the user terminal 501, and invokes the corresponding interface of the open platform 502, such as the js API, according to the login instruction, to open the authorization page of the open platform 502.
  • the user terminal After the open platform 502 enters the authorization page, the user terminal is guided to agree to the authorization of the third party application 503.
  • the open platform 502 logs in to the hop-back protocol according to the preset open platform 502, opens the login success page of the third-party application 503, notifies the third-party application 503, and the user terminal 501 agrees.
  • Authorization at the same time, open platform 502 brings the first OpenlD and the first OpenKey to the third party application 503.
  • the first OpenlD and the first OpenKey delivered by the open platform 502 to the third-party application 503 may be the initial OpenlD and the initial OpenKey obtained by the open platform 502 after being authorized by the user terminal 501, or may be the initial OpenlD obtained by the open platform 502. And the initial OpenKey is converted by a preset mapping relationship.
  • the open platform 502 After the user terminal 501 logs in, and guides the user terminal 501 to agree to the authorization of the third-party application 503, the open platform 502 generates an initial OpenlD and an initial OpenKey according to the login account of the user terminal 501; and according to a predetermined mapping relationship, an initial The conversion corresponding to OpenlD and the initial OpenKey is the first OpenlD and the first OpenKey, thereby increasing the security of the third-party authorized login.
  • the third-party application 503 After the third-party application 503 receives the first OpenlD and the first OpenKey brought by the open platform 502, the third-party application 503 performs legality authentication according to the first OpenlD and the first OpenKey.
  • the specific certification process includes the following two situations:
  • the first scenario is: The third-party application 503 performs legality authentication locally, and receives the validity authentication of the local server for OpenlD and OpenKey.
  • the third party application 503 receives the legality certification of the first OpenlD and the first OpenKey by the open platform 502.
  • the authentication process is specifically: the third-party application 503 sends an authentication request to the open platform 502, and carries the first Open1D and the first OpenKey in the verification request; afterwards, the third platform application is applied by the open platform 502.
  • the first OpenlD and the first OpenKey in the verification request sent by the 503 perform the validity verification.
  • the third-party application 503 authorizes the login successfully, and the third-party application 503 sends the login state, allowing the user terminal 501 to access the third-party application.
  • 503 provides resources and allows the user terminal 501 to enjoy the services provided by the third party application 503.
  • the third-party application 503 receives the authentication of the validity of the first Open1D and the first OpenKey by the open platform 502, if the third-party application 503 needs to obtain the authorization data of the user, The third-party application 503 obtains the user authorization data by using the first OpenID and the first OpenKey to the background server of the open platform 502 by the local server. After the authentication of the validity of the first OpenID and the first OpenKey by the open platform 502 is successful, the open platform 502 The third party application 503 returns the user authorization material.
  • the open platform 502 When the user terminal of the login open platform 502 launches the third-party application, the open platform 502 obtains the open platform account generated according to the AppID of the third-party application and the platform login account of the user terminal, and transmits the open platform account to the third-party application 503. Receiving the notification instruction sent by the third-party application 503, and sending the notification message corresponding to the notification to the user terminal 501 for the third-party application 503 according to the open platform account carried by the notification instruction;
  • the third-party application 503 is configured to: when the user terminal logs in to the third-party application 503, receive the open platform account sent by the open platform 502, and record the correspondence between the third-party login account of the user terminal 501 and the QPlusID;
  • the application 503 needs to send a notification to the user terminal 501, the corresponding open platform account is obtained according to the third-party login account of the user terminal 501 and provided to the open platform 502.
  • the login method, the development platform and the system of the embodiment of the present invention guide the user terminal to authorize the authorization of the third-party application through the authorization page of the open platform; after the user terminal authorizes the connection successfully, the development platform logs in the jumpback protocol according to the open platform, and the user terminal
  • the first OpenID and the first OpenKey are brought to the third-party application; and then the third-party application is verified according to the first OpenID and the first OpenKey. After the verification is successful, the third-party application authorizes the login successfully, thereby implementing various forms.
  • the user terminal does not need to register and manage the login accounts of multiple websites, only through an open platform registration account, can access multiple websites after authorization, and provide convenience for users; and after logging in to the open platform after the user terminal
  • the open platform will be transmitted to the third-party application according to the AppID of the third-party application and the open platform account generated by the platform login account of the user terminal, and when the third-party application needs to send a notification to the user, the open platform is based on Third-party application specified open Taiwan account for third-party applications to users Send the corresponding reminder message, solve the reminder and push problem for the third-party application, and prevent the interference problem generated across the application.
  • an embodiment of the present invention provides an open platform identification system, including: an open platform 701 and a third-party application 702, where:
  • the open platform 701 is configured to acquire an open platform account generated according to the AppID of the third-party application 702 and the platform login account of the user terminal when the user terminal logging in to the open platform 701 starts the third-party application 702; and transmit the obtained open platform account to the
  • the third-party application 702 when the third-party application 702 needs to send a notification to the user terminal, the open platform 701 receives the notification instruction sent by the third-party application 702, and sends the third-party application 702 to the user terminal according to the open platform account carried by the notification instruction. a reminder message corresponding to the notification instruction;
  • the third-party application 702 is configured to: when the user terminal logs in to the third-party application 702, receive the open platform account sent by the open platform 701, and record the correspondence between the third-party login account of the user terminal and the QPlusID; when the third-party application 702 needs to go to the user terminal When the notification is sent, the corresponding open platform account is obtained according to the third-party login account of the user terminal and provided to the open platform 701.
  • the open platform 701 in this embodiment may be the open platform 502 in the foregoing embodiment, and the third-party application 702 is the third-party application 503 in the foregoing embodiment, where the open platform is used to identify the open platform to implement the message to the third-party application.
  • the open platform is used to identify the open platform to implement the message to the third-party application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明公开了一种登录及开放平台标识方法、开放平台及系统,通过开放平台的页面引导用户终端同意对第三方应用的授权;当用户终端授权连接成功后,开发平台根据开放平台登录回跳协议,将用户的第一OpenID和第一OpenKey带给第三方应用;由第三方应用根据第一OpenID和第一OpenKey进行基于用户终端的授权登录,在登录所述开放平台的用户终端启动第三方应用时,以开放平台账号作为开放平台的标识向用户终端发送提醒消息;由此可实现多种形态的登录,用户不需要注册和管理多个网站的登录账号,并同时解决对第三方应用的提醒和推送问题。

Description

登录及开放平台标识方法、 开放平台及系统 本专利申请要求 2011 年 11 月 23 日提交的中国专利申请号为 201110376343.4, 申请人为腾讯科技(深圳)有限公司, 发明名称为 "第三 方授权登录方法、 开放平台及系统", 和 2011年 11月 23 日提交的中国专 利申请号为 201110375863.3 , 申请人为腾讯科技(深圳)有限公司, 发明 名称为 "开放平台标识方法、 开放平台及系统" 的优先权, 该申请的全文 以引用的方式并入本申请中。 技术领域
本发明涉及开放平台技术, 尤其涉及一种登录及开放平台标识方法、 开放平台及系统。 背景技术
在现有技术中, 用户登录某一网站时, 通常需要在该网站上注册登录 账号及设置相应的登录密码。 用户在 A网站注册的帐号只能登录 A网站, 不可以登录 B网站, 因此, 用户若需要登录多个网站, 则需要注册相应的 账号, 使得用户需要管理多个帐号, 给用户造成不便。
也有通过第三方应用网站访问用户注册网站的账号的情形, 但是, 出 于安全性及用户隐私的考虑, 用户若需要访问第三方应用网站, 则需要注 册网站的开放平台对第三方应用网站进行授权, 也就是说, 用户在未登录 的情况下, 或尚未给第三方应用授权的情况下访问该第三方应用, 注册网 站的开放平台不会向第三方应用传递用户的相关参数, 此时, 第三方应用 还不能访问到用户的个人信息等基本数据, 若第三方应用需要获取用户的 基本数据才能向用户提供服务, 此种情形下, 用户将不允许访问第三方应 用提供的资源, 也无法享受第三方应用提供的服务。 以搜狐微博账号为例, 若某一第三方应用要求访问用户的搜狐微博账号, 在用户授予第三方应用 对该帐号的访问权限后, 用户将可以在此第三方应用中使用搜狐微博的相 关功能, 同时, 该第三方应用也可以访问和更新用户微博的相关数据。
但是, 现有的第三方应用授权登录方法实现复杂, 无法满足用户的需 要, 而且, 即时通讯开放平台作为一种客户端平台系统, 提醒功能的实现 过程存在问题: 需要发送提醒消息的应用的运维中心无法知道当前用户在 哪个开放平台上运行, 也就是说, 针对当前用户的消息不知该投递到哪个 平台上。 发明内容
本发明的主要目的在于提供一种实现简单、 方便用户登录多个网站的 登录方法、 开发平台及系统。
为了达到上述目的, 本发明提供一种登录方法, 该方法包括: 开放平台进入页面接收用户终端对第三方应用的授权指令;
当所述用户终端授权连接成功后, 根据预定的开放平台登录回跳协议, 将所述用户终端的第一登录标识 OpenID和第一登录密钥 OpenKey传递给 所述第三方应用;由所述第三方应用根据所述第一 OpenID和第一 OpenKey 进行基于所述用户终端的授权登录;
在登录所述开放平台的用户终端启动第三方应用时, 以开放平台账号 作为开放平台的标识向用户终端发送提醒消息。
上述方案中, 所述将用户的第一 OpenID和第一 OpenKey传递给所述 第三方应用的步驟之后还包括:
根据所述第一 OpenID和第一 OpenKey对所述第三方应用进行合法性 验证, 当验证成功后, 所述第三方应用授权登录成功。
上述方案中, 所述根据第一 OpenID和第一 OpenKey对所述第三方应 用进行合法性验证的步驟包括: 接收所述第三方应用发送的验证请求, 所述验证请求中携带有所述第 一 OpenID和第一 OpenKey;
对所述验证请求中的第一 OpenID和第一 OpenKey进行合法性验证。 上述方案中, 该方法还包括:
当验证成功后, 所述开放平台向所述第三方应用返回用户授权资料。 上述方案中, 所述根据预定的开放平台登录回跳协议, 将用户终端的 第一 OpenID和第一 OpenKey传递给所述第三方应用的步驟之前, 该方法 还包括:
所述开放平台根据所述用户终端的登录账号生成初始 OpenID 和初始 OpenKey;
根据预定的映射关系, 将所述初始 OpenID和初始 OpenKey对应的转 换为所述第一 OpenID和第一 OpenKey。
上述方案中, 所述开放平台进入页面的方式包括:
所述开放平台根据用户终端的应用登录指令进入页面; 或者, 所述开放平台通过用户终端登录所述第三方应用, 并由所述第三方应 用调用开放平台的接口进入页面。
上述方案中, 所述在登录所述开放平台的用户终端启动第三方应用时, 进行开放平台标识, 包括:
开放平台在登录该开放平台的用户终端启动第三方应用时, 获取根据 所述第三方应用的应用标识 AppID及所述用户终端的平台登录账号生成的 开放平台账号; 将所述开放平台账号传递给所述第三方应用; 接收所述第 三方应用发送的通知指令, 并根据所述通知指令携带的开放平台账号, 为 所述第三方应用向所述用户终端发送对应所述通知指令的提醒消息。
本发明提供的一种登录开放平台, 该开放平台包括: 引导模块、 发送 模块、 平台标识模块, 其中, 引导模块, 用于进入页面接收用户终端对第三方应用的授权指令; 发送模块, 用于当所述用户终端授权连接成功后, 根据开放平台登录 回跳协议, 将用户终端的第一 OpenlD和第一 OpenKey传递给所述第三方 应用; 由所述第三方应用根据所述第一 OpenlD和第一 OpenKey进行基于 所述用户终端的授权登录;
平台标识模块, 用于在登录所述开放平台的用户终端启动第三方应用 时, 以开放平台账号作为开放平台的标识向用户终端发送提醒消息。
上述方案中, 该开放平台还包括:
验证模块, 用于根据所述第一 OpenlD和第一 OpenKey对所述第三方 应用进行合法性验证, 当验证成功后, 所述第三方应用授权登录成功。
上述方案中, 所述验证模块还用于接收所述第三方应用发送的验证请 求, 所述验证请求中携带有所述第一 OpenlD和第一 OpenKey;对所述验证 请求中的第一 OpenlD和第一 OpenKey进行合法性验证。
上述方案中, 所述验证模块还用于当验证成功后, 向所述第三方应用 返回用户授权资料。
上述方案中, 该开放平台还包括:
生成转换模块,用于根据所述用户终端的登录账号生成初始 OpenlD和 初始 OpenKey;根据预定的映射关系,将所述初始 OpenlD和初始 OpenKey 对应的转换为所述第一 OpenlD和第一 OpenKey。
上述方案中, 所述平台标识模块包括: 获取模块、 发送模块以及提醒 模块, 其中:
获取模块, 用于在登录开放平台的用户终端启动第三方应用时, 获取 根据第三方应用的 AppID 及用户终端的平台登录账号生成的开放平台账 发送模块, 用于将开放平台账号传递给所述第三方应用; 提醒模块, 用于接收第三方应用发送的通知指令, 并根据通知指令携 带的开放平台账号, 为第三方应用向所述用户终端发送对应通知的提醒消 本发明提供的一种登录系统, 该系统包括: 用户终端、 开放平台及第 三方应用, 其中:
所述用户终端, 用于链接所述开放平台, 向所述开放平台发送对第三 方应用的授权指令; 以及当第三方应用授权登录成功后, 接收所述第三方 应用提供的访问资源及服务;
所述开放平台, 用于进入页面接收用户终端对第三方应用的授权指令; 当所述用户终端授权连接成功后, 根据预定的开放平台登录回跳协议, 将 用户终端的第一 OpenID和第一 OpenKey传递给所述第三方应用, 并在登 录所述开放平台的用户终端启动第三方应用时, 以开放平台账号作为开放 平台的标识向用户终端发送提醒消息;
所述第三方应用, 用于获取开放平台发送的第一 OpenID 和第一 OpenKey;根据所述第一 OpenID和第一 OpenKey下发登录态,允许所述用 户终端访问所述第三方应用资源, 并为所述用户终端提供站点服务。
上述方案中,
所述开放平台, 还用于根据所述第一 OpenID和第一 OpenKey对所述 第三方应用进行合法性验证, 当验证成功后, 所述第三方应用授权登录成 功;
所述第三方应用, 还用于根据所述第一 OpenID和第一 OpenKey接收 本地服务器的合法性验证; 或者, 所述第三方应用根据第一 OpenID和第一 OpenKey接收所述开放平台的合法性验证。
上述方案中,
所述第三方应用, 还用于向所述开放平台发送获取用户授权资料的验 证请求 , 所述验证请求中携带有所述第一 OpenID和第一 OpenKey;接收所 述开放平台对所述第一 OpenID和第一 OpenKey进行合法验证成功后返回 的用户授权资料。
上述方案中,
所述第三方应用, 还用于接收客户端的应用登录指令, 根据所述应用 登录指令调用所述开放平台的接口, 打开所述开放平台的页面。
上述方案中, 所述开放平台, 具体用于在登录该开放平台的用户终端 启动第三方应用时, 获取根据第三方应用的 AppID及用户终端的平台登录 账号生成的开放平台账号, 将所述开放平台账号传递给第三方应用, 接收 第三方应用发送的通知指令, 并根据通知指令携带的开放平台账号, 为第 三方应用向用户终端发送对应通知的提醒消息。
本发明提供的一种开放平台标识方法, 该方法包括:
开放平台在登录该开放平台的用户终端启动第三方应用时, 获取根据 所述第三方应用的应用标识 AppID及所述用户终端的平台登录账号生成的 开放平台账号;
将所述开放平台账号传递给所述第三方应用;
接收所述第三方应用发送的通知指令, 并根据所述通知指令携带的开 放平台账号, 为所述第三方应用向所述用户终端发送对应所述通知指令的 提醒消息。
上述方案中, 所述开放平台获取根据所述第三方应用的 AppID及所述 用户终端的平台登录账号生成的的开放平台账号的步驟包括:
所述开放平台从緩存中获取所述开放平台账号; 或者,
所述开放平台根据所述用户终端的平台登录账号以及所述第三方应用 的 AppID以预定算法临时生成所述开放平台账号。
上述方案中, 所述开放平台根据所述通知指令携带的开放平台账号, 为所述第三方应用向所述用户终端发送对应所述通知指令的提醒消息的步 驟包括:
所述开放平台根据所述通知指令携带的开放平台账号, 从本地查询所 述通知指令携带的开放平台账号对应的用户终端的平台登录账号;
根据所述对应的用户终端的平台登录账号向对应的用户终端发送对应 所述通知指令的提醒消息。
上述方案中, 所述开放平台根据所述通知指令携带的开放平台账号, 为所述第三方应用向所述用户终端发送对应所述通知指令的提醒消息的步 驟包括:
所述开放平台根据所述通知指令携带的开放平台账号, 从本地查询所 述通知指令携带的开放平台账号对应的用户终端的平台登录账号以及对应 的第三方应用的 AppID;
对所述对应的第三方应用的 AppID进行校验;
当校验通过后, 根据所述对应的用户终端的平台登录账号向对应的用 户终端发送对应所述通知指令的提醒消息。
本发明提供的一种开放平台, 该开放平台包括平台标识模块, 所述平 台标识模块包括: 获取模块、 发送模块以及提醒模块, 其中,
获取模块, 用于在登录所述开放平台的用户终端启动第三方应用时, 获取根据所述第三方应用的 AppID及所述用户终端的平台登录账号生成的 开放平台账号;
发送模块, 用于将所述开放平台账号传递给所述第三方应用; 提醒模块, 用于接收所述第三方应用发送的通知指令, 并根据所述通 知指令携带的开放平台账号, 为所述第三方应用向所述用户终端发送对应 所述通知指令的提醒消息。
上述方案中, 所述获取模块还用于从緩存中获取所述开放平台账号; 或者根据所述用户终端的平台登录账号以及所述第三方应用的 AppID以预 定算法临时生成所述所述开放平台账号。
上述方案中, 所述提醒模块包括:
查询单元, 用于根据所述通知指令携带的开放平台账号, 从本地查询 所述通知指令携带的开放平台账号对应的用户终端的平台登录账号;
发送单元, 用于根据所述对应的用户终端的平台登录账号向对应的用 户终端发送对应所述通知指令的提醒消息。
上述方案中, 所述提醒模块还包括: 校验单元, 其中:
所述查询单元, 还用于根据所述通知指令携带的开放平台账号, 从本 地查询所述通知指令携带的开放平台账号对应的用户终端的平台登录账号 以及对应的第三方应用的 AppID;
所述校验单元, 用于对所述对应的第三方应用的 AppID进行校验; 所述发送单元, 还用于当校验通过后, 根据所述对应的用户终端的平 台登录账号向对应的用户终端发送对应所述通知指令的提醒消息。
本发明提供的一种开放平台标识系统, 该系统包括: 开放平台及第三 方应用, 其中,
所述开放平台, 用于在登录该开放平台的用户终端启动第三方应用时, 获取根据所述第三方应用的 AppID及所述用户终端的平台登录账号生成的 开放平台账号; 将所述开放平台账号传递给所述第三方应用; 接收所述第 三方应用发送的通知指令, 并根据所述通知指令携带的开放平台账号, 为 所述第三方应用向所述用户终端发送对应所述通知指令的提醒消息;
所述第三方应用, 用于当所述用户终端登录所述第三方应用时, 接收 所述开放平台发送的开放平台账号, 并记录所述用户终端的第三方登录账 号与所述开放平台账号的对应关系; 当所述第三方应用需要向所述用户终 端发送通知时, 根据所述用户终端的第三方登录账号获取对应的开放平台 账号并提供给所述开放平台。
本发明提出的一种登录及开放平台标识方法、 开放平台及系统, 通过 开放平台的页面引导用户终端同意对第三方应用的授权; 当用户终端授权 连接成功后, 开发平台根据开放平台登录回跳协议, 将用户的第一 OpenID 和第一 OpenKey带给第三方应用; 由第三方应用根据第一 OpenID和第一 OpenKey进行基于用户终端的授权登录, 在登录所述开放平台的用户终端 启动第三方应用时, 以开放平台账号作为开放平台的标识向用户终端发送 提醒消息; 由此可实现多种形态的登录, 用户不需要注册和管理多个网站 的登录账号, 只需通过一个开放平台的注册账号, 经过授权即可访问多个 网站, 为用户提供方便; 并同时解决对第三方应用的提醒和 push问题, 以 及防止跨应用产生的干扰问题。 附图说明
图 1是本发明提供的登录方法的第一实施例的流程示意图;
图 2是本发明图 1中步驟 S103的流程示意图;
图 3是本发明图 2中步驟 S203的第一种实例的流程示意图;
图 4是本发明图 2中步驟 S203的第二种实例的流程示意图;
图 5是本发明提供的登录方法的第二实施例的流程示意图;
图 6是本发明提供的登录方法第二实施例的第一种实例的流程示意图; 图 7是本发明提供的登录方法第二实施例的第二种实例的流程示意图; 图 8是本发明提供的开放平台第一实施例的结构示意图;
图 9是本发明提供的开放平台第二实施例的结构示意图;
图 10是本发明提供的开放平台中平台标识模块的结构示意图; 图 11是本发明平台标识模块中提醒模块第一种实例的结构示意图; 图 11是本发明平台标识模块中提醒模块第二种实例的结构示意图; 图 13是本发明登录系统实施例的结构示意图; 图 14是本发明开放平台标识系统实施例的结构示意图。 具体实施方式
本发明实施例方法运行环境涉及开放平台、 第三方应用站点 (以下简 称第三方应用) 以及面向用户的客户端 (以下实施例称用户终端), 其中, 用户终端在开放平台注册有登录账号及相应的密码, 用户终端通过注册的 登录账号及相应的密码, 可以在开放平台上进行即时通讯的登录, 在本发 明中, 用户终端通过开放平台对第三方应用的授权, 可以实现即时通讯的 第三方授权登录。
本发明实施例所涉及的专业术语包括:
AppID: 应用的唯一标识, 可以通过 AppID 查找 APP ( application program, 应用程序)基本信息。 由开发平台在第三方应用注册时统一分配。
AppSecret: 当用户终端通过即时通讯登录第三方应用时, 以及开发平 台返回给第三方应用 OpenKey时, 为了保证第三方应用和开发平台的服务 器之间通信的安全, 避免通信渠道被恶意使用, 以及充分保证第三方应用 应用的权利, 通信时, 需要使用 AppSecret加入签名机制。 AppSecret只有 开放平台与第三方应用双方知道, 唯一且不公开。
OpenID: OpenID是与第三方应用通信的用户 ID, 其与用户终端的即 时通讯号码——对应, 第三方应用在访问 OpenAPI时必需携带。
OpenKey: OpenKey是第三方应用通信的验证字符串, 第三方应用在 访问 OpenAPI时必需携带。
OpenAPI: 是开放平台为第三方应用接入提供的编程接口。
如图 1所示, 本发明第一实施例提出的一种登录方法, 包括: 步驟 S101 ,开放平台进入页面接收用户终端对第三方应用的授权指令; 其中, 开放平台进入的页面为授权页面, 开放平台进入授权页面的方 式可以是: 开放平台根据用户终端的应用登录指令进入授权页面, 该应用 登录指令可以为语音指令, 也可以是开放平台为用户终端进入第三方应用 设置的控件等, 比如用户可以点击客户端的 aap应用按钮进入授权页面;或 者, 开放平台通过用户终端登录第三方应用 (比如用户通过点击第三方应 用上的登录按钮进入第三方应用), 并由第三方应用调用开放平台相应的接 口进入授权页面 , 该接口可以为 js API ( javascript Application Programming Interface, javascript应用程序编程接口)。
开放平台进入授权页面后, 引导用户终端同意对第三方应用的授权。 步驟 S102, 当用户终端授权连接成功后, 根据预定的开放平台登录回 跳协议,将用户终端的第一登录标识( OpenID )和第一登录密钥( OpenKey ) 传递给第三方应用; 由第三方应用根据第一 OpenID和第一 OpenKey进行 基于用户终端的授权登录。
当用户终端同意授权且用户终端授权连接成功后, 开放平台根据预先 设定的开放平台登录回跳协议, 打开第三方应用的登录成功页面, 通知第 三方应用, 用户终端同意授权, 同时, 开放平台带上第一 OpenID 和第一 OpenKey至第三方应用。
第三方应用收到开放平台传递过来的第一 OpenID和第一 OpenKey后, 进行授权登录, 当授权登录成功后, 第三方应用下发登录态, 允许用户访 问第三方应用提供的资源, 并允许用户享受该第三方应用提供的服务。
步驟 S103 , 在登录所述开放平台的用户终端启动第三方应用时, 以开 放平台账号作为开放平台的标识向用户终端发送提醒消息;
本步驟如图 2所示, 具体包括:
步驟 S201 ,开放平台在登录该开放平台的用户终端启动第三方应用时, 获取根据第三方应用的 AppID及用户终端的平台登录账号生成的开放平台 账号; 用户在 PC机、 手机或 IPhone等移动终端通过平台登录账号登录开放平台, 平台登录账号作为用户登录开放平台的标识, 当用户登录开放平台后, 在 开放平台上可以根据实际需要点击运行在开放平台上的第三方应用, 以获 取相应的服务或资源。
为了标识开放平台, 本实施例设置了第三方应用与用户终端相关联的 参数开放平台账号(以下以 QplusID表示), 该参数 QPlusID由开放平台根 据用户终端的平台登录账号以及第三方应用的 AppID (应用标识)生成。
每个用户终端在开放平台上均具有平台登录账号, 同时, 每个开放平 台上的第三方应用均具有对应的 AppID, 开放平台根据用户终端的平台登 录账号以及第三方应用的 AppID生成的 QPlusID, 作为开放平台的标识, 以便在第三方应用需要通过开放平台进行消息提醒时,可以根据该 QPlusID 将消息投递到相应的开放平台。
其中, 开放平台根据用户终端的平台登录账号以及第三方应用的 AppID生成 QplusID可以采用预定的算法生成,比如通过现有的 TEA( Tiny Encryption Algorithm, 分组力口密算法)、 DES ( Data Encryption Standard, 数 据力口密标准 )及 IDEA ( International Data Encryption Algorithm, 国际数据 加密算法)等对称加密算法, 将用户终端的平台登录账号以及第三方应用 的 AppID 串接在一起, 生成 QplusID, 上述对称加密算法属现有的成熟方 案, 在此不作详述。
开放平台根据用户终端的平台登录账号以及第三方应用的 AppID生成 的 QPlusID可以预先生成保存在本地緩存中, 也可以临时生成。
在用户终端登录开放平台并启动第三方应用后, 如果开放平台的緩存 中有相对应的 QPlusID, 开放平台则直接获取对应的 QPlusID, 如果緩存中 没有, 开放平台则到其后台服务器启动拉取, 开放平台的后台服务器根据 用户终端的平台登录帐号和第三方应用的 AppID等信息生成 QPlusID。 步驟 S202 , 将开放平台账号传递给第三方应用;
当开放平台获取到第三方应用与用户终端相关联的 QPlusID后, 开放 平台通知第三方应用获取该 QPlusID,第三方应用通过前端获取到开放平台 传递过来的 QPlusID后,登录第三方应用的后台服务器,并将获取的 QPlusID 传递给第三方应用的后台服务器保存, 第三方应用的后台服务器同时保存 用户终端在第三方应用上的登录账号 (即本实施例所称第三方登录账号) 与 QPlusID的对应关系。 以便第三方应用在需要开放平台向用户终端发送 提醒消息时, 将该 QPlusID提供给开放平台。
步驟 S203 , 接收第三方应用发送的通知指令, 并根据通知指令携带的 开放平台账号, 为第三方应用向用户终端发送对应通知的提醒消息。
在某个时刻, 当第三方应用的后台服务器有消息需要向第三方应用前 端通知消息时, 第三方应用前端可以处于登录状态, 也可以处于离线状态, 第三方应用的后台服务器从本地保存的列表中查出用户终端的第三方登录 账号对应的 QPlusID, 并向开放平台的提醒中心的接口请求时指定相应的 QPlusID , 开放平台的提醒中心向开放平台的后台服务器询问用户终端的平 台登录帐号和第三方应用的 AppID, 开放平台的提醒中心由此获知提醒消 息的发送目的地, 并校验第三方应用的 AppID是否正确, 以防止跨应用的 恶意访问或干扰。
在具体实施过程中, 如图 3 所示, 作为开放平台进行消息提醒的一种 实施方式, 上述步驟 S203包括:
步驟 S2031 ,开放平台根据通知指令携带的开放平台账号,从本地查询 通知指令携带的开放平台账号对应的用户终端的平台登录账号;
开放平台根据第三方应用提供的 QPlusID,从本地查询第三方应用提供 的 QPlusID对应的用户终端的平台登录账号。
步驟 S2032,根据对应的用户终端的平台登录账号向对应的用户终端发 送对应通知指令的提醒消息。
如图 4所示, 作为开放平台进行消息提醒的另一种实施方式, 上述步 驟 S203包括:
步驟 S2033 ,开放平台根据通知指令携带的开放平台账号,从本地查询 通知指令携带的开放平台账号对应的用户终端的平台登录账号以及对应的 第三方应用的 AppID;
开放平台根据第三方应用提供的 QPlusID,从本地查询第三方应用提供 的 QPlusID 对应的用户终端的平台登录账号以及对应的第三方应用的 AppID。
步驟 S2034, 对对应的第三方应用的 AppID进行校验;
步驟 S2035, 当校验通过后,根据对应的用户终端的平台登录账号向对 应的用户终端发送对应通知指令的提醒消息。
本步驟通过在用户终端登录开放平台后, 若用户终端启动第三方应用, 开放平台将根据第三方应用的 AppID及用户终端的平台登录账号生成的开 放平台账号传递给第三方应用, 当第三方应用需要向用户发送通知时, 开 放平台根据第三方应用指定的开放平台账号, 为第三方应用向用户发送对 应的提醒消息, 解决了对第三方应用的提醒和 push问题, 同时防止跨应用 产生的干扰问题。
如图 5 所示, 本发明第二实施例提出的一种登录方法, 在上述实施例 的基础上, 在上述步驟 S102之前还包括:
步驟 S1021 , 开放平台根据用户终端的登录账号生成初始 OpenID和初 始 OpenKey;
步驟 S1022, 根据预定的映射关系, 将初始 OpenID和初始 OpenKey 对应的转换为第一 OpenID和第一 OpenKey。
在上述步驟 S102之后, 还包括: 步驟 S104, 根据第一 OpenID和第一 OpenKey对第三方应用进行合法 性验证, 当验证成功后, 第三方应用授权登录成功。
本实施例与上述第一实施例的区别在于, 在本实施例中, 开放平台传 递给第三方应用的第一 OpenID和第一 OpenKey是由开放平台获取的初始 OpenID和初始 OpenKey经过预设的映射关系转换而来。
具体地, 开放平台在用户终端登录, 并引导用户终端同意对第三方应 用的授权后, 根据用户终端的登录账号生成初始 OpenID和初始 OpenKey; 并根据预定的映射关系, 将初始 OpenID和初始 OpenKey对应的转换为第 一 OpenID和第一 OpenKey, 由此增加第三方授权登录的安全性。
此外, 在本实施例中, 当第三方应用收到开放平台带来的第一 OpenID 和第一 OpenKey后, 根据第一 OpenID和第一 OpenKey进行合法性认证。 其具体认证过程包括以下两种情形:
第一种情形为: 第三方应用在本地进行合法性认证, 接收本地服务器 对第一 OpenID和第一 OpenKey的合法性认证。
第二种情形为: 第三方应用接收开放平台对第一 OpenID 和第一 OpenKey的合法性认证。
对于上述第二种情形, 其认证过程具体为: 第三方应用向开放平台发 送验证请求, 并在该验证请求中携带第一 OpenID和第一 OpenKey; 之后, 由开放平台对第三方应用发来的验证请求中的第一 OpenID 和第一 OpenKey进行合法性验证, 当验证成功后, 第三方应用授权登录成功, 第 三方应用下发登录态, 允许用户终端访问第三方应用提供的资源, 并允许 用户终端享受该第三方应用提供的服务。
在第三方应用接收开放平台对第一 OpenID和第一 OpenKey的合法性 认证的过程中, 若第三方应用需要获取用户的授权资料, 则第三方应用通 过本地服务器携带第一 OpenID和第一 OpenKey到开放平台的后台服务器 获取用户授权资料, 当开放平台对第一 OpenID和第一 OpenKey的合法性 认证成功后, 开放平台向第三方应用返回用户授权资料。
下面以具体实例对本实施例开放平台的两种授权登录流程进行详细说 明。
第一实例 (对应开放平台具有登录态的场景):
如图 6所示, 用户终端采用 openID登录, 其具体流程如下:
1、 用户终端向开放平台发送应用登录指令;
2、 开放平台返回授权页面, 引导用户终端同意授权;
3、 用户终端同意授权;
4、 用户终端授权连接成功后, 开放平台根据开放平台登录回跳协议, 打开第三方应用的登录成功页面, 并带上第一 OpenID和第一 OpenKey;
5、 第三方应用通过本地服务器带上第一 OpenID和第一 OpenKey到开 放平台的后台服务器获取用户授权资料。 如果第三方应用不需使用用户授 权资料, 则可以跳过此步驟和第 6步驟, 直接进入第 7步驟;
6、 开放平台验证第一 OpenID和第一 OpenKey合法后, 返回用户授权 的资料给第三方应用;
7、第三方应用下发登录态,允许用户终端访问第三方网站提供的资源, 并享受网站提供的服务。
第二实例 (对应开放平台无登录态的场景):
如图 7所示, 用户终端可选择 OpenID或业务帐号登录, 其具体流程如 下:
1、 用户登录第三方应用, 并在第三方应用进行即时通讯登录;
2、 第三方应用调用开放平台提供的前台 js API, 打开开放平台授权页 面;
3、 开放平台引导用户采用即时通讯帐号和密码登录, 并引导用户终端 同意对第三方应用的授权;
4、 用户终端同意授权;
5、 用户终端授权连接成功后, 开放平台根据开放平台登录回跳协议, 通知第三方应用用户授权是否成功, 并带上第一 OpenID和第一 OpenKey;
6、 第三方应用根据开放平台登录回跳协议到开放平台获取用户授权资 料;
7、 开放平台验证第一 OpenID和第一 OpenKey合法后, 返回用户授权 资料给第三方应用;
8、第三方应用下发登录态,允许用户终端访问第三方网站提供的资源, 并享受网站提供的服务。
通过本实施例技术方案, 用户终端只需使用一个帐号, 通过开放平台 的授权即可登录授权后的网站(第三方应用), 实现一个帐号登录多个网站 的目的, 从而为用户提供方便, 提高用户体验。
基于上述登录方法, 本发明还提供一种如图 2所示的开放平台标识方 法, 包括:
步驟 S201 ,开放平台在登录该开放平台的用户终端启动第三方应用时, 获取根据第三方应用的 AppID及用户终端的平台登录账号生成的开放平台 账号; 用户在 PC机、 手机或 IPhone等移动终端通过平台登录账号登录开放平台, 平台登录账号作为用户登录开放平台的标识, 当用户登录开放平台后, 在 开放平台上可以根据实际需要点击运行在开放平台上的第三方应用, 以获 取相应的服务或资源。
为了标识开放平台, 本实施例设置了第三方应用与用户终端相关联的 参数开放平台账号(以下以 QplusID表示), 该参数 QPlusID由开放平台根 据用户终端的平台登录账号以及第三方应用的 AppID (应用标识)生成。 每个用户终端在开放平台上均具有平台登录账号, 同时, 每个开放平 台上的第三方应用均具有对应的 AppID, 开放平台根据用户终端的平台登 录账号以及第三方应用的 AppID生成的 QPlusID, 作为开放平台的标识, 以便在第三方应用需要通过开放平台进行消息提醒时,可以根据该 QPlusID 将消息投递到相应的开放平台。
其中, 开放平台根据用户终端的平台登录账号以及第三方应用的 AppID生成 QplusID可以采用预定的算法生成,比如通过现有的 TEA( Tiny Encryption Algorithm, 分组力口密算法)、 DES ( Data Encryption Standard, 数 据力口密标准 )及 IDEA ( International Data Encryption Algorithm, 国际数据 加密算法)等对称加密算法, 将用户终端的平台登录账号以及第三方应用 的 AppID 串接在一起, 生成 QplusID, 上述对称加密算法属现有的成熟方 案, 在此不作详述。
开放平台根据用户终端的平台登录账号以及第三方应用的 AppID生成 的 QPlusID可以预先生成保存在本地緩存中, 也可以临时生成。
在用户终端登录开放平台并启动第三方应用后, 如果开放平台的緩存 中有相对应的 QPlusID, 开放平台则直接获取对应的 QPlusID, 如果緩存中 没有, 开放平台则到其后台服务器启动拉取, 开放平台的后台服务器根据 用户终端的平台登录帐号和第三方应用的 AppID等信息生成 QPlusID。
步驟 S202, 将开放平台账号传递给第三方应用;
当开放平台获取到第三方应用与用户终端相关联的 QPlusID后, 开放 平台通知第三方应用获取该 QPlusID,第三方应用通过前端获取到开放平台 传递过来的 QPlusID后,登录第三方应用的后台服务器,并将获取的 QPlusID 传递给第三方应用的后台服务器保存, 第三方应用的后台服务器同时保存 用户终端在第三方应用上的登录账号 (即本实施例所称第三方登录账号) 与 QPlusID的对应关系。 以便第三方应用在需要开放平台向用户终端发送 提醒消息时, 将该 QPlusID提供给开放平台。
步驟 S203 , 接收第三方应用发送的通知指令, 并根据通知指令携带的 开放平台账号, 为第三方应用向用户终端发送对应通知的提醒消息。
在某个时刻, 当第三方应用的后台服务器有消息需要向第三方应用前 端通知消息时, 第三方应用前端可以处于登录状态, 也可以处于离线状态, 第三方应用的后台服务器从本地保存的列表中查出用户终端的第三方登录 账号对应的 QPlusID, 并向开放平台的提醒中心的接口请求时指定相应的 QPlusID , 开放平台的提醒中心向开放平台的后台服务器询问用户终端的平 台登录帐号和第三方应用的 AppID, 开放平台的提醒中心由此获知提醒消 息的发送目的地, 并校验第三方应用的 AppID是否正确, 以防止跨应用的 恶意访问或干扰。
在具体实施过程中, 如图 3 所示, 作为开放平台进行消息提醒的一种 实施方式, 上述步驟 S203包括:
步驟 S2031 ,开放平台根据通知指令携带的开放平台账号,从本地查询 通知指令携带的开放平台账号对应的用户终端的平台登录账号;
开放平台根据第三方应用提供的 QPlusID,从本地查询第三方应用提供 的 QPlusID对应的用户终端的平台登录账号。
步驟 S2032,根据对应的用户终端的平台登录账号向对应的用户终端发 送对应通知指令的提醒消息。
如图 4所示, 作为开放平台进行消息提醒的另一种实施方式, 上述步 驟 S203包括:
步驟 S2033 ,开放平台根据通知指令携带的开放平台账号,从本地查询 通知指令携带的开放平台账号对应的用户终端的平台登录账号以及对应的 第三方应用的 AppID; 开放平台根据第三方应用提供的 QPlusID,从本地查询第三方应用提供 的 QPlusID 对应的用户终端的平台登录账号以及对应的第三方应用的 AppID0
步驟 S2034 , 对对应的第三方应用的 AppID进行校验;
步驟 S2035, 当校验通过后,根据对应的用户终端的平台登录账号向对 应的用户终端发送对应通知指令的提醒消息。
本实施例通过在用户终端登录开放平台后, 若用户终端启动第三方应 用, 开放平台将根据第三方应用的 AppID及用户终端的平台登录账号生成 的开放平台账号传递给第三方应用, 当第三方应用需要向用户发送通知时, 开放平台根据第三方应用指定的开放平台账号, 为第三方应用向用户发送 对应的提醒消息, 解决了对第三方应用的提醒和 push问题, 同时防止跨应 用产生的干扰问题。
如图 8所示, 本发明第一实施例提出一种开放平台, 包括: 引导模块 401、 发送模块 402、 平台标识模块 403 , 其中:
引导模块 401 , 用于进入页面接收用户终端对第三方应用的授权指令; 发送模块 402, 用于当用户终端授权连接成功后,根据预定的开放平台 登录回跳协议, 将用户终端的第一 OpenID和第一 OpenKey传递给第三方 应用; 由第三方应用根据第一 OpenID和第一 OpenKey进行基于用户终端 的授权登录;
平台标识模块 403 ,用于在登录所述开放平台的用户终端启动第三方应 用时, 以开放平台账号作为开放平台的标识向用户终端发送提醒消息。
具体地, 在本实施例中, 开放平台进入的页面为授权页面, 开放平台 进入授权页面的方式可以是: 开放平台根据用户终端的应用登录指令进入 授权页面, 该应用登录指令可以为语音指令, 也可以是开放平台为用户终 端进入第三方应用设置的控件等,比如用户可以点击客户端的 aap应用按钮 进入授权页面; 或者, 开放平台通过用户终端登录第三方应用 (比如用户 通过点击第三方应用上的登录按钮进入第三方应用), 并由第三方应用调用 开放平台相应的接口进入授权页面, 该接口可以为 js APL
开放平台进入授权页面后, 通过引导模块 401 引导用户同意对第三方 应用的授权。
当用户终端同意授权且用户终端授权连接成功后, 开放平台根据预先 设定的开放平台登录回跳协议, 打开第三方应用的登录成功页面, 通知第 三方应用, 用户终端同意授权, 同时, 开放平台通过发送模块 402将第一 OpenID和第一 OpenKey发送至第三方应用。
第三方应用收到开放平台传递过来的第一 OpenID和第一 OpenKey后, 进行授权登录, 当授权登录成功后, 第三方应用下发登录态, 允许用户访 问第三方应用提供的资源, 并允许用户享受该第三方应用提供的服务。
如图 9所示, 本发明第二实施例提出一种开放平台, 在上述第一实施 例的基础上, 还包括: 生成转换模块 4012以及验证模块 404, 其中:
生成转换模块 4012, 连接在引导模块 401与发送模块 402之间, 用于 根据用户终端的登录账号生成初始 OpenID和初始 OpenKey;并根据预定的 映射关系, 将所述初始 OpenID和初始 OpenKey对应的转换为第一 OpenID 和第一 OpenKey
验证模块 404 与发送模块 402 连接, 用于根据第一 OpenID 和第一 OpenKey对第三方应用进行合法性验证, 当验证成功后, 第三方应用授权 登录成功。
进一步的, 验证模块 404还用于接收第三方应用发送的验证请求, 该 验证请求中携带有第一 OpenID和第一 OpenKey;以及对验证请求中的第一 OpenID和第一 OpenKey进行合法性验证, 以及当验证成功后, 向第三方应 用返回用户授权资料。 本实施例与上述第一实施例的区别在于, 在本实施例中, 开放平台传 递给第三方应用的第一 OpenID和第一 OpenKey是由开放平台获取的初始 OpenID和初始 OpenKey经过预设的映射关系转换而来。
具体地, 开放平台在用户终端登录, 并通过引导模块 401 引导用户终 端同意对第三方应用的授权后, 由生成转换模块 4012根据用户终端的登录 账号生成初始 OpenID和初始 OpenKey; 生成转换模块 4012再根据预定的 映射关系,将初始 OpenID和初始 OpenKey对应的转换为第一 OpenID和第 一 OpenKey, 由此增加第三方授权登录的安全性。
此外, 在本实施例中, 当第三方应用收到开放平台带来的第一 OpenID 和第一 OpenKey后, 根据第一 OpenID和第一 OpenKey进行合法性认证。 其具体认证过程包括以下两种情形:
第一种情形为: 第三方应用在本地进行合法性认证, 接收本地服务器 对第一 OpenID和第一 OpenKey的合法性认证。
第二种情形为: 第三方应用接收开放平台对第一 OpenID 和第一 OpenKey的合法性认证, 具体通过开放平台的验证模块 404对第一 OpenID 和第一 OpenKey进行合法性认证。
对于上述第二种情形, 其认证过程具体为: 第三方应用向开放平台发 送验证请求, 并在该验证请求中携带第一 OpenID和第一 OpenKey; 之后, 由开放平台对第三方应用发来的验证请求中的第一 OpenID 和第一 OpenKey进行合法性验证, 当验证成功后, 第三方应用授权登录成功, 第 三方应用下发登录态, 允许用户终端访问第三方应用提供的资源, 并允许 用户享受该第三方应用提供的服务。
在第三方应用接收开放平台对第一 OpenID和第一 OpenKey的合法性 认证的过程中, 若第三方应用需要获取用户的授权资料, 则第三方应用通 过本地服务器携带第一 0 penID和第一 OpenKey到开放平台的后台服务器 获取用户授权资料, 当开放平台对第一 OpenID和第一 OpenKey的合法性 认证成功后, 开放平台向第三方应用返回用户授权资料。
所述平台标识模块 403 , 如图 10所示, 包括: 获取模块 4031、 发送模 块 4032以及提醒模块 4033 , 其中:
获取模块 4031 , 用于在登录开放平台的用户终端启动第三方应用时, 获取根据第三方应用的 AppID及用户终端的平台登录账号生成的开放平台 账号;
发送模块 4032, 用于将开放平台账号传递给所述第三方应用; 提醒模块 4033 , 用于接收第三方应用发送的通知指令, 并根据通知指 令携带的开放平台账号, 为第三方应用向所述用户终端发送对应通知的提 醒消息。 用户在 PC机、 手机或 IPhone等移动终端通过平台登录账号登录开放平台, 平台登录账号作为用户登录开放平台的标识, 当用户登录开放平台后, 在 开放平台上可以根据实际需要点击运行在开放平台上的第三方应用, 以获 取相应的服务或资源。
为了标识开放平台, 本实施例设置了第三方应用与用户终端相关联的 参数开放平台账号(以下以 QPlusID表示), 该参数 QPlusID由开放平台根 据用户终端的平台登录账号以及第三方应用的 AppID生成。
每个用户终端在开放平台上均具有平台登录账号, 同时, 每个开放平 台上的第三方应用均具有对应的 AppID, 开放平台根据用户终端的平台登 录账号以及第三方应用的 AppID生成的 QPlusID, 作为开放平台的标识, 以便在第三方应用需要通过开放平台进行消息提醒时,可以根据该 QPlusID 将消息投递到相应的开放平台。
开放平台根据用户终端的平台登录账号以及第三方应用的 AppID生成 的 QPlusID可以预先生成保存在本地緩存中, 也可以临时生成。 在用户终端登录开放平台并启动第三方应用后, 如果开放平台的緩存 中有相对应的 QPlusID, 开放平台则通过获取模块 4031 直接获取对应的 QPlusID, 如果緩存中没有, 开放平台则通过获取模块 4031 到其后台服务 器启动拉取, 开放平台的后台服务器根据用户终端的平台登录帐号和第三 方应用的 AppID等信息生成 QPlusID。
当开放平台获取到第三方应用与用户终端相关联的 QPlusID后, 开放 平台通知第三方应用获取该 QPlusID, 并通过发送模块 4032将 QPlusID传 递给第三方应用;第三方应用通过前端获取到开放平台传递过来的 QPlusID 后, 登录第三方应用的后台服务器, 并将获取的 QPlusID传递给第三方应 用的后台服务器保存, 第三方应用的后台服务器同时保存用户终端在第三 方应用上的登录账号 (即本实施例所称第三方登录账号) 与 QPlusID的对 应关系。 以便第三方应用在需要开放平台向用户终端发送提醒消息时, 将 该 QPlusID提供给开放平台。
其中, 开放平台根据用户终端的平台登录账号以及第三方应用的 AppID生成 QplusID可以采用预定的算法生成,比如通过现有的 TEA( Tiny Encryption Algorithm, 分组力口密算法)、 DES ( Data Encryption Standard, 数 据力口密标准 )及 IDEA ( International Data Encryption Algorithm, 国际数据 加密算法)等对称加密算法, 将用户终端的平台登录账号以及第三方应用 的 AppID 串接在一起, 生成 QplusID, 上述对称加密算法属现有的成熟方 案, 在此不作详述。
在某个时刻, 当第三方应用的后台服务器有消息需要向第三方应用前 端通知消息时, 第三方应用前端可以处于登录状态, 也可以处于离线状态, 第三方应用的后台服务器从本地保存的列表中查出用户终端的第三方登录 账号对应的 QPlusID, 并向开放平台的提醒中心的接口请求时指定相应的 QPlusID, 开放平台的提醒模块 4033通过提醒中心向开放平台的后台服务 器询问用户终端的平台登录帐号和第三方应用的 AppID, 开放平台的提醒 中心由此获知提醒消息的发送目的地, 并校验第三方应用的 AppID是否正 确, 以防止跨应用的恶意访问或干扰。
在具体实施例过程中, 如图 11所示, 作为提醒模块 4033进行消息提 醒的一种实施方式, 上述提醒模块 4033包括: 查询单元 40331以及发送单 元 40332, 其中:
查询单元 40331 , 用于根据通知指令携带的开放平台账号,从本地查询 通知指令携带的开放平台账号对应的用户终端的平台登录账号;
发送单元 40332,用于根据所述对应的用户终端的平台登录账号向对应 的用户终端发送对应所述通知指令的提醒消息。
如图 12所示, 作为提醒模块 4033进行消息提醒的另一种实施方式, 上述提醒模块 4033 包括: 上述查询单元 40331、 上述发送单元 40332, 以 及校验单元 40333 , 其中:
在本实施例中上述查询单元 40331 用于根据通知指令携带的开放平台 账号, 从本地查询通知指令携带的开放平台账号对应的用户终端的平台登 录账号以及对应的第三方应用的 AppID;
校验单元 40333 , 用于对对应的第三方应用的 AppID进行校验; 发送单元 40332用于当校验通过后, 根据对应的用户终端的平台登录 账号向对应的用户终端发送对应通知指令的提醒消息。
本发明还提供一种开放平台, 该开放平台包括平台标识模块 403 , 所述 平台标识模块 403 , 如图 10所示, 包括: 获取模块 4031、 发送模块 4032 以及提醒模块 4033 , 其中:
获取模块 4031 , 用于在登录开放平台的用户终端启动第三方应用时, 获取根据第三方应用的 AppID及用户终端的平台登录账号生成的开放平台 账号;
发送模块 4032, 用于将开放平台账号传递给所述第三方应用; 提醒模块 4033 , 用于接收第三方应用发送的通知指令, 并根据通知指 令携带的开放平台账号, 为第三方应用向所述用户终端发送对应通知的提 醒消息。 用户在 PC机、 手机或 IPhone等移动终端通过平台登录账号登录开放平台, 平台登录账号作为用户登录开放平台的标识, 当用户登录开放平台后, 在 开放平台上可以根据实际需要点击运行在开放平台上的第三方应用, 以获 取相应的服务或资源。
为了标识开放平台, 本实施例设置了第三方应用与用户终端相关联的 参数开放平台账号(以下以 QPlusID表示), 该参数 QPlusID由开放平台根 据用户终端的平台登录账号以及第三方应用的 AppID生成。
每个用户终端在开放平台上均具有平台登录账号, 同时, 每个开放平 台上的第三方应用均具有对应的 AppID, 开放平台根据用户终端的平台登 录账号以及第三方应用的 AppID生成的 QPlusID, 作为开放平台的标识, 以便在第三方应用需要通过开放平台进行消息提醒时,可以根据该 QPlusID 将消息投递到相应的开放平台。
开放平台根据用户终端的平台登录账号以及第三方应用的 AppID生成 的 QPlusID可以预先生成保存在本地緩存中, 也可以临时生成。
在用户终端登录开放平台并启动第三方应用后, 如果开放平台的緩存 中有相对应的 QPlusID, 开放平台则通过获取模块 4031 直接获取对应的 QPlusID, 如果緩存中没有, 开放平台则通过获取模块 4031 到其后台服务 器启动拉取, 开放平台的后台服务器根据用户终端的平台登录帐号和第三 方应用的 AppID等信息生成 QPlusID。 当开放平台获取到第三方应用与用户终端相关联的 QPlusID后, 开放 平台通知第三方应用获取该 QPlusID , 并通过发送模块 4032将 QPlusID传 递给第三方应用;第三方应用通过前端获取到开放平台传递过来的 QPlusID 后, 登录第三方应用的后台服务器, 并将获取的 QPlusID传递给第三方应 用的后台服务器保存, 第三方应用的后台服务器同时保存用户终端在第三 方应用上的登录账号 (即本实施例所称第三方登录账号) 与 QPlusID的对 应关系。 以便第三方应用在需要开放平台向用户终端发送提醒消息时, 将 该 QPlusID提供给开放平台。
其中, 开放平台根据用户终端的平台登录账号以及第三方应用的 AppID生成 QplusID可以采用预定的算法生成,比如通过现有的 TEA( Tiny Encryption Algorithm, 分组力口密算法)、 DES ( Data Encryption Standard, 数 据力口密标准 )及 IDEA ( International Data Encryption Algorithm, 国际数据 加密算法)等对称加密算法, 将用户终端的平台登录账号以及第三方应用 的 AppID 串接在一起, 生成 QplusID, 上述对称加密算法属现有的成熟方 案, 在此不作详述。
在某个时刻, 当第三方应用的后台服务器有消息需要向第三方应用前 端通知消息时, 第三方应用前端可以处于登录状态, 也可以处于离线状态, 第三方应用的后台服务器从本地保存的列表中查出用户终端的第三方登录 账号对应的 QPlusID, 并向开放平台的提醒中心的接口请求时指定相应的 QPlusID, 开放平台的提醒模块 4033 通过提醒中心向开放平台的后台服务 器询问用户终端的平台登录帐号和第三方应用的 AppID, 开放平台的提醒 中心由此获知提醒消息的发送目的地, 并校验第三方应用的 AppID是否正 确, 以防止跨应用的恶意访问或干扰。
在具体实施例过程中, 如图 11所示, 作为提醒模块 4033进行消息提 醒的一种实施方式, 上述提醒模块 4033包括: 查询单元 40331以及发送单 元 40332, 其中:
查询单元 40331 , 用于根据通知指令携带的开放平台账号,从本地查询 通知指令携带的开放平台账号对应的用户终端的平台登录账号;
发送单元 40332,用于根据所述对应的用户终端的平台登录账号向对应 的用户终端发送对应所述通知指令的提醒消息。
如图 12所示, 作为提醒模块 4033进行消息提醒的另一种实施方式, 上述提醒模块 4033 包括: 上述查询单元 40331、 上述发送单元 40332, 以 及校验单元 40333 , 其中:
在本实施例中上述查询单元 40331 用于根据通知指令携带的开放平台 账号, 从本地查询通知指令携带的开放平台账号对应的用户终端的平台登 录账号以及对应的第三方应用的 AppID;
校验单元 40333 , 用于对对应的第三方应用的 AppID进行校验; 发送单元 40332用于当校验通过后, 根据对应的用户终端的平台登录 账号向对应的用户终端发送对应通知指令的提醒消息。
如图 13所示, 本发明较佳实施例提出一种登录系统, 包括: 用户终端 501、 开放平台 502及第三方应用 503 , 其中:
用户终端 501 , 用于链接开放平台 502, 向开放平台 502发送对第三方 应用 503的授权指令; 以及当第三方应用 503授权登录成功后, 接收第三 方应用 503提供的访问资源及服务;
开放平台 502,用于进入页面接收用户终端对第三方应用 503的授权指 令; 当用户终端 501授权连接成功后, 根据预定的开放平台 502登录回跳 协议,将用户终端的第一 OpenID和第一 OpenKey带给第三方应用 503 , 并 在登录所述开放平台 502 的用户终端启动第三方应用时, 以开放平台账号 作为开放平台 502的标识向用户终端 501发送提醒消息;
第三方应用 503 , 用于获取开放平台 502发送的第一 OpenID和第一 OpenKey;根据第一 OpenID和第一 OpenKey下发登录态,允许用户终端访 问第三方应用 503资源, 并为用户终端提供站点服务。
进一步的, 开放平台 502还用于根据第一 OpenID和第一 OpenKey对 第三方应用 503进行合法性验证, 当验证成功后, 第三方应用 503授权登 录成功;
第三方应用 503还用于根据第一 OpenID和第一 OpenKey接收本地服 务器的合法性验证;或者,第三方应用 503根据第一 OpenID和第一 OpenKey 接收开放平台 502的合法性验证。
当第三方应用 503根据第一 OpenID和第一 OpenKey接收开放平台 502 的合法性验证时, 第三方应用 503还用于向开放平台 502发送获取用户授 权资料的验证请求,验证请求中携带有第一 OpenID和第一 OpenKey;接收 开放平台 502对第一 OpenID和第一 OpenKey进行合法验证成功后返回的 用户授权资料。
在本实施例中, 开放平台 502进入授权页面的方式可以是: 开放平台 502根据用户根据用户终端 501的应用登录指令进入授权页面; 或者, 开放 平台 502通过用户终端 501登录第三方应用 503 ,并由第三方应用 503调用 开放平台 502 的 js API ( javascript Application Programming Interface , javascript应用程序编程接口)进入授权页面。 对于后一种情形, 第三方应 用 503接收用户终端 501 的登录指令, 根据该登录指令调用开放平台 502 的相应接口比如 js API, 打开开放平台 502的授权页面。
开放平台 502 进入授权页面后, 引导用户终端同意对第三方应用 503 的授权。
当用户终端 501 同意授权且用户终端授权连接成功后, 开放平台 502 根据预先设定的开放平台 502登录回跳协议, 打开第三方应用 503的登录 成功页面, 通知第三方应用 503 , 用户终端 501同意授权, 同时, 开放平台 502带上第一 OpenlD和第一 OpenKey至第三方应用 503。
上述开放平台 502 传递给第三方应用 503 的第一 OpenlD 和第一 OpenKey 可以是由开放平台 502 在引导用户终端 501 授权后获取的初始 OpenlD和初始 OpenKey, 也可以是由开放平台 502获取的初始 OpenlD和 初始 OpenKey经过预设的映射关系转换而来。
具体地, 开放平台 502在用户终端 501登录, 并引导用户终端 501 同 意对第三方应用 503 的授权后, 根据用户终端 501 的登录账号生成初始 OpenlD和初始 OpenKey; 并根据预定的映射关系, 将初始 OpenlD和初始 OpenKey对应的转换为第一 OpenlD和第一 OpenKey,由此增加第三方授权 登录的安全性。
当第三方应用 503 收到开放平台 502 带来的第一 OpenlD 和第一 OpenKey后, 根据第一 OpenlD和第一 OpenKey进行合法性认证。 其具体 认证过程包括以下两种情形:
第一种情形为: 第三方应用 503在本地进行合法性认证, 接收本地服 务器对 OpenlD和 OpenKey的合法性认证。
第二种情形为:第三方应用 503接收开放平台 502对第一 OpenlD和第 一 OpenKey的合法性认证。
对于上述第二种情形, 其认证过程具体为: 第三方应用 503 向开放平 台 502发送验证请求 ,并在该验证请求中携带第一 OpenlD和第一 OpenKey; 之后, 由开放平台 502对第三方应用 503发来的验证请求中的第一 OpenlD 和第一 OpenKey进行合法性验证, 当验证成功后, 第三方应用 503授权登 录成功, 第三方应用 503下发登录态, 允许用户终端 501访问第三方应用 503提供的资源, 并允许用户终端 501享受该第三方应用 503提供的服务。
在第三方应用 503接收开放平台 502对第一 OpenlD和第一 OpenKey 的合法性认证的过程中, 若第三方应用 503 需要获取用户的授权资料, 则 第三方应用 503通过本地服务器携带第一 OpenID和第一 OpenKey到开放 平台 502的后台服务器获取用户授权资料, 当开放平台 502对第一 OpenID 和第一 OpenKey的合法性认证成功后, 开放平台 502向第三方应用 503返 回用户授权资料。
在登录开放平台 502的用户终端启动第三方应用时, 开放平台 502获 取根据第三方应用的 AppID及用户终端的平台登录账号生成的开放平台账 号, 将所述开放平台账号传递给第三方应用 503 ,接收第三方应用 503发送 的通知指令, 并根据通知指令携带的开放平台账号, 为第三方应用 503 向 用户终端 501发送对应通知的提醒消息;
相应的, 所述第三方应用 503用于当用户终端登录第三方应用 503时, 接收开放平台 502发送的开放平台账号, 并记录用户终端 501 的第三方登 录账号与 QPlusID的对应关系; 当第三方应用 503需要向用户终端 501发 送通知时, 根据用户终端 501 的第三方登录账号获取对应的开放平台账号 并提供给开放平台 502。
本发明实施例登录方法、 开发平台及系统, 通过开放平台的授权页面 引导用户终端同意对第三方应用的授权; 当用户终端授权连接成功后, 开 发平台根据开放平台登录回跳协议, 将用户终端的第一 OpenID 和第一 OpenKey带给第三方应用; 然后根据第一 OpenID和第一 OpenKey对第三 方应用进行合法性验证, 当验证成功后, 第三方应用授权登录成功, 由此 实现多种形态的登录, 用户终端不需要注册和管理多个网站的登录账号, 只需通过一个开放平台的注册账号, 经过授权即可访问多个网站, 为用户 提供方便; 并且通过在用户终端登录开放平台后, 若用户终端启动第三方 应用, 开放平台将根据第三方应用的 AppID及用户终端的平台登录账号生 成的开放平台账号传递给第三方应用, 当第三方应用需要向用户发送通知 时, 开放平台根据第三方应用指定的开放平台账号, 为第三方应用向用户 发送对应的提醒消息, 解决了对第三方应用的提醒和 push问题, 同时防止 跨应用产生的干扰问题。
如图 14所示, 本发明一实施例提出一种开放平台标识系统, 包括: 开 放平台 701及第三方应用 702, 其中:
开放平台 701用于在登录该开放平台 701 的用户终端启动第三方应用 702时, 获取根据第三方应用 702的 AppID及用户终端的平台登录账号生 成的开放平台账号; 将获取的开放平台账号传递给第三方应用 702; 当第三 方应用 702需要向用户终端发送通知时,开放平台 701接收第三方应用 702 发送的通知指令, 并根据通知指令携带的开放平台账号, 为第三方应用 702 向用户终端发送对应通知指令的提醒消息;
第三方应用 702用于当用户终端登录第三方应用 702时, 接收开放平 台 701发送的开放平台账号,并记录用户终端的第三方登录账号与 QPlusID 的对应关系; 当第三方应用 702 需要向用户终端发送通知时, 根据用户终 端的第三方登录账号获取对应的开放平台账号并提供给开放平台 701。
本实施例中开放平台 701可以为上述实施例中的开放平台 502,第三方 应用 702为上述实施例中的第三方应用 503 ,其中通过开放平台账号对开放 平台进行标识实现对第三方应用的消息提醒的基本原理, 请参照上述实施 例, 在此不再赘述。
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围 , 凡是利用本发明说明书及附图内容所作的等效结构或流程变换, 或直接或 间接运用在其它相关的技术领域, 均同理包括在本发明的专利保护范围内。

Claims

权利要求书
1、 一种登录方法, 其特征在于, 该方法包括:
开放平台进入页面接收用户终端对第三方应用的授权指令;
当所述用户终端授权连接成功后, 根据预定的开放平台登录回跳协议, 将所述用户终端的第一登录标识 OpenID和第一登录密钥 OpenKey传递给 所述第三方应用;由所述第三方应用根据所述第一 OpenID和第一 OpenKey 进行基于所述用户终端的授权登录;
在登录所述开放平台的用户终端启动第三方应用时, 以开放平台账号 作为开放平台的标识向用户终端发送提醒消息。
2、 根据权利要求 1所述的登录方法, 其特征在于, 所述将用户的第一 OpenID和第一 OpenKey传递给所述第三方应用的步驟之后还包括:
根据所述第一 OpenID和第一 OpenKey对所述第三方应用进行合法性 验证, 当验证成功后, 所述第三方应用授权登录成功。
3、根据权利要求 2所述的登录方法,其特征在于,所述根据第一 OpenID 和第一 OpenKey对所述第三方应用进行合法性验证的步驟包括:
接收所述第三方应用发送的验证请求, 所述验证请求中携带有所述第 一 OpenID和第一 OpenKey;
对所述验证请求中的第一 OpenID和第一 OpenKey进行合法性验证。
4、 根据权利要求 3所述的登录方法, 其特征在于, 该方法还包括: 当验证成功后, 所述开放平台向所述第三方应用返回用户授权资料。
5、 根据权利要求 3所述的登录方法, 其特征在于, 所述根据预定的开 放平台登录回跳协议, 将用户终端的第一 OpenID和第一 OpenKey传递给 所述第三方应用的步驟之前, 该方法还包括:
所述开放平台根据所述用户终端的登录账号生成初始 OpenID 和初始 OpenKey; 根据预定的映射关系, 将所述初始 OpenID和初始 OpenKey对应的转 换为所述第一 OpenID和第一 OpenKey。
6、 根据权利要求 1至 5中任一项所述的登录方法, 其特征在于, 所述 开放平台进入页面的方式包括:
所述开放平台根据用户终端的应用登录指令进入页面; 或者, 所述开放平台通过用户终端登录所述第三方应用, 并由所述第三方应 用调用开放平台的接口进入页面。
7、 根据权利要求 1所述的登录方法, 其特征在于, 所述在登录所述开 放平台的用户终端启动第三方应用时, 以开放平台账号作为开放平台的标 识向用户终端发送提醒消息, 包括:
开放平台在登录该开放平台的用户终端启动第三方应用时, 获取根据 所述第三方应用的应用标识 AppID及所述用户终端的平台登录账号生成的 开放平台账号; 将所述开放平台账号传递给所述第三方应用; 接收所述第 三方应用发送的通知指令, 并根据所述通知指令携带的开放平台账号, 为 所述第三方应用向所述用户终端发送对应所述通知指令的提醒消息。
8、 一种开放平台, 其特征在于, 该开放平台包括: 引导模块、 发送模 块、 平台标识模块, 其中,
引导模块, 用于进入页面接收用户终端对第三方应用的授权指令; 发送模块, 用于当所述用户终端授权连接成功后, 根据开放平台登录 回跳协议, 将用户终端的第一 OpenID和第一 OpenKey传递给所述第三方 应用; 由所述第三方应用根据所述第一 OpenID和第一 OpenKey进行基于 所述用户终端的授权登录;
平台标识模块, 用于在登录所述开放平台的用户终端启动第三方应用 时, 以开放平台账号作为开放平台的标识向用户终端发送提醒消息。
9、根据权利要求 8所述的开放平台,其特征在于,该开放平台还包括: 验证模块, 用于根据所述第一 OpenlD和第一 OpenKey对所述第三方 应用进行合法性验证, 当验证成功后, 所述第三方应用授权登录成功。
10、 根据权利要求 9所述的开放平台, 其特征在于, 所述验证模块还 用于接收所述第三方应用发送的验证请求, 所述验证请求中携带有所述第 一 OpenlD 和第一 OpenKey; 对所述验证请求中的第一 OpenlD 和第一 OpenKey进行合法性险证。
11、 根据权利要求 10所述的开放平台, 其特征在于, 所述验证模块还 用于当验证成功后, 向所述第三方应用返回用户授权资料。
12、 根据权利要求 8至 11中任一项所述的开放平台, 其特征在于, 该 开放平台还包括:
生成转换模块,用于根据所述用户终端的登录账号生成初始 OpenlD和 初始 OpenKey;根据预定的映射关系,将所述初始 OpenlD和初始 OpenKey 对应的转换为所述第一 OpenlD和第一 OpenKey。
13、 根据权利要求 8所述的开放平台, 其特征在于, 所述平台标识模 块包括: 获取模块、 发送模块以及提醒模块, 其中:
获取模块, 用于在登录开放平台的用户终端启动第三方应用时, 获取 根据第三方应用的 AppID 及用户终端的平台登录账号生成的开放平台账 发送模块, 用于将开放平台账号传递给所述第三方应用;
提醒模块, 用于接收第三方应用发送的通知指令, 并根据通知指令携 带的开放平台账号, 为第三方应用向所述用户终端发送对应通知的提醒消
14、 一种登录系统, 其特征在于, 该系统包括: 用户终端、 开放平台 及第三方应用, 其中:
所述用户终端, 用于链接所述开放平台, 向所述开放平台发送对第三 方应用的授权指令; 以及当第三方应用授权登录成功后, 接收所述第三方 应用提供的访问资源及服务;
所述开放平台, 用于进入页面接收用户终端对第三方应用的授权指令; 当所述用户终端授权连接成功后, 根据预定的开放平台登录回跳协议, 将 用户终端的第一 OpenID和第一 OpenKey传递给所述第三方应用, 并在登 录所述开放平台的用户终端启动第三方应用时, 以开放平台账号作为开放 平台的标识向用户终端发送提醒消息;
所述第三方应用, 用于获取开放平台发送的第一 OpenID 和第一 OpenKey;根据所述第一 OpenID和第一 OpenKey下发登录态,允许所述用 户终端访问所述第三方应用资源, 并为所述用户终端提供站点服务。
15、 根据权利要求 14所述的系统, 其特征在于,
所述开放平台, 还用于根据所述第一 OpenID和第一 OpenKey对所述 第三方应用进行合法性验证, 当验证成功后, 所述第三方应用授权登录成 功;
所述第三方应用, 还用于根据所述第一 OpenID和第一 OpenKey接收 本地服务器的合法性验证; 或者, 所述第三方应用根据第一 OpenID和第一 OpenKey接收所述开放平台的合法性验证。
16、 根据权利要求 14所述的系统, 其特征在于,
所述第三方应用, 还用于向所述开放平台发送获取用户授权资料的验 证请求, 所述验证请求中携带有所述第一 OpenID和第一 OpenKey;接收所 述开放平台对所述第一 OpenID和第一 OpenKey进行合法验证成功后返回 的用户授权资料。
17、 根据权利要求 14、 15或 16所述的系统, 其特征在于,
所述第三方应用, 还用于接收客户端的应用登录指令, 根据所述应用 登录指令调用所述开放平台的接口, 打开所述开放平台的页面。
18、 根据权利要求 14所述的系统, 其特征在于, 所述开放平台, 具体 用于在登录该开放平台的用户终端启动第三方应用时, 获取根据第三方应 用的 AppID及用户终端的平台登录账号生成的开放平台账号, 将所述开放 平台账号传递给第三方应用, 接收第三方应用发送的通知指令, 并根据通 知指令携带的开放平台账号, 为第三方应用向用户终端发送对应通知的提 醒消息。
19、 一种开放平台标识方法, 其特征在于, 该方法包括:
开放平台在登录该开放平台的用户终端启动第三方应用时, 获取根据 所述第三方应用的应用标识 AppID及所述用户终端的平台登录账号生成的 开放平台账号;
将所述开放平台账号传递给所述第三方应用;
接收所述第三方应用发送的通知指令, 并根据所述通知指令携带的开 放平台账号, 为所述第三方应用向所述用户终端发送对应所述通知指令的 提醒消息。
20、 根据权利要求 19所述的方法, 其特征在于, 所述开放平台获取根 据所述第三方应用的 AppID及所述用户终端的平台登录账号生成的的开放 平台账号的步驟包括:
所述开放平台从緩存中获取所述开放平台账号; 或者,
所述开放平台根据所述用户终端的平台登录账号以及所述第三方应用 的 AppID以预定算法临时生成所述开放平台账号。
21、 根据权利要求 19或 20所述的方法, 其特征在于, 所述开放平台 根据所述通知指令携带的开放平台账号, 为所述第三方应用向所述用户终 端发送对应所述通知指令的提醒消息的步驟包括:
所述开放平台根据所述通知指令携带的开放平台账号, 从本地查询所 述通知指令携带的开放平台账号对应的用户终端的平台登录账号; 根据所述对应的用户终端的平台登录账号向对应的用户终端发送对应 所述通知指令的提醒消息。
22、 根据权利要求 19或 20所述的方法, 其特征在于, 所述开放平台 根据所述通知指令携带的开放平台账号, 为所述第三方应用向所述用户终 端发送对应所述通知指令的提醒消息的步驟包括:
所述开放平台根据所述通知指令携带的开放平台账号, 从本地查询所 述通知指令携带的开放平台账号对应的用户终端的平台登录账号以及对应 的第三方应用的 AppID;
对所述对应的第三方应用的 AppID进行校验;
当校验通过后, 根据所述对应的用户终端的平台登录账号向对应的用 户终端发送对应所述通知指令的提醒消息。
23、 一种开放平台, 其特征在于, 该开放平台包括平台标识模块, 所 述平台标识模块包括: 获取模块、 发送模块以及提醒模块, 其中,
获取模块, 用于在登录所述开放平台的用户终端启动第三方应用时, 获取根据所述第三方应用的 AppID及所述用户终端的平台登录账号生成的 开放平台账号;
发送模块, 用于将所述开放平台账号传递给所述第三方应用; 提醒模块, 用于接收所述第三方应用发送的通知指令, 并根据所述通 知指令携带的开放平台账号, 为所述第三方应用向所述用户终端发送对应 所述通知指令的提醒消息。
24、 根据权利要求 23所述的开放平台, 其特征在于, 所述获取模块还 用于从緩存中获取所述开放平台账号; 或者根据所述用户终端的平台登录 账号以及所述第三方应用的 AppID以预定算法临时生成所述所述开放平台 账号。
25、 根据权利要求 23或 24所述的开放平台, 其特征在于, 所述提醒 模块包括:
查询单元, 用于根据所述通知指令携带的开放平台账号, 从本地查询 所述通知指令携带的开放平台账号对应的用户终端的平台登录账号;
发送单元, 用于根据所述对应的用户终端的平台登录账号向对应的用 户终端发送对应所述通知指令的提醒消息。
26、 根据权利要求 25所述的开放平台, 其特征在于, 所述提醒模块还 包括: 校验单元, 其中:
所述查询单元, 还用于根据所述通知指令携带的开放平台账号, 从本 地查询所述通知指令携带的开放平台账号对应的用户终端的平台登录账号 以及对应的第三方应用的 AppID;
所述校验单元, 用于对所述对应的第三方应用的 AppID进行校验; 所述发送单元, 还用于当校验通过后, 根据所述对应的用户终端的平 台登录账号向对应的用户终端发送对应所述通知指令的提醒消息。
27、 一种开放平台标识系统, 其特征在于, 该系统包括: 开放平台及 第三方应用, 其中,
所述开放平台, 用于在登录该开放平台的用户终端启动第三方应用时, 获取根据所述第三方应用的 AppID及所述用户终端的平台登录账号生成的 开放平台账号; 将所述开放平台账号传递给所述第三方应用; 接收所述第 三方应用发送的通知指令, 并根据所述通知指令携带的开放平台账号, 为 所述第三方应用向所述用户终端发送对应所述通知指令的提醒消息;
所述第三方应用, 用于当所述用户终端登录所述第三方应用时, 接收 所述开放平台发送的开放平台账号, 并记录所述用户终端的第三方登录账 号与所述开放平台账号的对应关系; 当所述第三方应用需要向所述用户终 端发送通知时, 根据所述用户终端的第三方登录账号获取对应的开放平台 账号并提供给所述开放平台。 、 根据权利要求 27所述的系统, 其特征在于, 所述开放平台为权利 至 26中任一项所述的开放平台。
PCT/CN2012/085185 2011-11-23 2012-11-23 登录及开放平台标识方法、开放平台及系统 WO2013075661A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/098,085 US20140096205A1 (en) 2011-11-23 2013-12-05 Login method, open platform identification method, open platform and open platform system

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201110376343.4 2011-11-23
CN201110375863.3A CN102821084B (zh) 2011-11-23 2011-11-23 开放平台标识方法、开放平台及系统
CN201110376343.4A CN102821085B (zh) 2011-11-23 2011-11-23 第三方授权登录方法、开放平台及系统
CN201110375863.3 2011-11-23

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/098,085 Continuation US20140096205A1 (en) 2011-11-23 2013-12-05 Login method, open platform identification method, open platform and open platform system

Publications (1)

Publication Number Publication Date
WO2013075661A1 true WO2013075661A1 (zh) 2013-05-30

Family

ID=48469132

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/085185 WO2013075661A1 (zh) 2011-11-23 2012-11-23 登录及开放平台标识方法、开放平台及系统

Country Status (2)

Country Link
US (1) US20140096205A1 (zh)
WO (1) WO2013075661A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897757A (zh) * 2016-06-12 2016-08-24 上海携程商务有限公司 授权认证系统及授权认证方法
CN111522595A (zh) * 2014-11-14 2020-08-11 谷歌有限责任公司 短暂应用
CN112073297A (zh) * 2020-08-25 2020-12-11 刘高峰 一种为第三方应用提供社交应用服务的方法及服务端

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9246925B2 (en) * 2013-04-16 2016-01-26 Tencent Technology (Shenzhen) Company Limited Method and system for third-party service platform login
CN104253686B (zh) 2013-06-25 2017-12-29 华为技术有限公司 账号登录的方法、设备及系统
CN104144195B (zh) 2013-06-26 2016-07-13 腾讯科技(深圳)有限公司 一种微博主页展示媒体信息的方法、系统及装置
CN105099984B (zh) * 2014-04-16 2019-07-02 百度在线网络技术(北京)有限公司 一种app间账号互通的方法和装置
CN105791249A (zh) * 2014-12-26 2016-07-20 深圳云之家网络有限公司 一种第三方应用处理方法、装置以及系统
CN104732331B (zh) * 2015-02-13 2017-04-12 腾讯科技(深圳)有限公司 分组管理方法、装置和系统
CN108768957B (zh) * 2015-06-12 2021-10-15 华为技术有限公司 一种应用的用户信息管理的方法、设备及系统
CN105306733B (zh) * 2015-11-13 2018-11-09 深圳正品创想科技有限公司 基于手机app的第三方登录绑定手机号方法
CN106909811B (zh) * 2015-12-23 2020-07-03 腾讯科技(深圳)有限公司 用户标识处理的方法和装置
US10873602B2 (en) * 2017-09-25 2020-12-22 Facebook, Inc. Secondary communication channel for security notifications
CN109981611A (zh) * 2019-03-08 2019-07-05 北京顺丰同城科技有限公司 一种多平台账户的安全防御方法及装置
CN111835677B (zh) * 2019-04-17 2022-03-22 北京世纪好未来教育科技有限公司 一种用户信息的获取方法、装置及计算机存储介质
CN112714092B (zh) * 2019-10-24 2022-03-18 珠海格力电器股份有限公司 一种注册登录方法、设备和计算机可读存储介质
CN111259356B (zh) * 2020-02-17 2022-09-02 北京百度网讯科技有限公司 授权方法、辅助授权组件、管理服务器和计算机可读介质
CN111538965B (zh) * 2020-04-15 2021-10-12 支付宝(杭州)信息技术有限公司 一种应用程序的授权登录方法、装置及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946022A (zh) * 2006-10-31 2007-04-11 华为技术有限公司 转接第三方登陆的方法、系统及第三方网站、业务服务器
CN101127108A (zh) * 2006-08-15 2008-02-20 阿里巴巴公司 一种经一个计算机系统访问一个信息源的方法
CN101291223A (zh) * 2007-12-21 2008-10-22 任少华 由第三方提供身份认证服务的系统和方法
CN101350717A (zh) * 2007-07-18 2009-01-21 中国移动通信集团公司 一种通过即时通信软件登录第三方服务器的方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174193A1 (en) * 2006-01-20 2007-07-26 The Bank Of New York Company, Inc. System and method for providing single sign-on functionality
US8844013B2 (en) * 2011-10-04 2014-09-23 Salesforce.Com, Inc. Providing third party authentication in an on-demand service environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127108A (zh) * 2006-08-15 2008-02-20 阿里巴巴公司 一种经一个计算机系统访问一个信息源的方法
CN1946022A (zh) * 2006-10-31 2007-04-11 华为技术有限公司 转接第三方登陆的方法、系统及第三方网站、业务服务器
CN101350717A (zh) * 2007-07-18 2009-01-21 中国移动通信集团公司 一种通过即时通信软件登录第三方服务器的方法及系统
CN101291223A (zh) * 2007-12-21 2008-10-22 任少华 由第三方提供身份认证服务的系统和方法

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522595A (zh) * 2014-11-14 2020-08-11 谷歌有限责任公司 短暂应用
CN111522595B (zh) * 2014-11-14 2023-07-18 谷歌有限责任公司 短暂应用
CN105897757A (zh) * 2016-06-12 2016-08-24 上海携程商务有限公司 授权认证系统及授权认证方法
CN105897757B (zh) * 2016-06-12 2019-01-04 上海携程商务有限公司 授权认证系统及授权认证方法
CN112073297A (zh) * 2020-08-25 2020-12-11 刘高峰 一种为第三方应用提供社交应用服务的方法及服务端
CN112073297B (zh) * 2020-08-25 2022-05-13 刘高峰 一种为第三方应用提供社交应用服务的方法及服务端

Also Published As

Publication number Publication date
US20140096205A1 (en) 2014-04-03

Similar Documents

Publication Publication Date Title
WO2013075661A1 (zh) 登录及开放平台标识方法、开放平台及系统
US9038138B2 (en) Device token protocol for authorization and persistent authentication shared across applications
CN102821085B (zh) 第三方授权登录方法、开放平台及系统
US20170353442A1 (en) Proximity-based authentication
US8650622B2 (en) Methods and arrangements for authorizing and authentication interworking
JP5784827B2 (ja) 2つの通信デバイスを介した認証システム
RU2414086C2 (ru) Аутентификация приложения
WO2017028593A1 (zh) 网络接入设备接入无线网络接入点的方法、网络接入设备、应用程序服务器和非易失性计算机可读存储介质
EP3454504B1 (en) Service provider certificate management
US8769289B1 (en) Authentication of a user accessing a protected resource using multi-channel protocol
KR20180053701A (ko) 로컬 디바이스 인증
WO2018219056A1 (zh) 鉴权方法、装置、系统和存储介质
WO2012136083A1 (zh) 一种基于云平台访问第三方应用的系统及方法
WO2014183526A1 (zh) 一种身份识别的方法、装置和系统
WO2014131279A1 (zh) 一种双向授权系统、客户端及方法
JP7202473B2 (ja) マルチアプリコミュニケーションシステムにおける向上した多要素認証のための方法、システム、および装置
WO2017185450A1 (zh) 终端的认证方法及系统
WO2009097778A1 (zh) 一种安全接口调用方法、装置及系统
CN106161475B (zh) 用户鉴权的实现方法和装置
JP2016536678A (ja) ネットワーク管理セキュリティ認証方法、装置、システム及びコンピュータ記憶媒体
WO2018141219A1 (zh) 认证服务器、认证系统及方法
CN113765655A (zh) 访问控制方法、装置、设备及存储介质
CN109460647B (zh) 一种多设备安全登录的方法
KOSE et al. TrustedID: An Identity Management System based on OpenID Connect Protocol
CN116527341A (zh) 一种客户端调用后端接口鉴权授权安全方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12852066

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 07/10/2014)

122 Ep: pct application non-entry in european phase

Ref document number: 12852066

Country of ref document: EP

Kind code of ref document: A1