CN111786932B - Account login method and device, electronic equipment and computer storage medium - Google Patents

Account login method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN111786932B
CN111786932B CN201910273105.7A CN201910273105A CN111786932B CN 111786932 B CN111786932 B CN 111786932B CN 201910273105 A CN201910273105 A CN 201910273105A CN 111786932 B CN111786932 B CN 111786932B
Authority
CN
China
Prior art keywords
account
login
browser
state
information
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
CN201910273105.7A
Other languages
Chinese (zh)
Other versions
CN111786932A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910273105.7A priority Critical patent/CN111786932B/en
Publication of CN111786932A publication Critical patent/CN111786932A/en
Application granted granted Critical
Publication of CN111786932B publication Critical patent/CN111786932B/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/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0884Network architectures or network communication protocols for network security for authentication of entities by delegation of authentication, e.g. a proxy authenticates an entity to be authenticated on behalf of this entity vis-à-vis an authentication entity

Landscapes

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

Abstract

The embodiment of the invention provides an account login method, an account login device, electronic equipment and a computer storage medium. The account login method comprises the following steps: acquiring account login state information corresponding to a login account, and configuring a browser state according to the account login state information; when the browser accesses the target address, a login request capable of carrying out account login verification is generated according to the configured browser state so as to complete account login. According to the embodiment of the invention, the account login method is more convenient and quick to login.

Description

Account login method and device, electronic equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an account login method, an account login device, electronic equipment and a computer storage medium.
Background
With the development of internet technology, people increasingly rely on obtaining information from the internet and social contact. For example, browsing news web pages through a browser, logging in social media, and so forth. For some websites, the user needs to log in the registered account to obtain corresponding rights, such as browsing rights, comment rights and the like. For users, the user name and password of the account needs to be input again when the account logs in each time, so that the account switching is very complicated.
Disclosure of Invention
In view of the above, an embodiment of the present invention provides an account login scheme to solve some or all of the above problems.
According to a first aspect of an embodiment of the present invention, there is provided an account login method, including: acquiring account login state information corresponding to a login account, and configuring a browser state according to the account login state information; when the browser accesses the target address, a login request capable of carrying out account login verification is generated according to the configured browser state so as to complete account login.
According to a second aspect of an embodiment of the present invention, there is provided an apparatus for downloading an application, including: the first acquisition module is used for acquiring an icon of an application to be downloaded; the second acquisition module is used for acquiring the download address of the application to be downloaded according to the icon; and the downloading module is used for downloading the application to be downloaded from the downloading address.
According to a third aspect of an embodiment of the present invention, there is provided an electronic apparatus including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus; the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform an operation corresponding to the account login method according to the first aspect.
According to a fourth aspect of embodiments of the present invention, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the account login method according to the first aspect.
According to the account login scheme provided by the embodiment of the invention, the browser state is configured according to the acquired account login state information, so that the browser state is the state when the corresponding login account is in the login state, and when the browser accesses the target address, a login request capable of performing account login verification is generated according to the configured browser state, so that the generated login request can pass the account login verification, and the account login is completed. In the login process, the account login is completed by configuring the browser state and generating a login request which can be verified through account login according to the configured browser state, and an account and a password are not required to be input, so that the account login is simpler, and the password leakage risk can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present invention, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
Fig. 1 is a flowchart illustrating steps of an account login method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of an account login method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of an account login method according to a third embodiment of the present invention;
fig. 4 is a block diagram of an account login device according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of an account login device according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention;
FIG. 7 is a flow chart of account login through a plug-in provided on a browser in a usage scenario;
fig. 8 is an interface diagram presented after the plug-in is started.
Detailed Description
In order to better understand the technical solutions in the embodiments of the present invention, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the present invention, shall fall within the scope of protection of the embodiments of the present invention.
The implementation of the embodiments of the present invention will be further described below with reference to the accompanying drawings.
Example 1
Referring to fig. 1, a flowchart illustrating steps of an account login method according to a first embodiment of the present invention is shown.
The account login method of the embodiment comprises the following steps:
step S102: and acquiring account login state information corresponding to the login account, and configuring a browser state according to the account login state information.
The account login state information is used for indicating the browser state of the browser corresponding to the login account when the login account corresponding to the account is in a login state, so that the browser state is configured according to the account login state information when the account is needed (when the account is needed to be logged in), and the account is in the state when the account is logged in, and therefore the configured browser is convenient to log in the account.
In this embodiment, the browser state is used to indicate possible parameters and settings when the browser accesses a page, including but not limited to: cookies, web page access information, session, UA settings, proxy server settings, etc.
In a specific implementation manner, when the browser state is configured, in order to improve the convenience of login, the browser state can be automatically configured according to the indication of the account login state information through a plug-in unit arranged on the browser or an application program independent of the browser.
Step S104: when the browser accesses the target address, a login request capable of carrying out account login verification is generated according to the configured browser state so as to complete account login.
The target address may be an address accessed when the account is requested to be logged in, and the target addresses corresponding to different login accounts may be different or the same. The address may be a preset address, or may also be an address determined according to the account login status information.
When the account is required to be logged in, the target address is accessed through the configured browser, and an account login verification login request which is generated according to the configured browser state and can be performed is sent to the target address, so that a server corresponding to the target address can verify the login request, and whether the account login is allowed or not is determined.
Because the login request is a request generated according to the browser state, and the browser state is configured to be the state when the account is logged in, the login request sent to the target address can be ensured to be a request capable of completing account login through verification, and therefore the account login can be ensured to be completed.
According to the embodiment, the browser state is configured according to the acquired account login state information, so that the browser state is the state when the corresponding login account is in the login state, and when the browser accesses the target address, a login request capable of performing account login verification is generated according to the configured browser state, so that the generated login request can pass the account login verification, and the account login is completed. In the login process, the account login is completed by configuring the browser state and generating a login request which can be verified through account login according to the configured browser state, and an account and a password are not required to be input, so that the account login is simpler, and the password leakage risk can be reduced.
The account login method of the present embodiment may be performed by any suitable electronic device having data processing capabilities, including but not limited to: servers, mobile terminals (such as tablet computers, mobile phones and the like), PCs and the like.
Example two
Referring to fig. 2, a flowchart illustrating steps of an account login method according to a second embodiment of the present invention is shown.
The account login method of the present embodiment includes the foregoing steps S102 and S104.
The step S102 includes the sub-steps of:
substep S1021: and acquiring account login state information corresponding to the login account, wherein the account login state information comprises session tracking information and browser setting information in a login state.
In this embodiment, the account login status information is stored through an account configuration file, and the account login status information may be obtained from the account configuration file by analyzing the account configuration file.
The method for saving the account login state information through the account configuration file enables the account login state information to be saved and managed more conveniently, the account configuration file is convenient to transmit, when the account is required to be logged in on other equipment, the account configuration file can be conveniently transferred to the equipment which is ready to log in the account, and the account login state information is acquired through analyzing the account configuration file, so that account login is completed, and account login on different equipment is more convenient. Of course, in other embodiments, the account login status information may be stored and obtained in any other suitable manner.
In this embodiment, account login status information of one or more login accounts may be stored in the account configuration file. When the account login state information is stored, the account login state information corresponding to the login account can be obtained by matching account content (account) of the login account with account content in the account login state information. Or the corresponding relation between the login account and the account login state information can be preset by other marks.
In this embodiment, the account login status information includes session tracking information and browser setting information in a login status. Of course, in other embodiments, according to different content verified by the server during the account login, the account login status information may include other information (such as account content, a user name corresponding to the account, etc.), or only include browser setting information or session tracking information, which is not limited in this embodiment.
The session tracking information is used for storing information generated by the session between the account and the server in the login state, such as account number, password, web page browsing data, browsing time and the like. The session tracking information may be stored in any suitable manner, such as a cookie or session as previously described.
And the browser setting information in the login state is used for storing browser parameters, such as proxy server parameters, user agent parameters and the like, when the account login state is stored.
Wherein the proxy parameter is used to indicate whether the browser uses a proxy and proxy information when using the proxy. By setting the proxy server parameters, the IP address in the login request can be conveniently configured as the address indicated by the proxy server parameters, so that the account error blocking condition caused when a plurality of accounts log in through one IP address is avoided.
The User Agent parameter (UA User Agent) can be understood as the UA identification of the browser. The UA identifier usually carries information such as an operating system and version of equipment where the browser is located, a CPU type, the browser and version, a browser rendering engine, a browser language, a browser plug-in and the like, and the server can make automatic adaptation on the webpage according to the UA identifier, so that the display effect of the webpage in the browser is better.
Sub-step S1022: and configuring the browser parameters according to the browser setting information in the login state, and configuring the session tracking information into the browser to enable the browser state to be an account login state.
In this embodiment, when configuring the browser parameters, the proxy parameters and the user agent parameters may be configured by modifying the parameter values of the proxy parameters and the user agent parameters to values indicated by the browser setting information. Of course, in other embodiments, the foregoing parameters may be configured in other suitable manners, which are not limited in this embodiment.
When the session tracking information is configured in the browser, the session tracking information can be stored in a storage path of the browser for storing the session tracking information, so that the session tracking information can be simply and conveniently configured in the browser, and the configuration speed of the state of the browser is improved. Of course, in other embodiments, the session tracking information may be configured into the browser in other suitable manners, which is not limited in this embodiment.
The storage path for storing session tracking information may be different for different session tracking information and/or different browser settings. For example, if the session tracking information is a cookie, the corresponding storage path may be a path set in the browser for storing the cookie. If the session tracking information is other types of information, the storage path may be different from the cookie path, and a person skilled in the art can determine the corresponding storage path according to the specific situation, so long as the configuration of the session tracking information into the browser can be ensured.
In this embodiment, browser parameters are configured according to the browser setting information, session tracking information is configured in the browser, so that the browser state is an account login state, and further, when a target address is accessed through the configured browser, a login request generated according to the configured browser state can pass verification, thereby ensuring that account login can be completed.
By the method, according to the embodiment, the browser state is configured according to the acquired account login state information, so that the browser state is the state when the corresponding login account is in the login state, and when the browser accesses the target address, a login request capable of performing account login verification is generated according to the configured browser state, so that the generated login request can pass the account login verification, and account login is completed.
In the login process, the account login is completed by configuring the browser state and generating a login request which can be verified through account login according to the configured browser state, and an account and a password are not required to be input, so that the account login is simpler, and the password leakage risk can be reduced.
Moreover, proxy server parameters and/or user agent parameters can be conveniently configured according to browser setting information, so that when login accounts are requested on different devices, the IP addresses in the login requests are kept consistent, and further normal login accounts on different devices are ensured.
In addition, when a plurality of accounts need to be switched, only account login state information corresponding to the accounts is required to be obtained, the browser state can be automatically configured according to the account login state information, and login is completed, so that the accounts are more convenient to switch.
The account login method of the present embodiment may be performed by any suitable electronic device having data processing capabilities, including but not limited to: servers, mobile terminals (such as tablet computers, mobile phones and the like), PCs and the like.
Example III
Referring to fig. 3, a flowchart illustrating steps of an account login method according to a third embodiment of the present invention is shown.
The account login method of the present embodiment includes the steps S102 to S104 described above. The step S102 may be implemented in the manner described in the first embodiment or the second embodiment. In this embodiment, the method further includes:
step S106: and generating account login state information according to the browser state of the browser according to the received file export instruction, forming an account configuration file by the account login state information and the corresponding login account, and exporting the account configuration file.
The file export instruction is used for indicating to generate an account configuration file corresponding to the currently logged-in account and storing the account configuration file in a set path so as to be convenient for a user to use or manage.
The account profile may be generated by one skilled in the art in any suitable manner, as desired, and this embodiment is not limited thereto. In a specific implementation, the account configuration file is generated according to account login status information and a corresponding login account. The account login state information is generated according to a browser state, and the browser state can comprise proxy server parameters, user agent parameters, session tracking information corresponding to the account and the like in a browser. The login account may include account content, a user name or other identification for distinguishing between accounts, and the like.
Optionally, in order to improve confidentiality, when the account configuration file is generated, an encryption algorithm may be used to encrypt the account login status information and/or the login account.
According to the embodiment, the browser state is configured according to the acquired account login state information, so that the browser state is the state when the corresponding login account is in the login state, and when the browser accesses the target address, a login request capable of performing account login verification is generated according to the configured browser state, so that the generated login request can pass the account login verification, and the account login is completed.
In the login process, the account login is completed by configuring the browser state and generating a login request which can be verified through account login according to the configured browser state, and an account and a password are not required to be input, so that the account login is simpler, and the password leakage risk can be reduced.
In addition, when a file export instruction is received, account login state information can be generated according to the browser state, and an account configuration file can be generated and exported according to the account login state information and the login account, so that the browser state when the account is in the login state is recorded through the account configuration file, the account can be conveniently logged in on other devices, the convenience of the account in logging in different devices is improved, and account sharing can be realized under the condition that passwords are not revealed.
The account login method of the present embodiment may be performed by any suitable electronic device having data processing capabilities, including but not limited to: servers, mobile terminals (such as tablet computers, mobile phones and the like), PCs and the like.
Example IV
Referring to fig. 4, a block diagram of an account login device according to a fourth embodiment of the present invention is shown.
The account login device of the present embodiment includes an acquisition module 402 and an access module 404.
The obtaining module 402 is configured to obtain account login status information corresponding to a login account, and configure a browser status according to the account login status information.
The account login state information is used for indicating the browser state of the browser corresponding to the login account when the login account corresponding to the account is in a login state, so that the browser state is configured according to the account login state information when the account is needed (when the account is needed to be logged in), and the account is in the state when the account is logged in, and therefore the configured browser is convenient to log in the account.
The account login status information may indicate the browser status by any suitable manner, such as, but not limited to, indicating browser parameters and/or session tracking information, etc., as desired.
In a specific implementation manner, when the browser state is configured, in order to improve the convenience of login, the browser state can be automatically configured according to the indication of the account login state information through a plug-in unit arranged on the browser or an application program independent of the browser.
The access module 404 is configured to generate a login request capable of performing account login verification according to the configured browser state when the browser accesses the target address, so as to complete account login.
The target address may be an address accessed when the account is requested to be logged in, and the target addresses corresponding to different login accounts may be different or the same. The address may be a preset address, or may also be an address determined according to the account login status information.
When the account is required to be logged in, the target address is accessed through the configured browser, and an account login verification login request which is generated according to the configured browser state and can be performed is sent to the target address, so that a server corresponding to the target address can verify the login request, and whether the account login is allowed or not is determined.
Because the login request is a request generated according to the browser state, and the browser state is configured to be the state when the account is logged in, the login request sent to the target address can be ensured to be a request capable of completing account login through verification, and therefore the account login can be ensured to be completed.
According to the embodiment, the browser state is configured according to the acquired account login state information, so that the browser state is the state when the corresponding login account is in the login state, and when the browser accesses the target address, a login request capable of performing account login verification is generated according to the configured browser state, so that the generated login request can pass the account login verification, and the account login is completed. In the login process, the account login is completed by configuring the browser state and generating a login request which can be verified through account login according to the configured browser state, and an account and a password are not required to be input, so that the account login is simpler, and the password leakage risk can be reduced.
Example five
Referring to fig. 4, a block diagram of an account login device according to a fifth embodiment of the present invention is shown.
The account login device of the present embodiment includes the aforementioned acquisition module 402 and the access module 404.
Optionally, the obtaining module 402 includes a first submodule 4021 and a second submodule 4022.
The first submodule 4021 is configured to obtain account login state information corresponding to a login account, where the account login state information includes session tracking information and browser setting information in a login state.
Optionally, in this embodiment, the account login status information is information obtained from an account configuration file. The account configuration file is stored, and the account configuration file can be obtained by analyzing the account configuration file.
The method for saving the account login state information through the account configuration file enables the account login state information to be saved and managed more conveniently, the account configuration file is convenient to transmit, when the account is required to be logged in on other equipment, the account configuration file can be conveniently transferred to the equipment which is ready to log in the account, and the account login state information is acquired through analyzing the account configuration file, so that account login is completed, and account login on different equipment is more convenient. Of course, in other embodiments, the account login status information may be stored and obtained in any other suitable manner.
In this embodiment, account login status information of one or more login accounts may be stored in the account configuration file. When the account login state information is stored, the account login state information corresponding to the login account can be obtained by matching account content (account) of the login account with account content in the account login state information. Or the corresponding relation between the login account and the account login state information can be preset by other marks.
In this embodiment, the account login status information includes session tracking information and browser setting information in a login status. Of course, in other embodiments, according to different content verified by the server during the account login, the account login status information may include other information (such as account content, a user name corresponding to the account, etc.), or only include browser setting information or session tracking information, which is not limited in this embodiment.
The session tracking information is used for storing information generated by the session between the account and the server in the login state, such as account number, password, web page browsing data, browsing time and the like. The session tracking information may be stored in any suitable manner, such as a cookie or session, for example.
Optionally, the browser parameters include proxy server parameters and/or user agent parameters. The browser setting information in the login state is used for storing browser parameters in the account login state.
Wherein the proxy parameter is used to indicate whether the browser uses a proxy and proxy information when using the proxy. By setting the proxy server parameters, the IP address in the login request can be conveniently configured as the address indicated by the proxy server parameters, so that the account error blocking condition caused when a plurality of accounts log in through one IP address is avoided.
The User Agent parameter (UA User Agent) can be understood as the UA identification of the browser. The UA identifier usually carries information such as an operating system and version of equipment where the browser is located, a CPU type, the browser and version, a browser rendering engine, a browser language, a browser plug-in and the like, and the server can make automatic adaptation on the webpage according to the UA identifier, so that the display effect of the webpage in the browser is better.
The second submodule 4022 is configured to configure the browser parameter according to the browser setting information in the login state, and configure the session tracking information into the browser to enable the browser state to be an account login state.
In this embodiment, when configuring the browser parameters, the proxy parameters and the user agent parameters may be configured by modifying the parameter values of the proxy parameters and the user agent parameters to values indicated by the browser setting information. Of course, in other embodiments, the foregoing parameters may be configured in other suitable manners, which are not limited in this embodiment.
When the session tracking information is configured in the browser, the session tracking information can be stored in a storage path of the browser for storing the session tracking information, so that the session tracking information can be simply and conveniently configured in the browser, and the configuration speed of the state of the browser is improved. Of course, in other embodiments, the session tracking information may be configured into the browser in other suitable manners, which is not limited in this embodiment.
The storage path for storing session tracking information may be different for different session tracking information and/or different browser settings. For example, if the session tracking information is a cookie, the corresponding storage path may be a path set in the browser for storing the cookie. If the session tracking information is other types of information, the storage path may be different from the cookie path, and a person skilled in the art can determine the corresponding storage path according to the specific situation, so long as the configuration of the session tracking information into the browser can be ensured.
In this embodiment, browser parameters are configured according to the browser setting information, session tracking information is configured in the browser, so that the browser state is an account login state, and further, when a target address is accessed through the configured browser, a login request generated according to the configured browser state can pass verification, thereby ensuring that account login can be completed.
Optionally, the device further includes an export module 406, configured to generate account login status information according to the browser status of the browser according to the received file export instruction, and form an account configuration file from the account login status information and the corresponding login account and export the account configuration file.
The file export instruction is used for indicating to generate an account configuration file corresponding to the currently logged-in account and storing the account configuration file in a set path so as to be convenient for a user to use or manage.
The account profile may be generated by one skilled in the art in any suitable manner, as desired, and this embodiment is not limited thereto. In a specific implementation, the account configuration file is generated according to account login status information and a corresponding login account. The account login state information is generated according to a browser state, and the browser state can comprise proxy server parameters, user agent parameters, session tracking information corresponding to the account and the like in a browser. The login account may include account content, a user name or other identification for distinguishing between accounts, and the like.
Optionally, in order to improve confidentiality, when the account configuration file is generated, an encryption algorithm may be used to encrypt the account login status information and/or the login account.
According to the embodiment, the browser state is configured according to the acquired account login state information, so that the browser state is the state when the corresponding login account is in the login state, and when the browser accesses the target address, a login request capable of performing account login verification is generated according to the configured browser state, so that the generated login request can pass the account login verification, and the account login is completed.
In the login process, the account login is completed by configuring the browser state and generating a login request which can be verified through account login according to the configured browser state, and an account and a password are not required to be input, so that the account login is simpler, and the password leakage risk can be reduced.
Moreover, proxy server parameters and/or user agent parameters can be conveniently configured according to browser setting information, so that when login accounts are requested on different devices, the IP addresses in the login requests are kept consistent, and further normal login accounts on different devices are ensured.
In addition, when a plurality of accounts need to be switched, only account login state information corresponding to the accounts is required to be obtained, the browser state can be automatically configured according to the account login state information, and login is completed, so that the accounts are more convenient to switch.
When a file export instruction is received, account login state information can be generated according to the browser state, and an account configuration file is generated and exported according to the account login state information and the login account, so that the browser state when the account is in the login state is recorded through the account configuration file, the account can be conveniently logged in on other devices, the convenience of the account in login on different devices is improved, and account sharing can be realized under the condition that passwords are not revealed.
Example six
Referring to fig. 6, a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention is shown, and the specific embodiment of the present invention is not limited to the specific implementation of the electronic device.
As shown in fig. 6, the electronic device may include: a processor 602, a communication interface (Communications Interface), a memory 606, and a communication bus 608.
Wherein:
processor 602, communication interface 604, and memory 606 perform communication with each other via communication bus 608.
Communication interface 604 is used to communicate with other electronic devices, such as terminal devices or servers.
The processor 602 is configured to execute the program 610, and may specifically perform relevant steps in the above-described embodiment of the account login method.
In particular, program 610 may include program code including computer-operating instructions.
The processor 602 may be a central processing unit CPU or a specific integrated circuit ASIC (Application Specific Integrated Circuit) or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the electronic device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
A memory 606 for storing a program 610. The memory 606 may comprise high-speed RAM memory or may further comprise non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 610 may be specifically operable to cause the processor 602 to: acquiring account login state information corresponding to a login account, and configuring a browser state according to the account login state information; when the browser accesses the target address, a login request capable of carrying out account login verification is generated according to the configured browser state so as to complete account login.
In an alternative embodiment, the program 610 is further configured to cause the processor 602 to obtain account login status information corresponding to the login account, and obtain account login status information corresponding to the login account and including session tracking information and browser setting information in the login status when configuring the browser status according to the account login status information; and configuring the browser parameters according to the browser setting information in the login state, and configuring the session tracking information into the browser to enable the browser state to be an account login state.
In an alternative embodiment, the browser parameters include proxy server parameters and/or user agent parameters.
In an optional implementation manner, the target address is a preset address, or an address determined according to the account login status information.
In an optional implementation manner, the account login status information is information obtained from an account configuration file.
In an alternative embodiment, the program 610 is further configured to cause the processor 602 to generate account login status information according to the browser status of the browser according to the received file export instruction, and form the account login status information and the corresponding login account into an account configuration file and export the account login status information.
The specific implementation of each step in the procedure 610 may refer to corresponding steps and corresponding descriptions in the units in the above embodiment of the account login method, which are not described herein. It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and modules described above may refer to corresponding procedure descriptions in the foregoing method embodiments, which are not repeated herein.
According to the electronic equipment, the browser state is configured according to the acquired account login state information, so that the browser state is the state when the corresponding login account is in the login state, and when the browser accesses the target address, a login request capable of performing account login verification is generated according to the configured browser state, and the generated login request is ensured to pass through the account login verification, so that account login is completed. In the login process, the account login is completed by configuring the browser state and generating a login request which can be verified through account login according to the configured browser state, and an account and a password are not required to be input, so that the account login is simpler, and the password leakage risk can be reduced.
It should be noted that, according to implementation requirements, each component/step described in the embodiments of the present invention may be split into more components/steps, or two or more components/steps or part of operations of the components/steps may be combined into new components/steps, so as to achieve the objects of the embodiments of the present invention.
Usage scenarios
Fig. 7 shows a flowchart of account login by a plug-in provided on a browser in the present usage scenario. The account login method in the use scene comprises the following steps:
step A: and determining a login account.
As shown in fig. 7, when an account is logged in through a plug-in, the plug-in obtains an account configuration file, in one case, after the user completes the account login by filling account information (such as account content and password), an account configuration file is generated and stored according to the filled account information and browser state; in another case, account configuration files (such as account information, browser parameters, session tracking information, etc.) filled by the user are saved and imported; in yet another case, an account profile of a prior export is imported.
As shown in fig. 8, which is an interface diagram presented after the plug-in is started. After the plug-in is started, the account number stored in the plug-in can be displayed in the display interface of the plug-in, a user can select a login account number by clicking a button corresponding to the account number, and the steps B-C are executed to finish the account number login.
If the account needing to be logged in is not stored in the plug-in, an account configuration file corresponding to the account needing to be logged in can be imported by clicking a 'select file' button, a corresponding account button is generated, and the steps B-C are executed to complete the account login.
And (B) step (B): the plug-in acquires account login state information corresponding to the login account, and configures a browser state according to the account login state information.
The account login status information may be information obtained by parsing an account configuration file.
In the usage scenario, because the server determines whether to allow the account to log in according to whether the IP address and the session tracking information in the login request are legal or not when logging in the account, in the usage scenario, the account login state information is used for configuring the proxy server parameter and the session tracking information in the browser parameter. Of course, in other usage scenarios, if the server verifies other information in the login request when logging in the account, the account login status information may be used to configure other parameters in the browser accordingly.
Specifically, proxy server parameters of the browser are configured according to browser setting information in a login state recorded in account login state information, session tracking information in the account login state information is configured under a storage path of the browser for storing the session tracking information, so that an IP address in a generated login request is an IP address which can pass verification, and session tracking information which can pass verification is carried.
Proxy parameters include, but are not limited to, proxy address, proxy login name, proxy port, and proxy login password.
Step C: and enabling the browser to access the target address, and generating a login request capable of carrying out account login verification according to the configured browser state so as to complete account login.
The plug-in causes the browser to access the target address and generate a login request. The target address is an address to be accessed by the login account, and may be preset, for example, if the plug-in is used to log in an account of a website, the address of a user login page of the website may be directly set in the plug-in as a preset target address.
Of course, the target address may also be determined according to the account login status information, for example, the target address may be determined according to session tracking information in the account login status information. Therefore, the adaptability of the plug-in can be improved, and the matched target address is determined according to the login account.
When generating a login request, a matched login request can be generated according to different protocols adopted by the access target address. For example, when the target address is accessed through the http protocol, a login request can be generated according to rules specified by the http protocol, and the login request carries the IP address and session tracking information, so that the server can perform login verification, and login is completed.
Step D: and according to the received file export instruction, exporting an account configuration file.
When a user clicks an export button corresponding to a logged-in account, the plug-in receives a file export instruction, generates account login state information according to browser states (such as browser parameters and cookies), forms an account configuration file from the account login state information and a corresponding login account, and exports the account configuration file to a set path.
In the usage scene, in the account login process, the plug-in only performs local operation, the used account login state information is completely stored on the local, the account login state information is not required to be synchronized to a third party, and the leakage risk is avoided. The tent login state information can form account configuration files, can be imported and exported at any time, is convenient for a user to store and manage the account configuration files, can switch different login accounts by using different account configuration files, can exchange accounts by exchanging account configuration files, and is very friendly to large-scale account maintenance and combination work.
The above-described methods according to embodiments of the present invention may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium and to be stored in a local recording medium downloaded through a network, so that the methods described herein may be stored on such software processes on a recording medium using a general purpose computer, special purpose processor, or programmable or special purpose hardware such as an ASIC or FPGA. It is understood that a computer, processor, microprocessor controller, or programmable hardware includes a memory component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the account login methods described herein. Further, when the general-purpose computer accesses code for implementing the account login method shown herein, execution of the code converts the general-purpose computer into a special-purpose computer for executing the account login method shown herein.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present invention.
The above embodiments are only for illustrating the embodiments of the present invention, but not for limiting the embodiments of the present invention, and various changes and modifications may be made by one skilled in the relevant art without departing from the spirit and scope of the embodiments of the present invention, so that all equivalent technical solutions also fall within the scope of the embodiments of the present invention, and the scope of the embodiments of the present invention should be defined by the claims.

Claims (12)

1. An account login method, comprising:
acquiring account login state information corresponding to a login account, and configuring a browser state according to the account login state information;
When the browser accesses a target address, generating a login request capable of performing account login verification according to the configured browser state to complete account login, wherein the target address is an address accessed when requesting to login the account;
the obtaining the account login state information corresponding to the login account, and configuring the browser state according to the account login state information includes:
acquiring account login state information corresponding to a login account, wherein the account login state information comprises session tracking information and browser setting information in a login state;
and configuring the browser parameters according to the browser setting information in the login state, and configuring the session tracking information into the browser to enable the browser state to be an account login state.
2. The method of claim 1, wherein the browser parameters comprise proxy server parameters and/or user agent parameters.
3. The method according to claim 1, wherein the target address is a preset address or an address determined according to the account login status information.
4. The method of claim 1, wherein the account login status information is information obtained from an account profile.
5. The method of claim 4, wherein the method further comprises:
and generating account login state information according to the browser state of the browser according to the received file export instruction, forming an account configuration file by the account login state information and the corresponding login account, and exporting the account configuration file.
6. An account login device, comprising: the acquisition module is used for acquiring account login state information corresponding to the login account and configuring a browser state according to the account login state information;
the access module is used for generating a login request capable of performing account login verification according to the configured browser state when the browser accesses a target address so as to complete account login, wherein the target address is an address accessed when the user requests to login the account;
the acquisition module comprises:
the first sub-module is used for acquiring account login state information which corresponds to the login account and comprises session tracking information and browser setting information in a login state;
and the second sub-module is used for configuring the browser parameters according to the browser setting information in the login state, and configuring the session tracking information into the browser to enable the browser state to be an account login state.
7. The apparatus of claim 6, wherein the browser parameters comprise proxy server parameters and/or user agent parameters.
8. The device according to claim 6, wherein the target address is a preset address or an address determined according to the account login status information.
9. The apparatus of claim 6, wherein the account login status information is information obtained from an account profile.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the export module is used for generating account login state information according to the browser state of the browser according to the received file export instruction, forming an account configuration file by the account login state information and the corresponding login account, and exporting the account configuration file.
11. An electronic device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform operations corresponding to the account login method according to any one of claims 1-5.
12. A computer storage medium having stored thereon a computer program which when executed by a processor implements the account login method of any of claims 1-5.
CN201910273105.7A 2019-04-04 2019-04-04 Account login method and device, electronic equipment and computer storage medium Active CN111786932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910273105.7A CN111786932B (en) 2019-04-04 2019-04-04 Account login method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910273105.7A CN111786932B (en) 2019-04-04 2019-04-04 Account login method and device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111786932A CN111786932A (en) 2020-10-16
CN111786932B true CN111786932B (en) 2023-06-20

Family

ID=72755415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910273105.7A Active CN111786932B (en) 2019-04-04 2019-04-04 Account login method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111786932B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277451B (en) * 2022-07-28 2024-07-12 中译语通科技股份有限公司 Account login information initialization method and system based on automatic simulator
CN116680685B (en) * 2023-06-09 2024-03-08 深圳普菲特信息科技股份有限公司 User login control method, system and storage medium based on distributed storage

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015062362A1 (en) * 2013-11-01 2015-05-07 北京奇虎科技有限公司 Method, device, and system for user login

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9386011B2 (en) * 2013-08-29 2016-07-05 Aol Inc. Systems and methods for managing resetting of user online identities or accounts
US9432358B2 (en) * 2013-10-31 2016-08-30 Tencent Technology (Shenzhen) Company Limited System and method of authenticating user account login request messages
US10069812B1 (en) * 2014-03-14 2018-09-04 Intuit Inc. Technique for facilitating auto login to a website
CN103888540B (en) * 2014-03-31 2017-02-08 百度在线网络技术(北京)有限公司 Login information synchronization method, synchronized network servers and synchronizing network servers
CN104504068A (en) * 2014-12-22 2015-04-08 北京奇虎科技有限公司 Browser-based shopping information query method and browser device
CN108234415A (en) * 2016-12-21 2018-06-29 百度在线网络技术(北京)有限公司 For verifying the method and apparatus of user
CN107016074B (en) * 2017-03-24 2023-04-25 腾讯科技(深圳)有限公司 Webpage loading method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015062362A1 (en) * 2013-11-01 2015-05-07 北京奇虎科技有限公司 Method, device, and system for user login

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
保留原系统账号登录的CAS单点登录改进方法;董恒竞;宫大伟;雷远东;;电脑知识与技术(12);全文 *

Also Published As

Publication number Publication date
CN111786932A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
US11140162B2 (en) Response method and system in virtual network computing authentication, and proxy server
US10757091B2 (en) Certificate-based single sign-on (SSO) from mobile applications over the internet
CN109586969B (en) Content distribution network disaster tolerance method and device, computer equipment and storage medium
US12021930B2 (en) Systems and methods for remote management of appliances
WO2017113763A1 (en) Identity authentication method and apparatus
WO2017024842A1 (en) Internet access authentication method, client, computer storage medium
CN113905030B (en) Intranet and extranet communication method and device, intranet terminal, proxy server and storage medium
US20140019957A1 (en) Method, apparatus, and system for sharing software among terminals
WO2014008864A1 (en) Method, apparatus, and system for sharing software among terminals
CN110505188B (en) Terminal authentication method, related equipment and authentication system
US12015609B2 (en) Secure identity provider authentication for native application to access web service
CN111786932B (en) Account login method and device, electronic equipment and computer storage medium
CN109495362B (en) Access authentication method and device
CN113626789B (en) User operation request processing method and device and electronic equipment
WO2017124728A1 (en) Method and apparatus for acquiring router configuration
CN113766186B (en) Method, device, system and electronic device for skipping configuration interface of network camera
CN114285668B (en) Gate testing method and device, storage medium and electronic equipment
CN108737350B (en) Information processing method and client
CN105915639B (en) Page access method and device
CN114915565A (en) Method and system for debugging network
CN114301968A (en) Server-side access method, system, equipment and storage medium
CN108092974B (en) Internet access authentication method and device
WO2016026332A1 (en) Login processing method, apparatus and system
KR101660791B1 (en) Client device of service proving system, and service providing method therof
CN109376024B (en) Service information configuration method and device

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