Nothing Special   »   [go: up one dir, main page]

CN108173846B - Login method and device - Google Patents

Login method and device Download PDF

Info

Publication number
CN108173846B
CN108173846B CN201711441733.9A CN201711441733A CN108173846B CN 108173846 B CN108173846 B CN 108173846B CN 201711441733 A CN201711441733 A CN 201711441733A CN 108173846 B CN108173846 B CN 108173846B
Authority
CN
China
Prior art keywords
target
platform
social platform
target application
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711441733.9A
Other languages
Chinese (zh)
Other versions
CN108173846A (en
Inventor
祁建斌
秦碧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711441733.9A priority Critical patent/CN108173846B/en
Publication of CN108173846A publication Critical patent/CN108173846A/en
Application granted granted Critical
Publication of CN108173846B publication Critical patent/CN108173846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

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

Abstract

The present disclosure provides a login method and a device, wherein the method includes: establishing an interface for a target application and a Software Development Kit (SDK) corresponding to a target social platform by a preset platform; logging in the target social platform through the target application using the interface; the preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process. According to the method and the device, the target application which runs in the client background in the installation and downloading process and logs in the target social platform, such as a microblog platform, is not required to be confirmed by a user, and the capability of logging in the third-party social platform through the target application is expanded.

Description

Login method and device
Technical Field
The present disclosure relates to the field of information interaction, and in particular, to a login method and device.
Background
In the related art, the SDK (Software Development Kit) corresponding to the microblog only supports the local App to log in.
However, with the increase of App types, a new App type cannot log in a microblog through an interface provided by the microblog SDK.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a login method and device.
According to a first aspect of the embodiments of the present disclosure, there is provided a login method, where the method is used for a client, and the method includes:
establishing an interface for a target application and a Software Development Kit (SDK) corresponding to a target social platform by a preset platform;
logging in the target social platform through the target application using the interface;
the preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process.
Optionally, the establishing, by the preset platform, an interface between the target application and the software development kit SDK corresponding to the target social platform includes:
if the application program App corresponding to the target social platform is not installed, the preset platform registers the network view processes provided by the SDK into each sub-process running on the preset platform respectively, and the network view sub-processes corresponding to the sub-processes on the preset platform one to one are obtained.
Optionally, the logging in the target social platform by the target application using the interface includes:
logging in the target social platform through a target web view sub-process, the target web view sub-process being the web view sub-process corresponding to a sub-process used by the target application.
Optionally, the establishing, by the preset platform, an interface between the target application and the software development kit SDK corresponding to the target social platform includes:
and if the application program App corresponding to the target social platform is installed, obtaining login information for logging in the target social platform, recorded in the App corresponding to the target social platform, by a preset platform.
Optionally, the logging in the target social platform by the target application using the interface includes:
sending the login information to the target application by the preset platform;
and logging in the App corresponding to the target social platform through the target application based on the target identification corresponding to the target application and the login information.
Optionally, after logging in the target social platform through the target application using the interface, the method further includes:
obtaining, by the preset platform, token information sent by the target social platform, where the token information is information used for indicating that the target social platform is successfully logged in through the target application;
and sending the token information to the target application by the preset platform.
According to a second aspect of the embodiments of the present disclosure, there is provided a login apparatus, the apparatus being used on a server side, the apparatus including:
the execution module is configured to establish an interface for a target application and a Software Development Kit (SDK) corresponding to a target social platform by a preset platform;
a login module configured to log in to the target social platform through the target application using the interface established by the execution module;
the preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process.
Optionally, the execution module includes:
and the first execution sub-module is configured to register the network view processes provided by the SDK into each running sub-process on a preset platform respectively by the preset platform if the application App corresponding to the target social platform is not installed, and obtain the network view sub-processes corresponding to the sub-processes on the preset platform one by one.
Optionally, the login module includes:
a first login sub-module configured to log in the target social platform through a target network view sub-process, where the target network view sub-process is the network view sub-process registered by the first execution sub-module corresponding to the sub-process used by the target application.
Optionally, the execution module includes:
and the second execution sub-module is configured to, if the application program App corresponding to the target social platform is installed, obtain login information, recorded in the App corresponding to the target social platform, for logging in the target social platform by a preset platform.
Optionally, the login module includes:
the sending submodule is configured to send the login information acquired by the second execution submodule to the target application by the preset platform;
and the second login submodule is configured to log in the App corresponding to the target social platform through the target application based on the target identification corresponding to the target application and the login information sent by the sending submodule.
Optionally, the apparatus further comprises:
an obtaining module, configured to obtain, by the preset platform, token information sent by the target social platform, where the token information is information used for indicating that the target social platform is successfully logged in through the logging module;
the sending module is configured to send the token information acquired by the acquiring module to the target application by the preset platform.
According to a third aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the login method of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a login apparatus, the apparatus being used for a client, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
establishing an interface for a target application and a Software Development Kit (SDK) corresponding to a target social platform by a preset platform;
logging in the target social platform through the target application using the interface;
the preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, a client may establish an interface for a target application and an SDK corresponding to a target social platform through a preset platform, so that the target application may log in the target social platform by using the interface. The preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process. Through the process, the target application which runs in the client background in the installation and downloading process can log in the target social platform, such as a microblog platform, without user confirmation, so that the capability of logging in a third-party social platform through the target application is expanded.
In the embodiment of the present disclosure, optionally, if the client does not install the application App corresponding to the target social platform, the preset platform may register the web view processes provided by the SDK into each sub-process running on the preset platform, so as to obtain the web view sub-processes corresponding to each sub-process on the preset platform one to one. Further, when logging on to a target social platform through a target application, the target social platform may be logged on through a target web view sub-process, which is the web view sub-process corresponding to the sub-process used by the target application. In the process, when the client side does not install the application program App corresponding to the target social platform, the preset platform establishes an interface for the target application and the software development kit SDK corresponding to the target social platform, so that the purpose of logging in the target social platform through the target application by using the interface is achieved, and the capability of logging in a third-party social platform through the target application is expanded.
In the embodiment of the present disclosure, optionally, if the client has installed the application App corresponding to the target social platform, the preset platform may directly obtain login information for logging in the target social platform, which is recorded in the App corresponding to the target social platform. Further, login information can be sent to a target application by a preset platform, and through the target application, an App corresponding to the target social platform is logged in based on a target identifier corresponding to the target application and the login information. The purpose of logging in the target social platform through the target application by using the interface is achieved, and the capability of logging in the third-party social platform through the target application is expanded.
In the embodiment of the disclosure, after the target application successfully logs in the target social platform, the preset platform may obtain token information sent by the target social platform, and send the token information to the target application, so that the target application may determine that the target social platform has been successfully logged in. Through the process, whether the target social platform is successfully logged in through the target application can be accurately determined, so that operations such as switching to the target social platform can be executed subsequently, and user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a diagram illustrating a login scenario in accordance with an exemplary embodiment.
Fig. 2A and 2B are schematic diagrams illustrating a login scenario according to an example embodiment.
Fig. 3 is a flow chart illustrating a method of login according to an example embodiment.
Fig. 4A and 4B are schematic diagrams illustrating a login scenario according to an example embodiment.
FIG. 5 is a schematic diagram illustrating another login scenario in accordance with an illustrative embodiment.
FIG. 6 is a schematic diagram illustrating another login scenario in accordance with an illustrative embodiment.
FIG. 7 is a schematic diagram illustrating another login scenario in accordance with an illustrative embodiment.
FIG. 8 is a flow chart illustrating another method of logging in according to an example embodiment.
FIG. 9 is a flow diagram illustrating another method of login according to an example embodiment.
FIG. 10 is a flow chart illustrating another method of logging in according to an example embodiment.
FIG. 11 is a block diagram illustrating a login device according to an example embodiment.
FIG. 12 is a block diagram illustrating another login device according to an example embodiment.
FIG. 13 is a block diagram illustrating another login device according to an example embodiment.
FIG. 14 is a block diagram illustrating another login device according to an example embodiment.
FIG. 15 is a block diagram illustrating another login device according to an example embodiment.
FIG. 16 is a block diagram illustrating another login device according to an example embodiment.
Fig. 17 is a schematic diagram illustrating a configuration for a login device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as operated herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
In the related art, if a user opens a certain application that is not installed on a client through the client, for example, a mobile phone, a computer, an ipad, or the like, the user may click a virtual installation key corresponding to the application through an application store, as shown in fig. 1. And after the installation is finished, clicking a virtual key for opening the application or a virtual icon corresponding to the application to open the application.
In the embodiment of the present disclosure, a target application is provided, where the target application runs on a preset platform of a client, optionally, the preset platform may be a direct service platform, and the target application is an application whose installation and download process does not need user confirmation, and the installation and download process runs on a background of the client.
For example, when the client does not install the target application, the user may directly click a virtual button for opening the target application, for example, as shown in fig. 2A, or click a preset URL (Uniform resource Locator), for example, as shown in fig. 2B, to directly open the target application.
Certainly, after the first installation is completed, the target application may output prompt information to enable a user to select whether to install the virtual icon corresponding to the target application, so that when the target application needs to be opened next time, the virtual icon may be directly clicked according to the related technology to open the target application.
The embodiment of the disclosure provides a login method for logging in a target social platform for the target application, which can be used for a client. Referring to fig. 3, a flowchart of a login method according to an exemplary embodiment may include the steps of:
in step 101, a preset platform establishes an interface for a target application and a Software Development Kit (SDK) corresponding to a target social platform;
logging in the target social platform through the target application using the interface in step 102;
the preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process.
In the above embodiment, the target social platform may include, but is not limited to, a microblog social platform, the target application, that is, the installation and download process described above, does not need user confirmation, the installation and download process is an application running on the client background, and the preset platform is a platform on the client background for running the target application, for example, a direct service platform. The client can establish an interface for the target application and the SDK corresponding to the target social platform through the preset platform, so that the target application can log in the target social platform through the interface, and the capability of logging in a third-party social platform through the target application is expanded.
In the related art, the SDK corresponding to the target social platform provides two login modes, one is that the client does not install an App corresponding to the target social platform, for example, does not install a microblog App, and can log in through a network view, for example, a login page in the form of a web page, as shown in fig. 4A; another is to install an App corresponding to the target social platform in advance on the client, and log in through a login page provided by the App, as shown in fig. 4B.
Correspondingly, for the first login method of the target social platform, in step 101, the preset platform may establish an interface between the target application and the SDK corresponding to the target social platform in the following manner:
the preset platform can register the network view processes provided by the SDK corresponding to the target social platform into each sub-process running on the preset platform respectively, and obtain the network view sub-processes corresponding to the sub-processes on the preset platform one by one.
In the related art, the network view process provided by the SDK corresponding to the target social platform corresponds to the host process. In the embodiment of the present disclosure, a preset platform may simultaneously run a plurality of sub-processes, each target application may use one sub-process, and in order to log in a target social platform, the preset platform may register the network view process provided by the SDK in each sub-process running on the preset platform, so that the network view sub-processes corresponding to each sub-process on the preset platform one to one may be obtained.
For example, at most, 5 sub-processes can be simultaneously provided for 5 different target applications on the direct service platform, and then the direct service platform can register the network view processes provided by the microblog SDKs into the 5 sub-processes, so that each sub-process used by each target application corresponds to one network view sub-process, as shown in fig. 5.
Accordingly, in step 102, a target application can log in to the target social platform according to the related art through a target network view sub-process, wherein the target network view sub-process is the network view sub-process corresponding to the sub-process used by the target application.
For example, in fig. 5, the target application is App1, App1 is using sub-process 1, the target web view sub-process is the web view sub-process a corresponding to sub-process 1, and App1 may call the web view sub-process a to open the login page corresponding to the target social platform, as shown in fig. 4A. At this time, the user may input an account and a password corresponding to the target social platform in the current page, log in the target social platform according to the related technology, and after the log-in is completed, the client may display a logged-in interface on the target social platform, for example, as shown in fig. 6.
For the second login method of the target social platform, in step 101, the preset platform may establish an interface between the target application and the SDK corresponding to the target social platform in the following manner:
and obtaining login information recorded in the App corresponding to the target social platform and used for logging in the target social platform by a preset platform.
If the App corresponding to the target social platform is already installed on the client, for example, the microblog App is already installed, the microblog App records login information for logging in the target social platform, namely, a microblog, and the login information may include, but is not limited to, an account, a password, and the like.
In the embodiment of the present disclosure, the login information may be obtained by a preset platform as a target application.
In step 102, the preset platform may send the obtained login information to a target application, and the target application may log in an App corresponding to a target social platform according to a related technology based on a target identifier corresponding to the target application and the login information.
The target identifier corresponding to the target application can be represented by a package name of the target application, one package name corresponds to one application, and the operating system can identify different target applications according to the package name. Zan may be used, for example, as a package name for a certain target application, while com.163 may be used as a package name for another target application.
In the embodiment of the disclosure, if the user needs to log in to the target social platform, the target application may transmit the target identifier corresponding to the user, that is, the package name and the login information acquired by the preset platform, to the App corresponding to the target social platform. The App corresponding to the target social platform sends the target package name and the login information to a server corresponding to the target social platform, for example, a microblog server for verification. If the App corresponding to the target social platform receives the information that is returned by the server and passes the verification, the login process can be completed according to the related technology, at this time, the client can jump to the App corresponding to the target social platform, and the App corresponding to the target social platform can display a logged-in interface on the target social platform, for example, as shown in fig. 6.
In the embodiment of the present disclosure, the target application is an application running on a preset platform, for example, a direct service platform, and the installation and download process of the target application does not need user confirmation, and the installation and download process runs in the background of the client. If the user needs to log in to a target social platform, for example, a microblog, through a target application, the user may trigger a preset virtual key or a preset virtual icon in the target application, for example, as shown in fig. 7. And establishing an interface between the target application and the SDK corresponding to the target social platform by the preset platform.
If the client does not install the App corresponding to the target social platform, the preset platform may register the web view process provided by the SDK into each sub-process running on the preset platform. A target application may log on to a target social platform through a target web view sub-process, which is the web view sub-process corresponding to the sub-process used by the target application.
If the client side is provided with the App corresponding to the target social platform, login information recorded in the App corresponding to the target social platform and used for logging in the target social platform can be acquired for the target application by the preset platform. Further, the target application can send the target identification of the target application and the login information to the App corresponding to the target social platform, so that the App corresponding to the target social platform is logged in.
Through the process, the purpose of logging in the target social platform through the target application is achieved, and the capability of logging in the third-party social platform through the target application is expanded.
In an embodiment, optionally referring to fig. 8, fig. 8 is another login method based on the embodiment shown in fig. 3, and after step 102 is completed, the method may further include:
in step 103, obtaining, by the preset platform, token information sent by the target social platform, where the token information is information used for indicating that the target social platform is successfully logged in through the target application;
in this step, the target social contact platform may send token information to a preset platform after the target social contact platform is successfully logged in through the target application, and the preset platform receives the token information according to a related technology.
In step 104, the preset platform sends the token information to the target application.
In this step, after receiving the token information, the preset platform may send the token information to the target application, so that the target application may determine that the target social platform has been successfully logged in.
Through the process, whether the target social platform is successfully logged in through the target application can be accurately determined, so that operations such as switching to a logged interface on the target social platform can be performed subsequently, and user experience is improved.
In an embodiment, if the client does not install the App corresponding to the target social platform, referring to fig. 9, fig. 9 is another login method according to an embodiment, where the method may include:
in step 201, a preset platform registers a network view process provided by an SDK corresponding to a target social platform into each running sub-process on the preset platform, and obtains network view sub-processes corresponding to each sub-process on the preset platform one to one.
In step 202, a target application logs in the target social platform through a target web view sub-process.
Wherein the target web view sub-process is the web view sub-process corresponding to a sub-process used by the target application.
In step 203, the preset platform acquires token information sent by the target social platform.
Wherein the token information is information indicating successful login to the target social platform by the target application.
In step 204, the preset platform sends the token information to the target application.
The target application may determine, through the token information, that the target social platform has been successfully logged in. Further, the client may switch to a logged-in interface on the target social platform, such as shown in fig. 6.
In the above embodiment, if the client does not install the application App corresponding to the target social platform, the preset platform may register the web view processes provided by the SDK into each sub-process running on the preset platform, so as to obtain the web view sub-processes corresponding to each sub-process on the preset platform one to one. Further, when logging on to a target social platform through a target application, the target social platform may be logged on through a target web view sub-process, which is the web view sub-process corresponding to the sub-process used by the target application. In the process, when the client side does not install the application program App corresponding to the target social platform, the preset platform establishes an interface for the target application and the software development kit SDK corresponding to the target social platform, so that the purpose of logging in the target social platform through the target application by using the interface is achieved, and the capability of logging in a third-party social platform through the target application is expanded.
In an embodiment, if the client has installed an App corresponding to the target social platform, referring to fig. 10, fig. 10 is another login method according to an embodiment, where the method may include:
in step 301, a preset platform obtains login information, recorded in an App corresponding to the target social platform, for logging in the target social platform.
In step 302, the preset platform sends the login information to the target application.
In step 303, the target application logs in the App corresponding to the target social platform based on the target identifier corresponding to the target application and the login information.
In step 304, the preset platform obtains token information sent by the target social platform.
Wherein the token information is information indicating successful login to the target social platform by the target application.
In step 305, the default platform sends the token information to the target application.
The target application may determine, through the token information, that the target social platform has been successfully logged in. Further, the client may switch to an interface after the target social platform has logged in, such as shown in fig. 6.
In the above embodiment, if the client has installed the application App corresponding to the target social platform, the preset platform may directly obtain login information for logging in the target social platform, which is recorded in the App corresponding to the target social platform. Further, login information can be sent to a target application by a preset platform, and through the target application, an App corresponding to the target social platform is logged in based on a target identifier corresponding to the target application and the login information. The purpose of logging in the target social platform through the target application by using the interface is achieved, and the capability of logging in the third-party social platform through the target application is expanded.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently.
Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an embodiment of an application function implementation device and a corresponding terminal.
Referring to fig. 11, a block diagram of a login apparatus for a client is shown according to an example embodiment, including:
the execution module 410 is configured to establish an interface for the target application and the software development kit SDK corresponding to the target social platform by the preset platform;
a login module 420 configured to log in to the target social platform through the target application using the interface established by the execution module 410;
the preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process.
Referring to fig. 12, another block diagram of a login device according to an exemplary embodiment is shown, on the basis of the embodiment of the device shown in fig. 11, the executing module 410 includes:
the first execution sub-module 411 is configured to, if the application App corresponding to the target social platform is not installed, register, by the preset platform, the network view process provided by the SDK into each running sub-process on the preset platform, and obtain the network view sub-process corresponding to each sub-process on the preset platform one to one.
Referring to fig. 13, another block diagram of a login apparatus according to an exemplary embodiment is shown, on the basis of the embodiment of the apparatus shown in fig. 12, the login module 420 includes:
a first login sub-module 421 configured to log in the target social platform through a target network view sub-process, where the target network view sub-process is the network view sub-process registered by the first execution sub-module 411 corresponding to the sub-process used by the target application.
Referring to fig. 14, another block diagram of a login device according to an exemplary embodiment is shown, on the basis of the embodiment of the device shown in fig. 11, the executing module 410 includes:
the second execution sub-module 412 is configured to, if the App corresponding to the target social platform is installed, obtain, by a preset platform, login information for logging in the target social platform, which is recorded in the App corresponding to the target social platform.
Referring to fig. 15, a block diagram of another login apparatus according to an exemplary embodiment is shown, on the basis of the apparatus embodiment shown in fig. 14, the login module 420 includes:
a sending sub-module 422 configured to send, by the preset platform, the login information obtained by the second executing sub-module 412 to the target application;
the second login submodule 423 is configured to log in, through the target application, an App corresponding to the target social platform based on the target identifier corresponding to the target application and the login information sent by the sending submodule 422.
Referring to fig. 16, a block diagram of another login apparatus according to an exemplary embodiment is shown, and based on the embodiment of the apparatus shown in fig. 11, the apparatus further includes:
an obtaining module 430, configured to obtain, by the preset platform, token information sent by the target social platform, where the token information is information used for indicating that the target social platform is successfully logged in through the logging module 420;
a sending module 440, configured to send, by the preset platform, the token information acquired by the acquiring module 430 to the target application.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, the embodiment of the present disclosure further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program is used to execute any one of the login methods described above.
Correspondingly, an embodiment of the present disclosure further provides a login apparatus, where the apparatus is used for a client, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
establishing an interface for a target application and a Software Development Kit (SDK) corresponding to a target social platform by a preset platform;
logging in the target social platform through the target application using the interface;
the preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process.
Fig. 17 is a schematic diagram illustrating a configuration of a login device according to an exemplary embodiment. As shown in fig. 17, a login apparatus 1700 is shown according to an exemplary embodiment, where the apparatus 1700 may be a client of a computer, a mobile phone, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 17, apparatus 1700 may include one or more of the following components: a processing component 1701, a memory 1702, a power component 1703, a multimedia component 1704, an audio component 1705, an input/output (I/O) interface 1706, a sensor component 1707, and a communications component 1708.
The processing component 1701 generally controls the overall operation of the device 1700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1701 may include one or more processors 1709 to execute instructions to perform all or part of the steps of the method described above. Further, the processing component 1701 may include one or more modules that facilitate interaction between the processing component 1701 and other components. For example, the processing component 1701 may include a multimedia module to facilitate interaction between the multimedia component 1704 and the processing component 1701.
The memory 1702 is configured to store various types of data to support operations at the apparatus 1700. Examples of such data include instructions for any application or method operating on the apparatus 1700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1702 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 1703 provides power to the various components of the device 1700. The power components 1703 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1700.
Multimedia component 1704 includes a screen that provides an output interface between the device 1700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, multimedia component 1704 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1705 is configured to output and/or input audio signals. For example, audio component 1705 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1700 is in an operating mode, such as a call mode, a record mode, and a voice recognition mode. The received audio signals may further be stored in memory 1702 or transmitted via communications component 1708. In some embodiments, audio component 1705 also includes a speaker for outputting audio signals.
The I/O interface 1706 provides an interface between the processing component 1701 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1707 includes one or more sensors for providing various aspects of condition assessment for the device 1700. For example, the sensor assembly 1707 may detect the open/closed state of the apparatus 1700, the relative positioning of components, such as a display and keypad of the apparatus 1700, the sensor assembly 1707 may also detect a change in position of the apparatus 1700 or a component of the apparatus 1700, the presence or absence of user contact with the apparatus 1700, orientation or acceleration/deceleration of the apparatus 1700, and a change in temperature of the apparatus 1700. The sensor assembly 1707 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1707 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1707 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1708 is configured to facilitate communications between the apparatus 1700 and other devices in a wired or wireless manner. The apparatus 1700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1708 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1708 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1702 comprising instructions, executable by the processor 1709 of the apparatus 1700 to perform the above method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein the instructions in the storage medium, when executed by the processor, enable the apparatus 1700 to perform the above-described login method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (14)

1. A login method, wherein the method is used for a client, and the method comprises:
establishing an interface for a target application and a Software Development Kit (SDK) corresponding to a target social platform by a preset platform;
logging in the target social platform through the target application using the interface;
the preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process.
2. The method of claim 1, wherein the establishing, by the preset platform, an interface between the target application and the software development kit SDK corresponding to the target social platform comprises:
if the application program App corresponding to the target social platform is not installed, the preset platform registers the network view processes provided by the SDK into each sub-process running on the preset platform respectively, and the network view sub-processes corresponding to the sub-processes on the preset platform one to one are obtained.
3. The method of claim 2, wherein logging into the target social platform through the target application using the interface comprises:
logging in the target social platform through a target web view sub-process, the target web view sub-process being the web view sub-process corresponding to a sub-process used by the target application.
4. The method of claim 1, wherein the establishing, by the preset platform, an interface between the target application and the software development kit SDK corresponding to the target social platform comprises:
and if the application program App corresponding to the target social platform is installed, obtaining login information for logging in the target social platform, recorded in the App corresponding to the target social platform, by a preset platform.
5. The method of claim 4, wherein logging into the target social platform through the target application using the interface comprises:
sending the login information to the target application by the preset platform;
and logging in the App corresponding to the target social platform through the target application based on the target identification corresponding to the target application and the login information.
6. The method of any of claims 2-5, wherein after logging into the target social platform by the target application using the interface, the method further comprises:
obtaining, by the preset platform, token information sent by the target social platform, where the token information is information used for indicating that the target social platform is successfully logged in through the target application;
and sending the token information to the target application by the preset platform.
7. A login apparatus, wherein the apparatus is used on a server side, the apparatus comprising:
the execution module is configured to establish an interface for a target application and a Software Development Kit (SDK) corresponding to a target social platform by a preset platform;
a login module configured to log in to the target social platform through the target application using the interface established by the execution module;
the preset platform is used for running the target application on the client background, the target application is the application of which the installation and downloading process does not need to be confirmed by a user and runs on the client background.
8. The apparatus of claim 7, wherein the execution module comprises:
and the first execution sub-module is configured to register the network view processes provided by the SDK into each running sub-process on a preset platform respectively by the preset platform if the application App corresponding to the target social platform is not installed, and obtain the network view sub-processes corresponding to the sub-processes on the preset platform one by one.
9. The apparatus of claim 8, wherein the login module comprises:
a first login sub-module configured to log in the target social platform through a target network view sub-process, where the target network view sub-process is the network view sub-process registered by the first execution sub-module corresponding to the sub-process used by the target application.
10. The apparatus of claim 7, wherein the execution module comprises:
and the second execution sub-module is configured to, if the application program App corresponding to the target social platform is installed, obtain login information, recorded in the App corresponding to the target social platform, for logging in the target social platform by a preset platform.
11. The apparatus of claim 10, wherein the login module comprises:
the sending submodule is configured to send the login information acquired by the second execution submodule to the target application by the preset platform;
and the second login submodule is configured to log in the App corresponding to the target social platform through the target application based on the target identification corresponding to the target application and the login information sent by the sending submodule.
12. The apparatus according to any one of claims 8-11, further comprising:
an obtaining module, configured to obtain, by the preset platform, token information sent by the target social platform, where the token information is information used for indicating that the target social platform is successfully logged in through the logging module;
the sending module is configured to send the token information acquired by the acquiring module to the target application by the preset platform.
13. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the login method according to any one of the above claims 1 to 6.
14. A login apparatus, the apparatus being for a client, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
establishing an interface for a target application and a Software Development Kit (SDK) corresponding to a target social platform by a preset platform;
logging in the target social platform through the target application using the interface;
the preset platform is used for running the target application on the client background, the target application is an application which does not need user confirmation in the installation and downloading process and runs on the client background in the installation and downloading process.
CN201711441733.9A 2017-12-27 2017-12-27 Login method and device Active CN108173846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711441733.9A CN108173846B (en) 2017-12-27 2017-12-27 Login method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711441733.9A CN108173846B (en) 2017-12-27 2017-12-27 Login method and device

Publications (2)

Publication Number Publication Date
CN108173846A CN108173846A (en) 2018-06-15
CN108173846B true CN108173846B (en) 2021-05-04

Family

ID=62521805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711441733.9A Active CN108173846B (en) 2017-12-27 2017-12-27 Login method and device

Country Status (1)

Country Link
CN (1) CN108173846B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610938A (en) * 2015-12-24 2016-05-25 广州爱九游信息技术有限公司 Logging status synchronization method and system
CN105988837A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Installation method and device of application program
CN106557669A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of authority control method and device of application program installation process
CN107291518A (en) * 2017-07-28 2017-10-24 维沃移动通信有限公司 Using installation method, mobile terminal and server
CN107329742A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 SDK call method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647704B (en) * 2013-12-27 2018-06-19 金蝶软件(中国)有限公司 A kind of microblogging login method and system based on ERP system
CN104572278B (en) * 2014-12-22 2018-11-23 百度在线网络技术(北京)有限公司 The method, device and equipment of light application calling local side ability
US10209976B2 (en) * 2015-12-30 2019-02-19 Dropbox, Inc. Automated application installation
CN106775828B (en) * 2016-11-25 2020-07-03 Oppo广东移动通信有限公司 Application program installation method and device and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988837A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Installation method and device of application program
CN106557669A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of authority control method and device of application program installation process
CN105610938A (en) * 2015-12-24 2016-05-25 广州爱九游信息技术有限公司 Logging status synchronization method and system
CN107329742A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 SDK call method and device
CN107291518A (en) * 2017-07-28 2017-10-24 维沃移动通信有限公司 Using installation method, mobile terminal and server

Also Published As

Publication number Publication date
CN108173846A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN107329742B (en) Software development kit calling method and device
EP3174053A1 (en) Method, apparatus and system for playing multimedia data, computer program and recording medium
US9800666B2 (en) Method and client terminal for remote assistance
CN104219092B (en) The compatibility method of a kind of router administration application and router firmware and device
US10425403B2 (en) Method and device for accessing smart camera
CN106170004B (en) Method and device for processing verification code
US20170171321A1 (en) Methods and devices for managing accounts
US20160352891A1 (en) Methods and devices for sending virtual information card
US10216711B2 (en) Information collection method and apparatus
CN106790043B (en) Method and device for sending message in live broadcast application
CN109271239A (en) Method, apparatus, system, equipment and the medium of data processing
CN104881304B (en) Resource downloading method and device
CN110704054A (en) Method and device for accessing target application program through applet, electronic equipment and storage medium
CN106209471A (en) Fault feedback method and device
CN105511739A (en) Message prompting method and device
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN107395624B (en) Information processing method and device
CN107562500B (en) Debugging device, method and equipment
CN107316207B (en) Method and device for acquiring display effect information
CN105530129B (en) Router resetting method and device
CN106878654B (en) Video communication method and device
CN106506808B (en) Method and device for prompting communication message
CN104780256A (en) Address book management method and device and intelligent terminal
CN110213062B (en) Method and device for processing message
CN110764847A (en) User information processing method and device, electronic equipment and storage medium

Legal Events

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