CN113452693A - Login method and device for page back end, storage medium and electronic device - Google Patents

Login method and device for page back end, storage medium and electronic device Download PDF

Info

Publication number
CN113452693A
CN113452693A CN202110707559.8A CN202110707559A CN113452693A CN 113452693 A CN113452693 A CN 113452693A CN 202110707559 A CN202110707559 A CN 202110707559A CN 113452693 A CN113452693 A CN 113452693A
Authority
CN
China
Prior art keywords
page
user
authentication
login
authentication request
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.)
Granted
Application number
CN202110707559.8A
Other languages
Chinese (zh)
Other versions
CN113452693B (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110707559.8A priority Critical patent/CN113452693B/en
Publication of CN113452693A publication Critical patent/CN113452693A/en
Application granted granted Critical
Publication of CN113452693B publication Critical patent/CN113452693B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention discloses a login method and a device of a page back end, a storage medium and an electronic device, wherein the method comprises the following steps: receiving an authentication request sent by a page front end, wherein the authentication request is used for indicating a user login credential for logging in a target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page; sending the authentication request to a user center server so that the user center server authenticates the authentication request according to the user login credential; receiving an authentication certificate sent by the user center server under the condition that the authentication is passed; according to the technical scheme, the problem that in the related art, when the target application end jumps to other pages, the user needs to input a user name and a password to log in other pages and the like is solved.

Description

Login method and device for page back end, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to a login method and device for a page back end, a storage medium and an electronic device.
Background
With the progress of scientific technology and the development of the internet, a user often jumps to other pages at a target application end, when the user logs in other pages at the target application end, the user is required to input a user name and a password login mode corresponding to the other pages or obtain a short message verification code mode to realize the authentication of the user, and under the condition that the user logs in other pages for the first time through the target application end, the user is required to log in more operation steps, and needs to interact and input a large amount of information for many times, so that the interaction is complicated.
Aiming at the problems that in the related art, when a target application end jumps to other pages, other pages need to be logged in a mode of inputting a user name and a password by a user, and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a login method and device for a page back end, a storage medium and an electronic device, and at least solves the problems that in the related art, a user needs to input a user name and a password to log in other pages when a target application end jumps to other pages, and the like.
According to an embodiment of the present invention, a method for logging in a back end of a page is provided, including: receiving an authentication request sent by a page front end, wherein the authentication request is used for indicating a user login credential for logging in a target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page; sending the authentication request to a user center server so that the user center server authenticates the authentication request according to the user login credential; receiving an authentication certificate sent by the user center server under the condition that the authentication is passed; and logging in the back end of the page at the target application end according to the authentication certificate.
In an exemplary embodiment, before receiving the authentication request sent by the page front end, the method further includes: indicating the front end of the page to obtain the user login credentials by a preset method, wherein the user login credentials are credentials for logging in the target client; and indicating the front end of the page to generate the authentication request according to the user login credential.
In one exemplary embodiment, the preset method includes at least one of: and acquiring the user login credentials through JsBridge, and acquiring the user login credentials through a software development kit provided by the target client.
In an exemplary embodiment, after the target application logs in the page backend according to the authentication credential, the method further comprises: acquiring user information corresponding to the page, wherein the user information is at least used for indicating one of the following indications: a user name, a user head portrait and a user contact information; and sending the user information to a page front end to indicate the page front end to load the user information.
In an exemplary embodiment, after the target application logs in the page backend according to the authentication credential, the method further comprises: storing the user information and the authentication voucher to a local database of a page; and under the condition that the page back end logs in the page again, indicating the page back end to log in the page according to the user information of the local database and the authentication certificate.
In an exemplary embodiment, after the target application logs in the page backend according to the authentication credential, the method further comprises: acquiring the login state of the front end of the page, wherein the login state at least comprises one of the following states: logged on state, not logged on state; and sending the login state of the front end of the page to a target application end.
According to another embodiment of the present invention, there is also provided a login device at a back end of a page, including: the system comprises a receiving module, a processing module and a judging module, wherein the receiving module is used for receiving an authentication request sent by a page front end, the authentication request is used for indicating a user login certificate of a login target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page; the sending module is used for sending the authentication request to a user center server so that the user center server authenticates the authentication request according to the user login credential; the receiving module is used for receiving the authentication certificate sent by the user center server under the condition that the authentication passes; and the login module is used for logging in the rear end of the page at the target application end according to the authentication certificate.
In one exemplary embodiment, the apparatus further comprises: the indication module is used for indicating the front end of the page to acquire the user login credentials by a preset method, wherein the user login credentials are credentials for logging in the target client; and indicating the front end of the page to generate the authentication request according to the user login credential.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the login method of the page back end when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the login method of the page back end through the computer program.
In the embodiment of the invention, an authentication request sent by a page front end is received, wherein the authentication request is used for indicating a user login certificate of a login target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page; sending the authentication request to a user center server so that the user center server authenticates the authentication request according to the user login credential; receiving an authentication certificate sent by the user center server under the condition that the authentication is passed; according to the technical scheme, the problems that in the related art, when the target application terminal jumps to other pages, other pages need to be logged in a mode that a user inputs a user name and a password are solved, the target application terminal is prevented from logging in and jumping to other pages of each industry, after the target application terminal logs in each page, login information related to the user is reserved in equipment, and when the user needs to log in the page again, the target page is automatically logged in.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal of a login method of a page back end according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method of logging on a back end of a page according to an embodiment of the invention;
FIG. 3 is a diagram illustrating a method for logging on a back end of a page according to an embodiment of the invention;
fig. 4 is a block diagram of a login device at the back end of a page according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method provided by the embodiment of the application can be executed in a computer terminal, a mobile terminal or a similar operation device. Taking the example of running on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of a login method of a page back end according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to a login method of a page back end in an embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a login method for a back end of a page is provided, which is applied to the computer terminal described above, and fig. 2 is a flowchart of the login method for the back end of the page according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, receiving an authentication request sent by a page front end, wherein the authentication request is used for indicating a user login certificate of a login target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page;
step S204, the authentication request is sent to a user center server, so that the user center server authenticates the authentication request according to the user login credential;
step S206, receiving the authentication voucher sent by the user center server under the condition that the authentication is passed;
and step S208, logging in the back end of the page at the target application end according to the authentication certificate.
The page may be an H5 page, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, an authentication request sent by a page front end is received, wherein the authentication request is used for indicating a user login certificate of a login target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page; sending the authentication request to a user center server so that the user center server authenticates the authentication request according to the user login credential; receiving an authentication certificate sent by the user center server under the condition that the authentication is passed; according to the technical scheme, the problems that in the related art, when the target application terminal jumps to other pages, other pages need to be logged in a mode that a user inputs a user name and a password are solved, the target application terminal is prevented from logging in and jumping to other pages of each industry, after the target application terminal logs in each page, login information related to the user is reserved in equipment, and when the user needs to log in the page again, the target page is automatically logged in.
In an exemplary embodiment, before receiving an authentication request sent by a page front end, instructing the page front end to obtain a user login credential through a preset method, where the user login credential is a credential for logging in the target client; and indicating the front end of the page to generate the authentication request according to the user login credential.
In other words, in order to realize that after the target application terminal logs in, the target object needs to input a user name and a password corresponding to the page when jumping to the page, and when the target object logs in the page at the target application terminal, the page back end indicates the page front end to obtain the user login credentials by a preset method, wherein the preset method is a method preset by a developer or a user, and the target front end generates an authentication request according to the obtained user login credentials, so that the user center service verifies the authentication request.
In another embodiment, in a case that a target object logs in a page at a target application side, a page front end may actively obtain the user login credential through a preset method, where the preset method is a method preset by a developer or a user, and the target front end generates an authentication request according to the obtained user login credential, so that the user center service verifies the authentication request.
According to the embodiment, the page front end can obtain the user login credentials by a preset method after receiving the indication information of the page rear end; or actively acquiring the user login credentials by a preset method under the condition that the target object is determined to be in the login page of the target application terminal, which is not limited in the embodiment of the invention.
In one exemplary embodiment, the preset method includes at least one of: and acquiring the user login credentials through JsBridge, and acquiring the user login credentials through a software development kit provided by the target client.
When the target object logs in the target application terminal, the front end of the page obtains the user login credentials sdToken through bridging JsBridge or obtains the user login credentials sdToken through a software development kit sdk provided by the target application terminal.
In an exemplary embodiment, after the target application logs in the page backend according to the authentication credential, user information corresponding to the page is acquired, where the user information is at least used to indicate one of the following indications: a user name, a user head portrait and a user contact information; and sending the user information to a page front end to indicate the page front end to load the user information.
Specifically, after the page front end acquires sdbookmark, the page front end sends an authentication request containing a user login credential to the page back end, the page back end sends the authentication request to a user center server, the user center server authenticates the user login credential in the authentication request, when the user center server confirms that the user login credential in the authentication request is the same as the user login credential of a target object login target application end, the authentication of the page back end is determined to pass, an authentication credential accessoken is generated and sent to the page back end, the page back end acquires the authentication credential and then logs in as a unique identifier of a login page, the page back end interacts with a server corresponding to the page back end to acquire related user information, and the steps comprise: the user name, the user head portrait, the user contact information and the like, and finally the effect of avoiding logging in the page at the target application end is achieved.
In an exemplary embodiment, after the target application logs in the page back end according to the authentication credential, the user information and the authentication credential are saved to a local database of a page; and under the condition that the page back end logs in the page again, indicating the page back end to log in the page according to the user information of the local database and the authentication certificate.
That is, after logging in the page back end at the target application end according to the authentication credential, the authentication credential and the user information are stored in a local database of the device, and when the target object logs in the page again at the target application end or other application ends, the page back end is instructed to acquire the authentication credential and the user information in the local database, and the page is logged in according to the authentication credential and the user information.
Further, under the condition that the target object logs in the page at the target application end, the front page end or the back page end determines whether authentication credentials and user information corresponding to the page are stored in the local database, and under the condition that the authentication credentials and the user information corresponding to the page are stored in the local database, the back page end is instructed to acquire the authentication credentials and the user information in the local database, and the page is logged in according to the authentication credentials and the user information; and under the condition that the local database does not store the authentication voucher and the user information corresponding to the page, indicating the front end of the page to obtain a software development kit sdk provided by a bridging JsBridge or a target application end to obtain a user login voucher sdToken, and generating an authentication request by the target front end according to the obtained user login voucher so that the user center service verifies the authentication request.
In an exemplary embodiment, after the target application logs in the page back end according to the authentication credential, a login state of the page front end is obtained, where the login state includes at least one of: logged on state, not logged on state; and sending the login state of the front end of the page to a target application end.
After the page obtains the authentication certificate, the target application terminal can be informed, an effective period can be set for the authentication certificate in advance, and the page can be automatically logged in the target application terminal within the time range of the effective period.
In order to better understand the process of the login method of the page back end, the following describes a flow of the implementation method of the login of the page back end with reference to an optional embodiment, but the technical solution of the embodiment of the present invention is not limited.
In this embodiment, a login method for a back end of a page is provided, and fig. 3 is a schematic diagram of the login method for the back end of the page according to the embodiment of the present invention, as shown in fig. 3, the following steps are specifically provided:
step S301: a third industry client (equivalent to the front end of the page in the embodiment) acquires a user login certificate of a target application end;
in order to realize that after the target application terminal logs in, the third industry client terminal jumps to and does not need to let the user (equivalent to the target object in the above embodiment) input the user name and password corresponding to the third industry client terminal, the third industry client terminal needs to acquire the user login credential of the current target application terminal first, and the interaction between the third industry client terminal and the target application terminal can acquire the user login credential sdToken through JsBridge or URLScheme or a software development kit sdk provided by the target application terminal, wherein the third industry client terminal can be an H5 page, which is not limited in the embodiment of the present invention.
Step S302: the third industry client sends an authentication request to a third industry backend (equivalent to the page backend in the above embodiment), where the authentication request includes a user login credential of the target application;
step S303: the third industry back end receives the authentication request and sends the received authentication request to the user center server;
step S304: under the condition that the user center server confirms that the user login credentials in the authentication request are the same as the user login credentials of the target object login target application end, determining that the authentication of the third industry rear end passes, generating authentication credentials accessToken and sending the authentication credentials to the third industry rear end;
step S305: after receiving the authentication credential accessoken, the third industry backend logs in according to the authentication credential accessoken, and obtains related user login information (which is equivalent to the user information in the above embodiment), such as: the user name, the user head portrait, the user nickname and the like are sent to the third industry client;
step S306: sending the user login information to a third production client;
step S307: the third industry client loads user login information so as to display the user login information of the third industry of the user on a terminal interface;
step S308: and after the third industry obtains the authentication certificate accessoken and successfully logs in, locally storing the authentication certificate accessoken of the third industry, obtaining the login state of the third industry, sending the login state to a target application end, obtaining the authentication certificate and user information in a local database within the time range of the validity period of the authentication certificate accessoken of the third industry under the condition that the user logs in the third industry again, and logging in the third industry according to the authentication certificate and the user login information.
In the embodiment of the invention, an authentication request sent by a page front end is received, wherein the authentication request is used for indicating a user login certificate of a login target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page; sending the authentication request to a user center server so that the user center server authenticates the authentication request according to the user login credential; receiving an authentication certificate sent by the user center server under the condition that the authentication is passed; according to the technical scheme, the problems that in the related art, when the target application terminal jumps to other pages, other pages need to be logged in a mode that a user inputs a user name and a password are solved, the target application terminal is prevented from logging in and jumping to other pages of each industry, after the target application terminal logs in each page, login information related to the user is reserved in equipment, and when the user needs to log in the page again, the target page is automatically logged in.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
FIG. 4 is a block diagram of a login device at the back end of a page according to an embodiment of the present invention; as shown in fig. 4, includes:
the first receiving module 40 is configured to receive an authentication request sent by a front end of a page, where the authentication request is used to indicate a user login credential for logging in a target application end, and the front end of the page and the back end of the page correspond to the front end and the back end of the same page respectively;
a sending module 42, configured to send the authentication request to a user center server, so that the user center server authenticates the authentication request according to the user login credential;
a second receiving module 44, configured to receive, if the authentication passes, the authentication credential sent by the user center server;
and a login module 46, configured to log in the back end of the page at the target application end according to the authentication credential.
The page may be an H5 page, which is not limited in this embodiment of the present invention.
In the embodiment of the present invention, a first receiving module 40 receives an authentication request sent by a page front end, where the authentication request is used to indicate a user login credential for logging in a target application end, and the page front end and the page back end correspond to a front end and a back end of the same page respectively; the sending module 42 sends the authentication request to a user center server, so that the user center server authenticates the authentication request according to the user login credential; the second receiving module 44 receives the authentication credential sent by the user center server under the condition that the authentication passes; the login module 46 logs in the rear end of the page at the target application end according to the authentication credentials, that is, logs in the rear end of the page at the target application end according to the authentication credentials sent by the user center server under the condition that the user center server passes the authentication request, according to the technical scheme, the problems that in the related art, when the target application end jumps to other pages, other pages need to be logged in a manner that a user inputs a user name and a password are solved, the fact that the user logs in and jumps to other pages of each industry in the target application end is avoided, after the target application end logs in each page, login information related to the user is reserved in equipment, and when the user needs to log in the page again, the target page is automatically logged in.
In an exemplary embodiment, the apparatus further includes: the indication module is used for indicating the front end of the page to acquire the user login credentials by a preset method, wherein the user login credentials are credentials for logging in the target client; and indicating the front end of the page to generate the authentication request according to the user login credential.
In other words, when the target object logs in the page at the target application terminal, the page back end instructs the page front end to acquire the user login credentials by a preset method, wherein the preset method is a method preset by a developer or a user, and the target front end generates an authentication request according to the acquired user login credentials, so that the user center service verifies the authentication request.
In another exemplary embodiment, in a case that a target object logs in a page at a target application side, a page front end may actively obtain the user login credentials by a preset method, where the preset method is a method preset by a developer or a user, and the target front end generates an authentication request according to the obtained user login credentials, so that the user center service verifies the authentication request.
According to the embodiment, the page front end can obtain the user login credentials by a preset method after receiving the indication information of the page rear end; or actively acquiring the user login credentials by a preset method under the condition that the target object is determined to be in the login page of the target application terminal, which is not limited in the embodiment of the invention.
In one exemplary embodiment, the preset method includes at least one of: and acquiring the user login credentials through JsBridge, and acquiring the user login credentials through a software development kit provided by the target client.
In the case where the target object logs in to the target application, the page front-end obtains the user login credentials sdToken by bridging JsBridge or a software development kit sdk provided by the target application.
In an exemplary embodiment, after the target application logs in the page backend according to the authentication credential, the apparatus further includes an obtaining module, configured to obtain user information corresponding to the page, where the user information at least indicates one of the following indications: a user name, a user head portrait and a user contact information; and sending the user information to a page front end to indicate the page front end to load the user information.
Specifically, after the page front end acquires sdbookmark, the page front end sends an authentication request containing a user login credential to the page back end, the page back end sends the authentication request to a user center server, the user center server authenticates the user login credential in the authentication request, when the user center server confirms that the user login credential in the authentication request is the same as the user login credential of a target object login target application end, the authentication of the page back end is determined to pass, an authentication credential accessoken is generated and sent to the page back end, the page back end acquires the authentication credential and then logs in as a unique identifier of a login page, the page back end interacts with a server corresponding to the page back end to acquire related user information, and the steps comprise: the user name, the user head portrait, the user contact information and the like, and finally the effect of avoiding logging in the page at the target application end is achieved.
In an exemplary embodiment, after the target application logs in the page backend according to the authentication credential, the apparatus further includes: the storage module is used for storing the user information and the authentication voucher to a local database of a page; and under the condition that the page back end logs in the page again, indicating the page back end to log in the page according to the user information of the local database and the authentication certificate.
That is, after logging in the page back end at the target application end according to the authentication credential, the authentication credential and the user information are stored in a local database of the device, and when the target object logs in the page again at the target application end or other application ends, the page back end is instructed to acquire the authentication credential and the user information in the local database, and the page is logged in according to the authentication credential and the user information.
Further, under the condition that the target object logs in the page at the target application end, the front page end or the back page end determines whether authentication credentials and user information corresponding to the page are stored in the local database, and under the condition that the authentication credentials and the user information corresponding to the page are stored in the local database, the back page end is instructed to acquire the authentication credentials and the user information in the local database, and the page is logged in according to the authentication credentials and the user information; and under the condition that the local database does not store the authentication voucher and the user information corresponding to the page, indicating the front end of the page to obtain a software development kit sdk provided by a bridging JsBridge or a target application end to obtain a user login voucher sdToken, and generating an authentication request by the target front end according to the obtained user login voucher so that the user center service verifies the authentication request.
In an exemplary embodiment, after the target application logs in the page back end according to the authentication credential, the obtaining module is further configured to obtain a login status of the page front end, where the login status includes at least one of: logged on state, not logged on state; and sending the login state of the front end of the page to a target application end.
After the page obtains the authentication certificate, the target application terminal can be informed, an effective period can be set for the authentication certificate in advance, and the page can be automatically logged in the target application terminal within the time range of the effective period.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, receiving an authentication request sent by a page front end, wherein the authentication request is used for indicating a user login credential of a login target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page;
s2, sending the authentication request to a user center server, so that the user center server authenticates the authentication request according to the user login credential;
s3, receiving the authentication voucher sent by the user center server under the condition that the authentication is passed;
and S4, logging in the back end of the page at the target application end according to the authentication certificate.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving an authentication request sent by a page front end, wherein the authentication request is used for indicating a user login credential of a login target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page;
s2, sending the authentication request to a user center server, so that the user center server authenticates the authentication request according to the user login credential;
s3, receiving the authentication voucher sent by the user center server under the condition that the authentication is passed;
and S4, logging in the back end of the page at the target application end according to the authentication certificate.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A login method of a page back end is characterized by comprising the following steps:
receiving an authentication request sent by a page front end, wherein the authentication request is used for indicating a user login credential for logging in a target application end, and the page front end and the page rear end respectively correspond to the front end and the rear end of the same page;
sending the authentication request to a user center server so that the user center server authenticates the authentication request according to the user login credential;
receiving an authentication certificate sent by the user center server under the condition that the authentication is passed;
and logging in the back end of the page at the target application end according to the authentication certificate.
2. The method for logging on the back end of the page as claimed in claim 1, wherein before receiving the authentication request sent by the front end of the page, the method further comprises:
indicating the front end of the page to obtain the user login credentials by a preset method, wherein the user login credentials are credentials for logging in the target client;
and indicating the front end of the page to generate the authentication request according to the user login credential.
3. The method for logging on the back end of a page according to claim 2, wherein the preset method comprises at least one of the following: and acquiring the user login credentials through JsBridge, and acquiring the user login credentials through a software development kit provided by the target client.
4. The method for logging on the back end of the page according to claim 1, wherein after the target application end logs on the back end of the page according to the authentication credential, the method further comprises:
acquiring user information corresponding to the page, wherein the user information is at least used for indicating one of the following indications: a user name, a user head portrait and a user contact information;
and sending the user information to a page front end to indicate the page front end to load the user information.
5. The method for logging on the back end of the page according to claim 4, wherein after the target application end logs on the back end of the page according to the authentication credentials, the method further comprises:
storing the user information and the authentication voucher to a local database of a page;
and under the condition of logging in the page again, logging in the page according to the user information of the local database and the authentication certificate.
6. The method for logging on the back end of the page as claimed in claim 1, wherein after the target application end logs on the page according to the authentication credential, the method further comprises:
acquiring a login state of the rear end of the page, wherein the login state at least comprises one of the following states: logged on state, not logged on state;
and sending the login state of the rear end of the page to a target application end.
7. A login device at a back end of a page, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an authentication request sent by a front end of a page, and the authentication request is used for indicating a user login credential for logging in a target application end;
the sending module is used for sending the authentication request to a user center server so that the user center server authenticates the authentication request according to the user login credential;
the second receiving module is used for receiving the authentication certificate sent by the user center server under the condition that the authentication is passed;
and the login module is used for logging in the page at the target application terminal according to the authentication certificate.
8. The log-in device of the back end of page as claimed in claim 7, wherein said device further comprises:
the indication module is used for indicating the front end of the page to acquire the user login credentials by a preset method, wherein the user login credentials are credentials for logging in the target client; and indicating the front end of the page to generate the authentication request according to the user login credential.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
CN202110707559.8A 2021-06-24 2021-06-24 Login method and device for page back end, storage medium and electronic device Active CN113452693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110707559.8A CN113452693B (en) 2021-06-24 2021-06-24 Login method and device for page back end, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110707559.8A CN113452693B (en) 2021-06-24 2021-06-24 Login method and device for page back end, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113452693A true CN113452693A (en) 2021-09-28
CN113452693B CN113452693B (en) 2024-01-23

Family

ID=77812651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110707559.8A Active CN113452693B (en) 2021-06-24 2021-06-24 Login method and device for page back end, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113452693B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592003A (en) * 2014-10-22 2016-05-18 北京拓尔思信息技术股份有限公司 Cross-domain single sign-on method and system based on notification
WO2017107956A1 (en) * 2015-12-23 2017-06-29 北京奇虎科技有限公司 Data processing method, client and server
CN109783357A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 The method and device of test application program, computer equipment, storage medium
CN110113358A (en) * 2019-05-24 2019-08-09 全知科技(杭州)有限责任公司 A method of the operation account of application system of the identification based on single-sign-on
CN110493184A (en) * 2019-07-09 2019-11-22 深圳壹账通智能科技有限公司 The processing method of login page, device, electronic device in the client

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592003A (en) * 2014-10-22 2016-05-18 北京拓尔思信息技术股份有限公司 Cross-domain single sign-on method and system based on notification
WO2017107956A1 (en) * 2015-12-23 2017-06-29 北京奇虎科技有限公司 Data processing method, client and server
CN109783357A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 The method and device of test application program, computer equipment, storage medium
CN110113358A (en) * 2019-05-24 2019-08-09 全知科技(杭州)有限责任公司 A method of the operation account of application system of the identification based on single-sign-on
CN110493184A (en) * 2019-07-09 2019-11-22 深圳壹账通智能科技有限公司 The processing method of login page, device, electronic device in the client

Also Published As

Publication number Publication date
CN113452693B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
CN110493184B (en) Method and device for processing login page in client and electronic device
US20170161721A1 (en) Method and system for opening account based on euicc
CN103152402A (en) Method and system for logging in through mobile terminal and cloud server
CN111885115B (en) Device binding changing method and device
CN111885594B (en) Equipment binding method and device
CN105099889A (en) Order notification method, apparatus and system
CN109005159B (en) Data processing method for terminal access system server and authentication server
CN111355723B (en) Single sign-on method, device, equipment and readable storage medium
CN107809776B (en) Information processing method, device and network system
CN103595818A (en) Method and device for sharing among circle of friends
CN104301875A (en) Short message processing method and device
CN102594912A (en) Data processing method under server architecture, server and server architecture
CN105722072A (en) Business authorization method, device, system and router
CN112448956A (en) Authority processing method and device of short message verification code and computer equipment
CN111737681A (en) Resource acquisition method and device, storage medium and electronic device
CN112637221B (en) Equipment control method and device
CN109558710B (en) User login method, device, system and storage medium
CN113595992B (en) Secure binding method and system, storage medium and electronic device
CN115038062A (en) Bluetooth authentication method, device and equipment
CN112738025B (en) Device control method and apparatus, storage medium, and electronic apparatus
CN113259918A (en) Equipment binding method and system
CN109040050A (en) Data interactive method and Related product
CN113452693B (en) Login method and device for page back end, storage medium and electronic device
CN110636473A (en) Vehicle Bluetooth communication method and device, electronic equipment and readable storage medium
CN112184249B (en) User signing method, device, equipment and storage medium

Legal Events

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