CN110417749A - Login method, device, computer equipment and readable storage medium storing program for executing based on local area network - Google Patents

Login method, device, computer equipment and readable storage medium storing program for executing based on local area network Download PDF

Info

Publication number
CN110417749A
CN110417749A CN201910612811.XA CN201910612811A CN110417749A CN 110417749 A CN110417749 A CN 110417749A CN 201910612811 A CN201910612811 A CN 201910612811A CN 110417749 A CN110417749 A CN 110417749A
Authority
CN
China
Prior art keywords
server
terminal
logging request
login
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910612811.XA
Other languages
Chinese (zh)
Inventor
易星宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910612811.XA priority Critical patent/CN110417749A/en
Publication of CN110417749A publication Critical patent/CN110417749A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • 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/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/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The present invention discloses a kind of login method based on local area network, device, computer equipment and readable storage medium storing program for executing.This method comprises: when the equipment first login in target LAN, receive the first logging request that first terminal is sent, first logging request includes the mark and the first username and password of target LAN, and the target LAN is the local area network where the first terminal;Record the corresponding relationship between the target LAN mark and the first user name;The second logging request that second terminal is sent is received, second logging request includes the mark of target LAN, and the second terminal is in the target LAN;When determining the mark of the target LAN, there are when the record of corresponding relationship local, confirmation message is logined successfully to second terminal transmission, it is described login successfully confirmation message and be used to indicate the second terminal logined successfully by first user name, the convenient login of user can be helped, login efficiency is improved.

Description

Login method, device, computer equipment and readable storage medium storing program for executing based on local area network
Technical field
The present invention relates to field of computer technology, and in particular to a kind of login method based on local area network, device, computer Equipment and readable storage medium storing program for executing.
Background technique
In existing user's login mode, username and password is usually sent by user end to server, by server The username and password is verified, whether usually verifies the username and password and the username and password that is locally stored Unanimously, it when consistent, then logins successfully.With the continuous development of science and technology and people life increasingly promotion, terminal is client The service of offer also develops towards more and more professional direction, and the substitutability between different types of terminal in life is more next Lower, for example, smart television can more focus on meeting the needs of user is in perception, mobile phone more can focus on meeting user to just Demand in victory, tablet computer more focus on meeting with user to functionally the needs of;Corresponding same type of terminal, user can also It can possess multiple.The terminal that this results in each user to need to safeguard in daily life is more and more, and still, user is at these When using application program in terminal, need to be logged in respectively, cumbersome, this, which allows for existing login mode, becomes very It is unfriendly, poor user experience.
Summary of the invention
The purpose of the present invention is to provide a kind of login method based on local area network, device, computer equipment and readable deposit Storage media can help the convenient login of user, improve login efficiency.
The present invention is to solve above-mentioned technical problem by following technical proposals:
In a first aspect, providing a kind of login method based on local area network.This method comprises:
When the equipment first login in target LAN, the first logging request that first terminal is sent is received, described the One logging request includes the mark and the first username and password of target LAN, and the target LAN is described first whole Local area network where holding;
Record the corresponding relationship between the target LAN mark and the first user name;
The second logging request that second terminal is sent is received, second logging request includes the mark of target LAN, The second terminal is in the target LAN;
When determine the mark of the target LAN local there are when the record of corresponding relationship, Xiang Suoshu second terminal hair Send and login successfully confirmation message, it is described login successfully confirmation message and be used to indicate the second terminal pass through first user name It logins successfully.
Optionally, when target LAN first login, before receiving the first logging request that first terminal is sent, institute State method further include:
The third logging request that first terminal is sent is received, the third logging request includes the mark of the target LAN Know;
Determine the mark of the target LAN in the record that locally whether there is corresponding relationship;
When the mark corresponding relationship of the target LAN is locally not present, Xiang Suoshu first terminal sends login failure Information, it is first login that the login failure information, which is used to indicate the equipment in target LAN,.
Second aspect provides a kind of login method based on local area network.Include:
Third logging request is sent to first server, the third logging request includes the mark of the target LAN Know;
The login failure information that the first server is sent is received, the login failure information is used to indicate the target Equipment in local area network is first login;
The first logging request is sent to the first server, first logging request includes the mark of target LAN And first username and password, the target LAN are the local area network where the first terminal;
Receive the first server transmission logins successfully confirmation message, and the confirmation message that logins successfully is used to indicate It is logined successfully by first user name.
The third aspect provides a kind of login method based on local area network.Include:
When the equipment first login second server in target LAN, receives the first login that first terminal is sent and ask It asks, first logging request includes second server mark, the first username and password;
Record the corresponding relationship between the second server mark, the first username and password three;
The second logging request that second terminal is sent is received, second logging request includes second server mark;
When determine second server mark local there are when the record of corresponding relationship, Xiang Suoshu second server hair Third logging request is sent, the third logging request includes the first username and password;
Receive the second server transmission logins successfully confirmation message, and the confirmation message that logins successfully is used to indicate First user name logins successfully;
Confirmation message is logined successfully to described in second terminal transmission.
Optionally, when target LAN first login, before receiving the first logging request that first terminal is sent, institute State method further include:
The 4th logging request that first terminal is sent is received, the 4th logging request includes the mark of the second server Know;
Determine the mark of the second server in the record that locally whether there is corresponding relationship;
When the mark corresponding relationship of the second server is locally not present, Xiang Suoshu first terminal sends login failure Information, it is first login that the login failure information, which is used to indicate the equipment in target LAN,.
Fourth aspect provides a kind of login method based on local area network.Include:
The 4th logging request is sent to target LAN equipment, the 4th logging request includes the mark of second server Know;
The login failure information that the target LAN equipment is sent is received, the login failure information is used to indicate target Equipment in local area network is first login;
To the server send the first logging request, first logging request include second server mark and First username and password;
Receive the target LAN equipment transmission logins successfully confirmation message, and the confirmation message that logins successfully is used for Instruction is logined successfully by first user name.
5th aspect provides a kind of entering device based on local area network.Include:
Receiving unit is stepped on for when the equipment first login in target LAN, receiving first terminal is sent first Record request, first logging request includes the mark and the first username and password of target LAN, the target local Net is the local area network where the first terminal;
Recording unit, for recording the corresponding relationship between the target LAN mark and the first user name;
Receiving unit is also used to, and receives the second logging request that second terminal is sent, second logging request includes mesh The mark of local area network is marked, the second terminal is in the target LAN;
Transmission unit, for when determine the mark of the target LAN local there are when the record of corresponding relationship, to Second terminal transmission logins successfully confirmation message, it is described login successfully confirmation message and be used to indicate the second terminal pass through First user name logins successfully.
Optionally, the receiving unit is also used to, and receives the third logging request that first terminal is sent, and the third logs in Request includes the mark of the target LAN;
Determination unit, for determining the mark of the target LAN in the record that locally whether there is corresponding relationship;
The transmission unit is also used to, when the mark corresponding relationship of the target LAN is locally not present, Xiang Suoshu First terminal sends login failure information, and it is to step on for the first time that the login failure information, which is used to indicate the equipment in target LAN, Record.
6th aspect provides a kind of entering device based on local area network.Include:
Transmission unit, for sending third logging request to first server, the third logging request includes the mesh Mark the mark of local area network;
Receiving unit, the login failure information sent for receiving the first server, the login failure information are used Equipment in the instruction target LAN is first login;
The transmission unit is also used to, and Xiang Suoshu first server sends the first logging request, first logging request Mark and the first username and password including target LAN, the target LAN are the office where the first terminal Domain net;
The receiving unit is also used to, and receive the first server transmission logins successfully confirmation message, the login Success confirmation message is used to indicate to be logined successfully by first user name.
7th aspect provides a kind of entering device based on local area network.Include:
Receiving unit, for when the equipment first login second server in target LAN, receiving first terminal hair The first logging request sent, first logging request include second server mark, the first username and password;
Recording unit is used for, and records the corresponding pass between the second server mark, the first username and password three System;
The receiving unit is also used to, and receives the second logging request that second terminal is sent, the second logging request packet Include second server mark;
The transmission unit is also used to, and when determining the second server mark, in local, there are the records of corresponding relationship When, Xiang Suoshu second server sends third logging request, and the third logging request includes the first username and password;
The receiving unit is also used to, and receive the second server transmission logins successfully confirmation message, the login Success confirmation message is used to indicate first user name and logins successfully;
The transmission unit logins successfully confirmation message described in being also used to send to the second terminal.
Optionally, further includes:
The receiving unit is also used to, and receives the 4th logging request that first terminal is sent, the 4th logging request packet Include the mark of the second server;
Determination unit is used for, and determines the mark of the second server in the record that locally whether there is corresponding relationship;
The transmission unit is also used to, when the mark corresponding relationship of the second server is locally not present, Xiang Suoshu First terminal sends login failure information, and it is to step on for the first time that the login failure information, which is used to indicate the equipment in target LAN, Record.
Eighth aspect provides a kind of entering device based on local area network.Include:
Transmission unit, for sending the 4th logging request to target LAN equipment, the 4th logging request includes the The mark of two servers;
Receiving unit, the login failure information sent for receiving the target LAN equipment, the login failure letter Ceasing the equipment being used to indicate in target LAN is first login;
The transmission unit is also used to, and Xiang Suoshu server sends the first logging request, and first logging request includes The mark of second server and the first username and password;
The receiving unit is also used to, and receives the confirmation message that logins successfully of the target LAN equipment transmission, described It logins successfully confirmation message and is used to indicate and logined successfully by first user name.
To achieve the goals above, the present invention also provides a kind of computer equipments, including memory, processor and storage On a memory and the computer program that can run on a processor, the processor realize the above method when executing described program The step of.
To achieve the goals above, the present invention also provides a kind of computer readable storage medium, it is stored thereon with computer Program, when described program is executed by processor the step of the realization above method.
Login method based on local area network, device, computer equipment and readable storage medium storing program for executing provided by the invention, Ke Yiyou Lan device or server provide verification information when login, since the local area network or server are the terminal in local area network Shared equipment, so, the terminal in local area network can use the information, simplify the operation of user when logging on this, Even realize entire verification process be to user it is transparent, greatly improve user experience, improve login efficiency.
Detailed description of the invention
Fig. 1 is a kind of application scenarios schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of optional flow diagram of the login method according to an embodiment of the present invention based on local area network;
Fig. 3 is the optional flow diagram of another kind of the login method according to an embodiment of the present invention based on local area network;
Fig. 4 is the optional flow diagram of another kind of the login method according to an embodiment of the present invention based on local area network;
Fig. 5 is the optional flow diagram of another kind of the login method according to an embodiment of the present invention based on local area network;
Fig. 6 is a kind of optional program module signal of the entering device according to an embodiment of the present invention based on local area network Figure;
Fig. 7 is the optional program module signal of another kind of the entering device according to an embodiment of the present invention based on local area network Figure;
Fig. 8 is the optional program module signal of another kind of the entering device according to an embodiment of the present invention based on local area network Figure;
Fig. 9 is the optional program module signal of another kind of the entering device according to an embodiment of the present invention based on local area network Figure;
Figure 10 is a kind of optional hardware structure schematic diagram of computer equipment according to an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The embodiment of the present invention can be applied in scene shown in FIG. 1, which includes that (terminal may include more to terminal A, for example, terminal 111, terminal 112 and terminal 113), lan device 130 and server (server 121 and server 122).Wherein, terminal can be communicated with server by lan device 130, the terminal under same lan device 130 Can be in the same local area network, certainly, during specific implementation, the terminal under same personal area network equipment can be divided into more A local area network, the local area network of division are local area network in logic, and lan device 130 can be a logical device at this time.By Lan device 130 or server 121 provide verification information when login, due to the lan device 130 or server 121 For the shared equipment of terminal 111, terminal 112 and the terminal 113 in local area network, so, the terminal in local area network can use The information simplifies the operation of user when logging on this in embodiments of the present invention.Combined with specific embodiments below to this hair Bright embodiment is further introduced.
Embodiment one
The login method based on local area network for providing server side to the present invention with reference to the accompanying drawing is illustrated.
Fig. 2 is that the present invention is based on a kind of optional flow diagrams of the login method of local area network, as shown in Fig. 2, the party Method may comprise steps of:
S210 receives the first logging request that first terminal is sent, institute when the equipment first login in target LAN State the mark and the first username and password that the first logging request includes target LAN, the target LAN is described the Local area network where one terminal.
The embodiment of the present invention can be adapted for the system structure using C/S or B/S framework etc., which may include client End and server-side, client generally realized by terminal, such as mobile phone, laptop and PC etc., server-side generally by Server realizes that each server can realize by one or more computers.It may include multiple ends under each local area network End, the terminal of local area network pass through public gateway access an Internet, Jin Ershi with NAT (network address translation) agreement Now with the communication of server.The Common Gateway can be router or computer.
For example, each home router may be considered a Common Gateway, multiple terminals are connected under the router.
In embodiments of the present invention, determine that the equipment first login in target LAN may include various ways.For example, Terminal when logging in every time, ask at this point, first terminal sends third login to first server by all silent first login that admits a fault It asks, which includes the mark of target LAN;First server is logged in the third for receiving first terminal transmission After request, determine the mark of the target LAN in the record that locally whether there is corresponding relationship;When locally there is no target offices When the mark corresponding relationship of domain net, it is determined that equipment in target LAN is first login, at this point, first server is to first Terminal send login failure information, the login failure information be used to indicate the equipment in target LAN be first login, first After terminal receives login failure information, then the first logging request sent to server.When locally there are target LANs When identifying corresponding relationship, S240 is thened follow the steps.
S220, the corresponding relationship between record target LAN mark and the first user name.
In first server after being proved to be successful to first username and password, first user name and mesh can recorde Mark the corresponding relationship of LAN ID.Wherein, target LAN mark can be the five-tuple information or mesh of the logging request Mark the IP address etc. of local area network;User determines the first username and password, first user name when first server is registered It is recorded in first server with password.Wherein, user may include a variety of in the logon mode of first server, for example, should First server can be portal class website or platform class website, and user generally requires when the first server is registered Fill in the first username and password, wherein first user name can be cell-phone number, user's name, mailbox or identification card number etc. It is one or more.Server can be defaulted between all terminals under same local area network, mutual trust.
S230 receives the second logging request that second terminal is sent, and second logging request includes target LAN Mark, the second terminal is in the target LAN.
S240, when determine the mark of the target LAN local there are when the record of corresponding relationship, Xiang Suoshu second Terminal transmission logins successfully confirmation message, it is described login successfully confirmation message be used to indicate by first user name log at Function.
First terminal under target LAN is another under through same local area network after first server is logged When one terminal (second terminal) sends the second logging request to first server, offer username and password may not need, only The mark of offer target LAN at once, trust each other by the equipment under the same local area network of Server Default.
Wherein, it may include a variety of sides that first server, which carries out verifying according to the target LAN mark from second terminal, Formula.
In one example, first server can verify second request pair after receiving second logging request The target LAN answered identifies whether to be recorded in local, and if it exists, it is then proved to be successful, and the corresponding relationship by locally recording, It is logged in, the message that the first user successfully logs in directly is returned after logining successfully, the message which successfully logs in It may include the first user identifier.
In another example, first server can verify second request after receiving second logging request Corresponding target LAN identifies whether to be recorded in local, and if it exists, then by the corresponding user of the target LAN of local record List of file names is sent to second terminal, which is trusted users list of file names, which includes the first user name. Second terminal is shown after receiving user's list of file names, and sends the first user name that user selectes to server, the One server returns to the message that the first user successfully logs in after receiving the first selected user name.
Second terminal, can be by first user identifier to service after receiving the message that the first user successfully logs in The corresponding service of device request.
The embodiment of the present invention can be provided verification information when login by first server, since the first server is The equipment that terminal in local area network is shared, so, the terminal in local area network can use the information, be simplified with this and be logged on When user operation, or even realize entire verification process be to user it is transparent, greatly improve user experience, improve login Efficiency.
Embodiment two
The login method based on local area network for providing terminal side to the present invention with reference to the accompanying drawing is illustrated.This method with The login method based on local area network of aforementioned terminals side is corresponding, cross-referenced can understand.
Fig. 3 is that the present invention is based on a kind of optional flow diagrams of the login method of local area network, as shown in figure 3, the party Method may comprise steps of:
S310 sends third logging request to first server, and the third logging request includes the target LAN Mark.
Terminal when logging in every time, all silent first login that admits a fault, at this point, first terminal sends third to first server Logging request, the logging request include the mark of target LAN.First server is stepped in the third for receiving first terminal transmission After record request, determine the mark of the target LAN in the record that locally whether there is corresponding relationship;When locally there is no targets When the mark corresponding relationship of local area network, it is determined that equipment in target LAN is first login, at this point, first server is to the One terminal sends login failure information, and it is first login which, which is used to indicate the equipment in target LAN,.
S320, receives the login failure information that the first server is sent, and the login failure information is used to indicate institute Stating the equipment in target LAN is first login.
Terminal then needs to provide user to first server after the login failure information for receiving first server transmission Name and password, at this point it is possible to prompt user to fill in username and password, and the username and password that user is filled in passes through first Logging request is sent to first server, so that first server is verified.
S330, Xiang Suoshu first server send the first logging request, and first logging request includes target LAN Mark and the first username and password, the target LAN be the first terminal where local area network.
First server is after the first logging request for receiving terminal transmission, according to the carried in the first logging request One username and password carries out login authentication.After being verified, record target LAN mark and the first user name and Password, and confirmation message is logined successfully to terminal transmission.
S340 receives the confirmation message that logins successfully of the first server transmission, described to login successfully confirmation message use It is logined successfully in instruction by first user name.
The embodiment of the present invention can be provided verification information when login by first server, since the first server is The equipment that terminal in local area network is shared, so, the terminal in local area network can use the information, be simplified with this and be logged on When user operation, or even realize entire verification process be to user it is transparent, greatly improve user experience, improve login Efficiency.
Embodiment three
The login method based on local area network for providing local area network side to the present invention with reference to the accompanying drawing is illustrated.
Fig. 4 is that the present invention is based on a kind of optional flow diagrams of the login method of local area network, as shown in figure 4, the party Method may comprise steps of:
S410 receives first terminal is sent first when the equipment first login second server in target LAN Logging request, first logging request include second server mark, the first username and password.
In embodiments of the present invention, determine that the equipment first login second server in target LAN may include a variety of Mode.The first login that admits a fault for example, terminal when logging in every time, is all write from memory, at this point, first terminal is sent out to target LAN equipment The 4th logging request is sent, the 4th logging request includes the mark of second server;When lan device receives first terminal After the 4th logging request sent, determine the mark of second server in the record that locally whether there is corresponding relationship;Work as local There is no when the mark corresponding relationship of the second server, it is determined that and the equipment in target LAN is first login, at this point, Target LAN equipment sends login failure information to first terminal, which is used to indicate in target LAN Equipment is first login, after first terminal receives login failure information, then the first login sent to target LAN equipment Request.When local there are when the mark corresponding relationship of second server, S430 is thened follow the steps.
Server is verified according to the first username and password, after being proved to be successful, is returned to first terminal and is logined successfully Confirmation message.The message that first user successfully logs in may include the first user name.
S420 records the corresponding relationship between the second server mark, the first username and password three.
S430 receives the second logging request that second terminal is sent, and second logging request includes second server mark Know.
S440, when determine second server mark local there are when the record of corresponding relationship, Xiang Suoshu second takes Business device sends third logging request, and the third logging request includes the first username and password.
Second terminal can send the second logging request to target LAN equipment, may include in second logging request Second server mark, for target LAN equipment after receiving the second logging request, second server has been locally stored in determination The corresponding relationship of mark.Target LAN, will according to the corresponding relationship of second server mark and the first username and password Second server identifies and is sent to second server in corresponding first username and password carrying third logging request.
S450 receives the confirmation message that logins successfully of the second server transmission, described to login successfully confirmation message use It is logined successfully in instruction first user name.
Server is verified according to the first username and password, after being proved to be successful, is returned to second terminal and is logined successfully Confirmation message.The message that the second user successfully logs in may include the first user name.Second terminal is receiving the first user After the message that success logs in, corresponding service can be requested to server by first user identifier.
This can be logined successfully confirmation message and be sent to second terminal by lan device by second server.
S460 logins successfully confirmation message to second terminal transmission.
In addition, can be set and step on server or target LAN equipment on the basis of embodiment one and embodiment three Record timeliness.When time-out, the log-on message recorded in server or target LAN equipment, or stepping on record can be deleted Record information is set as failure state.The log-on message needs of failure state are reactivated.
Further, in specific implementation, terminal can determine that user opens the corresponding application of destination server or, request When the corresponding network address of destination server, terminal can be confirmed the target LAN equipment at destination server with the presence or absence of corresponding Ground record, when it is present, server can determine that user logins successfully, and the page info after logining successfully returns to terminal. Or terminal can also determine that destination server whether there is in target LAN and correspondingly record, and when it is present, target office The information of domain net equipment usage record directly sends logging request to destination server.When it be not present, terminal display logs in boundary Face, and user is prompted to input username and password.
The embodiment of the present invention can be provided verification information when login by lan device, since the lan device is The equipment that terminal in local area network is shared, so, the terminal in local area network can use the information, be simplified with this and be logged on When user operation, or even realize entire verification process be to user it is transparent, greatly improve user experience, improve login Efficiency.
Example IV
The login method based on local area network for providing terminal side to the present invention with reference to the accompanying drawing is illustrated.
Fig. 5 is that the present invention is based on a kind of optional flow diagrams of the login method of local area network, as shown in figure 5, the party Method may comprise steps of:
S510 sends the 4th logging request to target LAN equipment, and the 4th logging request includes second server Mark;
When logging in every time, all silent first login that admits a fault logs in terminal at this point, first terminal sends the 4th to server Request, the 4th logging request includes the mark of second server.Target LAN equipment is in receive that first terminal sends the After four logging requests, determine the mark of the second server in the record that locally whether there is corresponding relationship;It is not present when locally When the mark corresponding relationship of second server, it is determined that equipment in target LAN is first login, at this point, server is to the One terminal sends login failure information, and it is first login which, which is used to indicate the equipment in target LAN,.When Locally there are when the mark corresponding relationship of second server, then identified and the first user according to local existing second server Second server is identified and is sent out in corresponding first username and password carrying third logging request by the corresponding relationship of name and password Give second server.
S520 receives the login failure information that the target LAN equipment is sent, and the login failure information is for referring to Show that the equipment in target LAN is first login.
Terminal then needs after the login failure information for receiving the transmission of target LAN equipment to target LAN equipment Username and password is provided, at this point it is possible to which user is prompted to fill in username and password, and the username and password that user is filled in It is sent to target LAN equipment by the first logging request, is verified so that target LAN is sent to second server.
S530 sends the first logging request to second server, and first logging request includes the mark of second server Knowledge and the first username and password;
S540 receives the confirmation message that logins successfully of the target LAN equipment transmission, described to login successfully confirmation letter Breath is used to indicate to be logined successfully by first user name.
Target LAN equipment determines the mark of the second server after receiving the first logging request that first terminal is sent Know in the record that locally whether there is corresponding relationship;When local there are when the mark corresponding relationship of second server, then according to this Second server is identified corresponding the by the corresponding relationship of the second server existing for ground mark and the first username and password One username and password carries and is sent to second server in third logging request.Second server according to first user name and Password is verified.After being verified, confirmation message is logined successfully to terminal return by target LAN equipment.
The embodiment of the present invention can be provided verification information when login by lan device, since the lan device is The equipment that terminal in local area network is shared, so, the terminal in local area network can use the information, be simplified with this and be logged on When user operation, or even realize entire verification process be to user it is transparent, greatly improve user experience, improve login Efficiency.
Embodiment five
The login method based on local area network provided in one based on the above embodiment provides in the present embodiment a kind of based on office The entering device of domain net, specifically, Fig. 6 shows the optional structural block diagram of the entering device based on local area network, this is based on The entering device of local area network is divided into one or more program modules, one or more program module is stored in storage and is situated between In matter, and as performed by one or more processors, to complete the present invention.The so-called program module of the present invention is to refer to complete The series of computation machine program instruction section of specific function is more suitable for describing the entering device based on local area network depositing than program itself Implementation procedure in storage media, the function of each program module of the present embodiment will specifically be introduced by being described below.
As shown in fig. 6, being somebody's turn to do the entering device 600 based on local area network can include:
Receiving unit 601, for when the equipment first login in target LAN, receiving first terminal is sent first Logging request, first logging request include the mark and the first username and password of target LAN, the target office Domain net is the local area network where the first terminal;
Recording unit 602, for recording the corresponding relationship between the target LAN mark and the first user name;
Receiving unit 601 is also used to, and receives the second logging request that second terminal is sent, and second logging request includes The mark of target LAN, the second terminal is in the target LAN;
Transmission unit 603, for when determine the mark of the target LAN local there are when the record of corresponding relationship, Confirmation message is logined successfully to second terminal transmission, it is described to login successfully confirmation message to be used to indicate the second terminal logical First user name is crossed to login successfully.
Optionally, the receiving unit 601 is also used to, and receives the third logging request that first terminal is sent, the third Logging request includes the mark of the target LAN;
Determination unit, for determining the mark of the target LAN in the record that locally whether there is corresponding relationship;
The transmission unit 603 is also used to, when the mark corresponding relationship of the target LAN is locally not present, to institute It states first terminal and sends login failure information, it is to step on for the first time that the login failure information, which is used to indicate the equipment in target LAN, Record.
Embodiment six
The login method based on local area network provided in two based on the above embodiment provides in the present embodiment a kind of based on office The entering device of domain net, specifically, Fig. 7 shows the optional structural block diagram of the entering device based on local area network, this is based on The entering device of local area network is divided into one or more program modules, one or more program module is stored in storage and is situated between In matter, and as performed by one or more processors, to complete the present invention.The so-called program module of the present invention is to refer to complete The series of computation machine program instruction section of specific function is more suitable for describing the entering device based on local area network depositing than program itself Implementation procedure in storage media, the function of each program module of the present embodiment will specifically be introduced by being described below.
As shown in fig. 7, being somebody's turn to do the entering device 700 based on local area network can include:
Transmission unit 701, for sending third logging request to first server, the third logging request includes described The mark of target LAN;
Receiving unit 702, the login failure information sent for receiving the first server, the login failure information The equipment being used to indicate in the target LAN is first login;
The transmission unit 701 is also used to, and Xiang Suoshu first server sends the first logging request, and first login is asked Mark and the first username and password including target LAN are asked, the target LAN is where the first terminal Local area network;
The receiving unit 702 is also used to, and receives the confirmation message that logins successfully of the first server transmission, described to step on It records successfully confirmation message and is used to indicate and logined successfully by first user name.
Embodiment seven
The login method based on local area network provided in three based on the above embodiment provides in the present embodiment a kind of based on office The entering device of domain net, specifically, Fig. 8 shows the optional structural block diagram of the entering device based on local area network, this is based on The entering device of local area network is divided into one or more program modules, one or more program module is stored in storage and is situated between In matter, and as performed by one or more processors, to complete the present invention.The so-called program module of the present invention is to refer to complete The series of computation machine program instruction section of specific function is more suitable for describing the entering device based on local area network depositing than program itself Implementation procedure in storage media, the function of each program module of the present embodiment will specifically be introduced by being described below.
As shown in figure 8, being somebody's turn to do the entering device 800 based on local area network can include:
Receiving unit 801, for receiving first terminal when the equipment first login second server in target LAN The first logging request sent, first logging request include second server mark, the first username and password;
Recording unit 802 is used for, and records the correspondence between the second server mark, the first username and password three Relationship;
The receiving unit 801 is also used to, and receives the second logging request that second terminal is sent, second logging request It is identified including second server;
The transmission unit 803 is also used to, and when determining the second server mark, in local, there are the notes of corresponding relationship When record, Xiang Suoshu second server sends third logging request, and the third logging request includes the first username and password;
The receiving unit 801 is also used to, and receives the confirmation message that logins successfully of the second server transmission, described to step on It records successfully confirmation message and is used to indicate first user name and login successfully;
The transmission unit logins successfully confirmation message described in being also used to send to the second terminal.
Optionally:
The receiving unit 801 is also used to, and receives the 4th logging request that first terminal is sent, the 4th logging request Mark including the second server;
Determination unit is used for, and determines the mark of the second server in the record that locally whether there is corresponding relationship;
The transmission unit 803 is also used to, when the mark corresponding relationship of the second server is locally not present, to institute It states first terminal and sends login failure information, it is to step on for the first time that the login failure information, which is used to indicate the equipment in target LAN, Record.
Embodiment eight
The login method based on local area network provided in four based on the above embodiment provides in the present embodiment a kind of based on office The entering device of domain net, specifically, Fig. 9 shows the optional structural block diagram of the entering device based on local area network, this is based on The entering device of local area network is divided into one or more program modules, one or more program module is stored in storage and is situated between In matter, and as performed by one or more processors, to complete the present invention.The so-called program module of the present invention is to refer to complete The series of computation machine program instruction section of specific function is more suitable for describing the entering device based on local area network depositing than program itself Implementation procedure in storage media, the function of each program module of the present embodiment will specifically be introduced by being described below.
As shown in figure 9, being somebody's turn to do the entering device 900 based on local area network can include:
Transmission unit 901, for sending the 4th logging request to target LAN equipment, the 4th logging request includes The mark of second server;
Receiving unit 902, the login failure information sent for receiving the target LAN equipment, the login failure It is first login that information, which is used to indicate the equipment in target LAN,;
The transmission unit 901 is also used to, and Xiang Suoshu server sends the first logging request, the first logging request packet Include the mark and the first username and password of second server;
The receiving unit 902 is also used to, and receive the target LAN equipment transmission logins successfully confirmation message, institute It states to login successfully confirmation message and be used to indicate and be logined successfully by first user name.
Through the embodiment of the present invention, verification information when login can be provided by lan device or server, due to The local area network or server are the shared equipment of the terminal in local area network, so, the terminal in local area network can use the letter Breath, simplifies the operation of user when logging on this, in addition realize entire verification process be to user it is transparent, greatly improve User experience improves login efficiency.
Embodiment nine
The present embodiment also provides a kind of computer equipment, can such as execute the smart phone, tablet computer, notebook of program Computer, desktop computer, rack-mount server, blade server, tower server or Cabinet-type server are (including independent Server cluster composed by server or multiple servers) etc..As shown in Figure 10, the computer equipment 100 of the present embodiment Include, but is not limited to: memory 101, processor 102 and transceiver that connection can be in communication with each other by system bus 103, transceiver 103 is for the communication between computer equipment and computer equipment, as shown in Figure 10.It should be pointed out that figure 10 illustrate only the computer equipment 100 with component 101-103, it should be understood that being not required for implementing all show Component, the implementation that can be substituted is more or less component.
In the present embodiment, memory 101 (i.e. readable storage medium storing program for executing) includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD etc..In some embodiments, memory 101 can be the internal storage unit of computer equipment 100, such as the meter Calculate the hard disk or memory of machine equipment 100.In further embodiments, memory 101 is also possible to the outside of computer equipment 100 The plug-in type hard disk being equipped in storage equipment, such as the computer equipment 100, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..Certainly, memory 101 can be with Both including computer equipment 100 internal storage unit and also including its External memory equipment.In the present embodiment, memory 101 is logical Be usually used in storage and be installed on the operating system and types of applications software of computer equipment 100, for example, embodiment two based on local The program code etc. of the entering device of net.In addition, memory 101 can be also used for temporarily storing and export or will be defeated Various types of data out.
Processor 102 can be in some embodiments central processing unit (Central Processing Unit, CPU), Controller, microcontroller, microprocessor or other data processing chips.The processor 102 is commonly used in control computer equipment 100 overall operation.In the present embodiment, program code or processing number of the processor 102 for being stored in run memory 101 According to realize in earlier figures 3 or embodiment shown in fig. 5 server institute in step performed by terminal or embodiment shown in Fig. 2 Step performed by lan device in the step of execution or embodiment shown in Fig. 4.
Embodiment ten
The present embodiment also provides a kind of computer readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD, server, App are stored thereon with computer program, phase are realized when program is executed by processor using store etc. Answer function.The computer readable storage medium of the present embodiment is used for the entering device based on local area network, real when being executed by processor The login method based on local area network of current embodiment one, embodiment two, embodiment three or example IV.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of login method based on local area network, which is characterized in that be applied to first server, which comprises
When the equipment first login in target LAN, the first logging request that first terminal is sent is received, described first steps on Record request includes the mark and the first username and password of target LAN, and the target LAN is the first terminal institute Local area network;
Record the corresponding relationship between the target LAN mark and the first user name;
The second logging request that second terminal is sent is received, second logging request includes the mark of target LAN, described Second terminal is in the target LAN;
When determine the mark of the target LAN local there are when the record of corresponding relationship, the transmission of Xiang Suoshu second terminal is stepped on Record successfully confirmation message, it is described login successfully confirmation message and be used to indicate the second terminal logged in by first user name Success.
2. a kind of login method based on local area network, which is characterized in that be applied to terminal, which comprises
Third logging request is sent to first server, the third logging request includes the mark of the target LAN;
The login failure information that the first server is sent is received, the login failure information is used to indicate the target local Equipment in net is first login;
To the first server send the first logging request, first logging request include target LAN mark and First username and password, the target LAN are the local area network where the first terminal;
Receive the confirmation message that logins successfully that the first server sends, it is described login successfully confirmation message and be used to indicate pass through First user name logins successfully.
3. a kind of login method based on local area network, which is characterized in that be applied to lan device, which comprises
When the equipment first login second server in target LAN, the first logging request that first terminal is sent is received, First logging request includes second server mark, the first username and password, and the target LAN is described first Local area network where terminal;
Record the corresponding relationship between the second server mark, the first username and password three;
The second logging request that second terminal is sent is received, second logging request includes second server mark;
When determine second server mark local there are when the record of corresponding relationship, Xiang Suoshu second server sends the Three logging requests, the third logging request include the first username and password;
Receive the confirmation message that logins successfully that the second server sends, it is described login successfully confirmation message be used to indicate it is described First user name logins successfully;
Confirmation message is logined successfully to described in second terminal transmission.
4. a kind of login method based on local area network, which is characterized in that be applied to terminal, which comprises
The 4th logging request is sent to target LAN equipment, the 4th logging request includes the mark of second server;
The login failure information that the target LAN equipment is sent is received, the login failure information is used to indicate target local Equipment in net is first login;
To the second server send the first logging request, first logging request include second server mark and First username and password;
Receive the target LAN equipment transmission logins successfully confirmation message, and the confirmation message that logins successfully is used to indicate It is logined successfully by first user name.
5. a kind of entering device based on local area network, which is characterized in that be applied to server, comprising:
Receiving unit is asked for when the equipment first login in target LAN, receiving the first login that first terminal is sent It asks, first logging request includes the mark and the first username and password of target LAN, and the target LAN is Local area network where the first terminal;
Recording unit, for recording the corresponding relationship between the target LAN mark and the first user name;
Receiving unit is also used to, and receives the second logging request that second terminal is sent, second logging request includes target office The mark of domain net, the second terminal is in the target LAN;
Transmission unit, for when determine the mark of the target LAN local there are when the record of corresponding relationship, Xiang Suoshu Second terminal transmission logins successfully confirmation message, and the confirmation message that logins successfully is used to indicate the second terminal described in First user name logins successfully.
6. a kind of entering device based on local area network, which is characterized in that be applied to terminal, comprising:
Transmission unit, for sending third logging request to server, the third logging request includes the target LAN Mark;
Receiving unit, the login failure information sent for receiving the server, the login failure information are used to indicate institute Stating the equipment in target LAN is first login;
The transmission unit is also used to, and Xiang Suoshu server sends the first logging request, and first logging request includes target The mark of local area network and the first username and password, the target LAN are the local area network where the first terminal;
The receiving unit is also used to, and receives the confirmation message that logins successfully of the server transmission, described to login successfully confirmation Information is used to indicate to be logined successfully by first user name.
7. a kind of entering device based on local area network, which is characterized in that be applied to lan device, comprising:
Receiving unit, for when the equipment first login first server in target LAN, receiving what first terminal was sent First logging request, first logging request include first server mark, the first username and password, the target local Net is the local area network where the first terminal;
Recording unit, for recording the corresponding relationship between the first server mark, the first username and password three;
The receiving unit is also used to receive the second logging request of second terminal transmission, and second logging request includes first Server identification;
The transmission unit be also used to when determine first server mark local there are when the record of corresponding relationship, to institute It states first server and sends third logging request, the third logging request includes the first username and password;
The receiving unit is also used to receive the confirmation message that logins successfully of the first server transmission, described to login successfully really Recognize information and be used to indicate first user name and logins successfully;
The transmission unit logins successfully confirmation message described in being also used to send to the second terminal.
8. a kind of entering device based on local area network, which is characterized in that be applied to equipment, comprising:
Transmission unit, for sending the 4th logging request to target LAN equipment, the 4th logging request includes the first clothes The mark of business device;
Receiving unit, the login failure information sent for receiving the target LAN equipment, the login failure information are used Equipment in instruction target LAN is first login;
The transmission unit is also used to, and Xiang Suoshu target LAN equipment sends the first logging request, first logging request Mark and the first username and password including first server;
The receiving unit is also used to, and receive the target LAN equipment transmission logins successfully confirmation message, the login Success confirmation message is used to indicate to be logined successfully by first user name.
9. a kind of computer equipment, the computer equipment include memory, processor and storage on a memory and can be The computer program run on processor, which is characterized in that the processor realizes Claims 1-4 when executing described program The step of any one the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: described program is processed The step of any one of Claims 1-4 the method is realized when device executes.
CN201910612811.XA 2019-07-09 2019-07-09 Login method, device, computer equipment and readable storage medium storing program for executing based on local area network Pending CN110417749A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910612811.XA CN110417749A (en) 2019-07-09 2019-07-09 Login method, device, computer equipment and readable storage medium storing program for executing based on local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910612811.XA CN110417749A (en) 2019-07-09 2019-07-09 Login method, device, computer equipment and readable storage medium storing program for executing based on local area network

Publications (1)

Publication Number Publication Date
CN110417749A true CN110417749A (en) 2019-11-05

Family

ID=68360741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910612811.XA Pending CN110417749A (en) 2019-07-09 2019-07-09 Login method, device, computer equipment and readable storage medium storing program for executing based on local area network

Country Status (1)

Country Link
CN (1) CN110417749A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426980A (en) * 2013-09-05 2015-03-18 深圳市共进电子股份有限公司 Method for storing name and password of network user by router
CN105049410A (en) * 2015-05-28 2015-11-11 北京奇艺世纪科技有限公司 Method, device and system for logging in account
US20160248744A1 (en) * 2015-02-20 2016-08-25 International Business Machines Corporation System and Method for Sharing Access to a Service Within a Home Network
CN106453349A (en) * 2016-10-31 2017-02-22 北京小米移动软件有限公司 An account number login method and apparatus
CN107592288A (en) * 2016-07-08 2018-01-16 中国电信股份有限公司 For the method for multiple terminals quick registration website, intelligent gateway and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426980A (en) * 2013-09-05 2015-03-18 深圳市共进电子股份有限公司 Method for storing name and password of network user by router
US20160248744A1 (en) * 2015-02-20 2016-08-25 International Business Machines Corporation System and Method for Sharing Access to a Service Within a Home Network
CN105049410A (en) * 2015-05-28 2015-11-11 北京奇艺世纪科技有限公司 Method, device and system for logging in account
CN107592288A (en) * 2016-07-08 2018-01-16 中国电信股份有限公司 For the method for multiple terminals quick registration website, intelligent gateway and system
CN106453349A (en) * 2016-10-31 2017-02-22 北京小米移动软件有限公司 An account number login method and apparatus

Similar Documents

Publication Publication Date Title
CN109639740B (en) Login state sharing method and device based on equipment ID
CN108901022B (en) Micro-service unified authentication method and gateway
JP5300045B2 (en) Method and apparatus for managing digital identities through a single interface
CN104283843B (en) A kind of method, apparatus and system that user logs in
CN102201915B (en) Terminal authentication method and device based on single sign-on
EP3203709B1 (en) Cloud service server and method for managing cloud service server
WO2021238990A1 (en) Authentication method and apparatus, electronic device, server, program, and storage medium
CN111490981B (en) Access management method and device, bastion machine and readable storage medium
CN102045375B (en) Remote command interaction method and bastion host
CN109067789A (en) Web vulnerability scanning method, system based on linux system
US8694993B1 (en) Virtualization platform for secured communications between a user device and an application server
WO2022247751A1 (en) Method, system and apparatus for remotely accessing application, device, and storage medium
CN104468487A (en) Communication authentication method and device and terminal device
CN110839087B (en) Interface calling method and device, electronic equipment and computer readable storage medium
CN111355713B (en) Proxy access method, device, proxy gateway and readable storage medium
CN103067404B (en) A kind of method that user accesses embedded web server
CN101635707A (en) Method for providing identity management for user in Web environment and device thereof
CN106330816A (en) Method and system for logging in cloud desktop
CN109067785A (en) Cluster authentication method, device
CN107948210A (en) A kind of login method, device, client, server and medium
US11522864B1 (en) Secure identity transfer
CN114978752A (en) Weak password detection method and device, electronic equipment and computer readable storage medium
CN102299945A (en) Gateway configuration page registration method, system thereof and portal certificate server
CN111726328A (en) Method, system and related device for remotely accessing a first device
CN109327455A (en) A kind of access method of NAS device, device, equipment and readable storage medium storing program for executing

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191105