CN109831416A - A kind of login method and device - Google Patents

A kind of login method and device Download PDF

Info

Publication number
CN109831416A
CN109831416A CN201811615797.0A CN201811615797A CN109831416A CN 109831416 A CN109831416 A CN 109831416A CN 201811615797 A CN201811615797 A CN 201811615797A CN 109831416 A CN109831416 A CN 109831416A
Authority
CN
China
Prior art keywords
client
logging
sfsafariviewcontroller
authentication
background server
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
CN201811615797.0A
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.)
Beijing Urban Network Neighbor Information Technology Co Ltd
Beijing City Network Neighbor Technology Co Ltd
Original Assignee
Beijing City Network Neighbor 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 Beijing City Network Neighbor Technology Co Ltd filed Critical Beijing City Network Neighbor Technology Co Ltd
Priority to CN201811615797.0A priority Critical patent/CN109831416A/en
Publication of CN109831416A publication Critical patent/CN109831416A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

This application provides a kind of login method and devices.Start SFSafariViewController in the first client;The logging on authentication of the background server for logging in the first client is obtained by SFSafariViewController, the logging on authentication is after logging in background server by the login page for logging in background server in the second client in advance, and background server is returned to the second client;The request for carrying the logging on authentication is sent by SFSafariViewController;The logging on authentication is extracted from the request again;The logging on authentication is sent to the first client, so that the first client logs in background server by the logging on authentication, the first client can access background server later.Pass through the application, when needing to log in the background server of the first client in the first client, login account and login password are manually entered in the first client without user, entire login process may not need user's participation, the second client is manually booted without user, so as to simplify the operation of user, user experience is improved.

Description

A kind of login method and device
Technical field
This application involves field of computer technology, more particularly to a kind of login method and device.
Background technique
With the rapid development of technology, various APP (Application, application program) have been come into people's daily life.
Under normal conditions, the corresponding background server of each APP, if user needs to access backstage using APP Server, user needs to be manually entered login account and login password in APP, and by login account and logs in close via APP Code is sent to background server, and whether the identity for making background server verify user by login account and login password is legal, It then can be to user's open visit permission, after user can use APP access later if it is determined that the identity of user is legal Platform server.
However, it is found by the inventors that after login platform server when user need to be manually entered login account and login password, User's operation is cumbersome, causes user experience lower.
Summary of the invention
In order to solve the above technical problems, present application illustrates a kind of login method and devices.
In a first aspect, present application illustrates a kind of login methods, which comprises
Start view controller SFSafariViewController in the first client;
The background server for logging in first client is obtained by the SFSafariViewController Logging on authentication, the logging on authentication is in advance in the second client through the log in page for logging in the background server After face logs in the background server, the background server is returned to second client;
The request for carrying the logging on authentication is sent by the SFSafariViewController;
The logging on authentication is extracted from the request;
The logging on authentication is sent to first client, so that first client is stepped on by the logging on authentication Record the background server.
It is described to be obtained by the SFSafariViewController for logging in an optional implementation The logging on authentication of the background server of first client, comprising:
The first uniform resource locator of the login page is obtained by the SFSafariViewController URL;
The logging on authentication is obtained according to the first URL by the SFSafariViewController.
It is described that the login is obtained by the SFSafariViewController in an optional implementation First URL of the page, comprising:
The predetermined position storage of first client is obtained by the SFSafariViewController URL, and as the first URL, the predetermined position is used to store the login page for logging in the background server The first URL.
In an optional implementation, it is described by the SFSafariViewController according to described first URL obtains the logging on authentication, comprising:
In mounted multiple client, pass through SFSafariViewController determination and first visitor Family end can share the second client of cookie information;
The URL of the login page stored by the SFSafariViewController in second client with In corresponding relationship between cookie information, cookie information corresponding with the first URL is searched;
The logging on authentication is extracted from the cookie information by SFSafariViewController.
It is described in mounted multiple client in an optional implementation, by described Determining the second client that cookie information can be shared with first client of SFSafariViewController, packet It includes:
The corresponding client identification list of first client is obtained, the client identification list stores at least one A client identification, client corresponding to each of described client identification list client identification and first visitor Cookie information can be shared between the end of family;
Obtain the client identification in the client identification list;
Client corresponding to the client identification that will acquire is determined as second client.
It is described to be sent described in carrying by the SFSafariViewController in an optional implementation The request of logging on authentication, comprising:
Verification request is sent to the background server by the SFSafariViewController, the verification is asked It asks and carries the logging on authentication, whether the verification request is for requesting the verification logging on authentication effective;
The background server, which is received, by the SFSafariViewController is determining that the logging on authentication has The jump instruction returned after effect, the jump instruction carry the 2nd URL, and the 2nd URL carries the logging on authentication, described Jump instruction, which is used to indicate, jumps to the corresponding page of the 2nd URL;
The page access request for carrying the 2nd URL is sent by the SFSafariViewController.
In an optional implementation, the method also includes:
The logging on authentication is stored in first client.
It is described to start SFSafariViewController in the first client in an optional implementation, Include:
When starting first client, start SFSafariViewController in first client.
In an optional implementation, first client includes belonging to same manufacturer with the background server Client;Second client includes that the client of same manufacturer is not belonging to the background server.
Second aspect, present application illustrates a kind of entering device, described device includes:
Starting module, for starting view controller SFSafariViewController in the first client;
Module is obtained, for obtaining by the SFSafariViewController for logging in first client Background server logging on authentication, the logging on authentication is in advance in the second client by taking for logging in the backstage It is engaged in after the login page login background server of device, the background server is returned to second client;
First sending module carries the logging on authentication for sending by the SFSafariViewController Request;
Extraction module, for extracting the logging on authentication from the request.
Second sending module, for sending the logging on authentication to first client, so as to first client The background server is logged in by the logging on authentication.
In an optional implementation, the acquisition module includes:
First acquisition unit, for obtaining the first of the login page by the SFSafariViewController Uniform resource position mark URL;
Second acquisition unit, for obtaining institute according to the first URL by the SFSafariViewController State logging on authentication.
In an optional implementation, the first acquisition unit is specifically used for: by described SFSafariViewController obtains the URL of the predetermined position storage of first client, and as described first URL, the predetermined position are used to store the first of the login page of the background server for logging in first client URL。
In an optional implementation, the second acquisition unit includes:
Subelement is determined, for passing through the SFSafariViewController in mounted multiple client Determining the second client that cookie information can be shared with first client;
Subelement is searched, for stepping on by the SFSafariViewController what second client stored It records in the corresponding relationship between the URL and cookie information of the page, searches cookie information corresponding with the first URL;
Subelement is extracted, it is described for being extracted from the cookie information by SFSafariViewController Logging on authentication.
In an optional implementation, the determining subelement is specifically used for: it is corresponding to obtain first client Client identification list, the client identification list stores at least one client identification, the client identification column Cookie information can be shared between client corresponding to each of table client identification and first client;It obtains Take the client identification in the client identification list;Client corresponding to the client identification that will acquire is determined as described Second client.
In an optional implementation, first sending module includes:
First transmission unit, for sending school to the background server by the SFSafariViewController Request is tested, the verification request carries the logging on authentication, and whether the verification request verifies the logging on authentication for requesting Effectively;
Receiving unit, for receiving the background server determining by the SFSafariViewController The jump instruction returned after stating logging on authentication effectively, the jump instruction carry the 2nd URL, described in the 2nd URL is carried Logging on authentication, the jump instruction, which is used to indicate, jumps to the corresponding page of the 2nd URL;
Second transmission unit carries the 2nd URL's for sending by the SFSafariViewController Page access request.
In an optional implementation, described device further include:
Memory module, for storing the logging on authentication in first client.
In an optional implementation, the starting module is specifically used for: when starting first client, Start SFSafariViewController in first client.
In an optional implementation, first client includes belonging to same manufacturer with the background server Client;Second client includes that the client of same manufacturer is not belonging to the background server.
According to the third aspect of the application, a kind of electronic equipment is provided, the electronic equipment includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing login method as described in relation to the first aspect.
According to the fourth aspect of the application, a kind of non-transitorycomputer readable storage medium is provided, when the storage is situated between When instruction in matter is executed by the processor of electronic equipment, so that electronic equipment is able to carry out login side as described in relation to the first aspect Method.
According to the 5th of the application the aspect, a kind of computer program product is provided, when in the computer program product When instruction is executed by the processor of electronic equipment, so that electronic equipment is able to carry out login method as described in relation to the first aspect.
Technical solution provided by the present application can include the following benefits:
It in this application, can be the when needing to log in the first client the background server of the first client Start SFSafariViewController in one client;Then it is obtained by SFSafariViewController for stepping on The logging on authentication of the background server of the first client is recorded, which is in advance in the second client by for logging in After the login page of background server logs in background server, background server is returned to the second client;Pass through later SFSafariViewController sends the request for carrying the logging on authentication;The logging on authentication is extracted from the request again; Then the logging on authentication is sent to the first client, so that the first client logs in background server by the logging on authentication, it The first client can access background server afterwards.
By the application, when needing to log in the background server of the first client in the first client, it is not necessarily to user Login account and login password are manually entered in the first client, entire login process may not need user's participation, without User manually boots the second client, so as to simplify the operation of user, improves user experience.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of login method of the application;
Fig. 2 is a kind of step flow chart of the method for acquisition logging on authentication of the application;
Fig. 3 is a kind of step flow chart of the method for transmission request of the application;
Fig. 4 is a kind of structural block diagram of entering device of the application;
Fig. 5 is the block diagram of a kind of electronic equipment shown in the application;
Fig. 6 is the block diagram of a kind of electronic equipment shown in the application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
Referring to Fig.1, a kind of step flow chart of login method of the application is shown, this method can be applied to terminal In, which includes mobile phone, tablet computer or laptop etc., and this method can specifically include following steps:
In step s101, start SFSafariViewController in the first client;
In this application, it when needing to access the background server of the first client using the first client, needs the Background server is logged in one client, the first client could be used to access background server later.In order to enable the first visitor Family end can log in background server, this application starts firstly the need of in the first client SFSafariViewController (view controller) then executes step S102.
In this application, user can be inputted in the terminal for starting in the first client The instruction of SFSafariViewController, terminal receive the instruction, then start in the first client SFSafariViewController。
In step s 102, the backstage for logging in the first client is obtained by SFSafariViewController to take The logging on authentication of business device, which is in advance in the second client through the login page for logging in background server After logging in background server, background server is returned to the second client;
In this application, logging on authentication is often positioned in cookie, SFSafariViewController have from The ability of logging on authentication is parsed in cookie information, therefore can be obtained and be stored by SFSafariViewController Then the cookie of the logging on authentication extracts the logging on authentication from the cookie, for details, reference can be made to implementations shown in Fig. 2 Example, it is not described here in detail.
In step s 103, the request for carrying the logging on authentication is sent by SFSafariViewController;
In this application, which is located in cookie, can be extracted by SFSafariViewController The logging on authentication in the cookie information, terminal do not have the ability that logging on authentication is parsed from cookie information, therefore Terminal can not directly extract the logging on authentication from the cookie information, in order to enable the first client can obtain the login with Card needs to send a request for carrying the logging on authentication to outside by SFSafariViewController, then executes step Rapid S104.
Wherein it is possible to generate a URL (Uniform for carrying the logging on authentication by SFSafariViewController Resource Locator, uniform resource locator), a request is then generated according to the URL, for example, for obtaining page number According to request or the request of the term of validity for updating the logging on authentication etc..
In this application, the request of generation is for obtaining the logging on authentication, therefore, in order to be used to obtain with normal The request of service is taken to distinguish, the request header in the request of the application includes preset characters, such as wbmain etc..
The destination of the request can be the background server of the first client, or other equipment, the application couple This is not limited, and need to only meet and carry the logging on authentication in the request.
In step S104, the logging on authentication is extracted from the request;
In this application, terminal can identify the data in the URL, and therefore, terminal can be according to specific regular from this The logging on authentication is extracted in request.
In another embodiment of the application, the request can also be intercepted, then extracts logging on authentication from the request again.
In this application, data are sent to outside by SFSafariViewController to need via terminal, therefore, The default API that can be used in terminal intercepts the data for needing to send to outside.
In this step, in needing the request that sends via terminal, terminal can be used and detect request in the request Whether head includes that preset characters intercept the request, if not including preset characters, do not intercept if including preset characters The request, and continue to forward the request to the destination of the request.
In this application, after terminal has intercepted the request, can not also continue to send the request outward, so that should The destination of request is also just perceived less than the request, and then will not be affected to the destination of the request.
In step s105, the logging on authentication is sent to the first client, so that the first client passes through the logging on authentication Log in background server.
Wherein, client, which has logged in server, means the accessible server of client, when client is serviced Logging on authentication can be used to access server after the logging on authentication of device, it is seen then that when client has obtained the login of server Voucher is this means that client has logged in server.
In this way, in this application, after the first client obtains the logging on authentication, to be achieved that login backstage takes Business device can also use the logging on authentication to access background server.
It in this application, can be the when needing to log in the first client the background server of the first client Start SFSafariViewController in one client;Then it is obtained by SFSafariViewController for stepping on The logging on authentication of the background server of the first client is recorded, which is in advance in the second client by for logging in After the login page of background server logs in background server, background server is returned to the second client;Pass through later SFSafariViewController sends the request for carrying the logging on authentication;The logging on authentication is extracted from the request again; Then the logging on authentication is sent to the first client, so that the first client logs in background server by the logging on authentication, it The first client can access background server afterwards.
By the application, when needing to log in the background server of the first client in the first client, it is not necessarily to user Login account and login password are manually entered in the first client, entire login process may not need user's participation, without User manually boots the second client, so as to simplify the operation of user, improves user experience.
Further, in another embodiment of the application, the logging on authentication can also be stored in the first client, so that Later when the first client needs to access background server, can be obtained from the first client the stored login with Then card accesses background server using the logging on authentication.
Under normal conditions, it is often to need to immediately access the client that user starts a client purpose in the terminal Background server, in order to access the background server of the client, firstly the need of in the client after starting the client The background server of the client is logged on end.
In this application, user control terminal starts the purpose of the first client often in order to access the first client Background server, in order to enable user can access background server using the first client as early as possible, in step s101, when opening When dynamic first client, so that it may start SFSafariViewController in the first client, so that in starting first The first client can be made to log in background server after client as early as possible, so that user can use the first client as early as possible End access background server.
In another embodiment of the application, referring to fig. 2, step S102 includes:
In step s 201, the first URL of the login page is obtained by SFSafariViewController;
In the application one embodiment, there is the background server of multiple manufacturers on the market, for logging in each factory The URL of the login page of the background server of quotient is often different, and the background server that each manufacturer has oneself corresponds to Client, in the corresponding client of background server that manufacturer develops oneself, often predeterminated position in the client Place stores the URL for logging in the login page of the background server of oneself, when so as to log in background server in the client, Client can be made to obtain login page by URL, so that user inputs login account and login in login page Password logs in background server to realize in the client.
Similarly, the predetermined position in the first client is also stored with for logging in the corresponding backstage clothes of the first client Therefore first URL of the login page of business device in this step, can pass through SFSafariViewController and obtain first The URL of the predetermined position storage of client, and as the first URL.
In step S202, which is obtained according to the first URL by SFSafariViewController.
This step can be realized by following process, comprising:
2021, in mounted multiple client, pass through SFSafariViewController determination and the first client End can share the second client of cookie information;
In this application, multiple client is installed in terminal, it often can be mutual between not all client Shared cookie information, for any one mounted client, may only have part client can with the client it Between can share cookie information.It is same for other mounted each clients.
For any one mounted client, cookie will can be mutually shared between the client in advance The client identification of the client of information forms client identification list.For other mounted each clients, equally Execute aforesaid operations.
In this way, in this step, the corresponding client identification list of available first client, client identification column Table stores at least one client identification, client corresponding to each of client identification list client identification Cookie information can be shared between the first client, then obtain the client identification in the client identification list, Client corresponding to the client identification that will acquire again is determined as the second client.
The second client includes that the client of same manufacturer is not belonging to background server in this application, the first client Client including belonging to same manufacturer with background server.
For example, it is assumed that background server is 58 with the background server under city, the first client be 58 with city under Client, the second client are non-58 with the browser under city, such as safari etc., therefore, background server and the first visitor Family end belongs to 58 same cities, and the first client and the second client are not belonging to same belong to manufacturer.
2022, the URL of the login page stored by SFSafariViewController in the second client with In corresponding relationship between cookie information, cookie information corresponding with the first URL is searched;
In this application, user is in advance in the background server of logged first client of the second client, for example, in advance The login page for logging in background server is obtained in the second client, then input logs in account in the login page Number and login password, the second client receives the login account and login password that input in the login page, and is stepped on by this It records the page and sends login account and login password to background server, background server receives login account and login password, leads to Whether the identity for crossing login account and login password verification user is legal, if it is determined that the identity for going out user is legal, then to second Client returns to the logging on authentication, and the second client receives the logging on authentication, to realize that the second client logs in background service Device.
The logging on authentication can be stored in the cookie information by the second client later, then by the login page URL and the cookie information form corresponding table item, and are stored in URL and the cookie letter of the login page of the second client storage In corresponding relationship between breath, in this way, in this step, it can be by SFSafariViewController in second visitor It is searched in corresponding relationship between the URL and cookie information of the login page of family end storage corresponding with the first URL Cookie information.
2023, logging on authentication is extracted from cookie information by SFSafariViewController.
In this application, SFSafariViewController has the energy that logging on authentication is parsed from cookie information Power.
In another embodiment of the application, referring to Fig. 3, step S103 includes:
In step S301, verification request, the school are sent to background server by SFSafariViewController It tests request and carries the logging on authentication, whether which requests to be used to request to verify the logging on authentication effective;
In this application, whether effective background server can be first requested to verify the logging on authentication, if effectively, can just make Background server is accessed with the first client.
In step s 302, background server is received by SFSafariViewController and is determining that logging on authentication has The jump instruction returned after effect, the jump instruction carry the 2nd URL, and the 2nd URL carries the logging on authentication, which uses The corresponding page of the 2nd URL is jumped in instruction;
After background server receives the request, it is whether effective that the logging on authentication can be verified, such as determine the login Whether voucher expired, if not out of date, can determine that the logging on authentication is effective, if expired, can determine the login with Card is invalid.
If it is determined that the logging on authentication is effective, background server, Ke Yixiang are accessed for convenience SFSafariViewController returns to the jump instruction, after the corresponding page of the URL which carries can be The homepage etc. of platform server.
After receiving the jump instruction by SFSafariViewController, so that it may obtain the 2nd URL, then Execute step S303.
In step S303, the page access request for carrying the 2nd URL is sent by SFSafariViewController.
Due to containing the logging on authentication in the 2nd URL, so as to send in advance to external comprising the logging on authentication Request.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, the application is not limited by the described action sequence, because according to this Shen Please, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that, specification Described in embodiment belong to alternative embodiment, necessary to related movement not necessarily the application.
Referring to Fig. 4, a kind of structural block diagram of entering device of the application is shown, which can specifically include such as lower die Block:
Starting module 11, for starting view controller SFSafariViewController in the first client;
Module 12 is obtained, for obtaining by the SFSafariViewController for logging in first client The logging on authentication of the background server at end, the logging on authentication are in advance in the second client by for logging in the backstage After the login page of server logs in the background server, the background server is returned to second client;
First sending module 13 carries the logging on authentication for sending by the SFSafariViewController Request;
Extraction module 14, for extracting the logging on authentication from the request.
Second sending module 15, for sending the logging on authentication to first client, so as to first client End logs in the background server by the logging on authentication.
In an optional implementation, the acquisition module 12 includes:
First acquisition unit, for obtaining the first of the login page by the SFSafariViewController Uniform resource position mark URL;
Second acquisition unit, for obtaining institute according to the first URL by the SFSafariViewController State logging on authentication.
In an optional implementation, the first acquisition unit is specifically used for: by described SFSafariViewController obtains the URL of the predetermined position storage of first client, and as described first URL, the predetermined position are used to store the first of the login page of the background server for logging in first client URL。
In an optional implementation, the second acquisition unit includes:
Subelement is determined, for passing through the SFSafariViewController in mounted multiple client Determining the second client that cookie information can be shared with first client;
Subelement is searched, for stepping on by the SFSafariViewController what second client stored It records in the corresponding relationship between the URL and cookie information of the page, searches cookie information corresponding with the first URL;
Subelement is extracted, it is described for being extracted from the cookie information by SFSafariViewController Logging on authentication.
In an optional implementation, the determining subelement is specifically used for: it is corresponding to obtain first client Client identification list, the client identification list stores at least one client identification, the client identification column Cookie information can be shared between client corresponding to each of table client identification and first client;It obtains Take the client identification in the client identification list;Client corresponding to the client identification that will acquire is determined as described Second client.
In an optional implementation, first sending module 14 includes:
First transmission unit, for sending school to the background server by the SFSafariViewController Request is tested, the verification request carries the logging on authentication, and whether the verification request verifies the logging on authentication for requesting Effectively;
Receiving unit, for receiving the background server determining by the SFSafariViewController The jump instruction returned after stating logging on authentication effectively, the jump instruction carry the 2nd URL, described in the 2nd URL is carried Logging on authentication, the jump instruction, which is used to indicate, jumps to the corresponding page of the 2nd URL;
Second transmission unit carries the 2nd URL's for sending by the SFSafariViewController Page access request.
In an optional implementation, described device further include:
Memory module, for storing the logging on authentication in first client.
In an optional implementation, the starting module is specifically used for: when starting first client, Start SFSafariViewController in first client.
In an optional implementation, first client includes belonging to same manufacturer with the background server Client;Second client includes that the client of same manufacturer is not belonging to the background server.
It in this application, can be the when needing to log in the first client the background server of the first client Start SFSafariViewController in one client;Then it is obtained by SFSafariViewController for stepping on The logging on authentication of the background server of the first client is recorded, which is in advance in the second client by for logging in After the login page of background server logs in background server, background server is returned to the second client;Pass through later SFSafariViewController sends the request for carrying the logging on authentication;The logging on authentication is extracted from the request again; Then the logging on authentication is sent to the first client, so that the first client logs in background server by the logging on authentication, it The first client can access background server afterwards.
By the application, when needing to log in the background server of the first client in the first client, it is not necessarily to user Login account and login password are manually entered in the first client, entire login process may not need user's participation, without User manually boots the second client, so as to simplify the operation of user, improves user experience.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Fig. 5 is the block diagram of a kind of electronic equipment 800 shown in the application.For example, electronic equipment 800 can be mobile electricity Words, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building equipment are a Personal digital assistant etc..
Referring to Fig. 5, electronic equipment 800 may include following one or more components: processing component 802, memory 804, Electric power assembly 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, And communication component 816.
The integrated operation of the usual controlling electronic devices 800 of processing component 802, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 802 may include one or more processors 820 to hold Row instruction, to complete all or part of the steps of the above method.In addition, processing component 802 may include one or more modules, Convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, with convenient Interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application or method for operating on electronic equipment 800, contact data, telephone directory number According to, message, image, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or they Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing Memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of electronic equipment 800.Power supply module 806 may include power supply pipe Reason system, one or more power supplys and other with for electronic equipment 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between the electronic equipment 800 and user. In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, Multimedia component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when electronic equipment 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via logical Believe that component 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, for providing the state of various aspects for electronic equipment 800 Assessment.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, the relative positioning of component, such as institute The display and keypad that component is electronic equipment 800 are stated, sensor module 814 can also detect electronic equipment 800 or electronics The position change of 800 1 components of equipment, the existence or non-existence that user contacts with electronic equipment 800,800 orientation of electronic equipment Or the temperature change of acceleration/deceleration and electronic equipment 800.Sensor module 814 may include proximity sensor, be configured to It detects the presence of nearby objects without any physical contact.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which can be with Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between electronic equipment 800 and other equipment. Electronic equipment 800 can access the wireless network based on communication standard, such as WiFi, carrier network (such as 2G, 3G, 4G or 5G), Or their combination.In one exemplary embodiment, communication component 816 receives via broadcast channel and comes from external broadcasting management The broadcast singal or broadcast related information of system.In one exemplary embodiment, the communication component 816 further includes that near field is logical (NFC) module is believed, to promote short range communication.For example, radio frequency identification (RFID) technology, infrared data association can be based in NFC module Meeting (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 800 can be by one or more application specific integrated circuit (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of electronic equipment 800 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Fig. 6 is the block diagram of a kind of electronic equipment 1900 shown in the application.For example, electronic equipment 1900 may be provided as One server.
Referring to Fig. 6, it further comprises one or more processors that electronic equipment 1900, which includes processing component 1922, with And memory resource represented by a memory 1932, it can be by the instruction of the execution of processing component 1922 for storing, such as answer Use program.The application program stored in memory 1932 may include it is one or more each correspond to one group of instruction Module.In addition, processing component 1922 is configured as executing instruction, to execute the above method.
Electronic equipment 1900 can also include that a power supply module 1926 is configured as executing the power supply of electronic equipment 1900 Management, a wired or wireless network interface 1950 is configured as electronic equipment 1900 being connected to network and an input is defeated (I/O) interface 1958 out.Electronic equipment 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, embodiments herein can provide as method, apparatus or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to the flow chart according to the present processes, terminal device (system) and computer program product And/or block diagram describes.It should be understood that each process in flowchart and/or the block diagram can be realized by computer program instructions And/or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer programs to refer to Enable the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminal devices with A machine is generated, so that generating by the instruction that computer or the processor of other programmable data processing terminal devices execute For realizing the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
It above to a kind of login method provided herein and device, is described in detail, tool used herein The principle and implementation of this application are described for body example, the above embodiments are only used to help understand this Shen Method and its core concept please;At the same time, for those skilled in the art, according to the thought of the application, specific real Apply in mode and application range that there will be changes, in conclusion the content of the present specification should not be construed as the limit to the application System.

Claims (20)

1. a kind of login method, which is characterized in that the described method includes:
Start view controller SFSafariViewController in the first client;
Stepping on for the background server for logging in first client is obtained by the SFSafariViewController Voucher is recorded, the logging on authentication is to step in the second client by the login page for logging in the background server in advance After recording the background server, the background server is returned to second client;
The request for carrying the logging on authentication is sent by the SFSafariViewController;
The logging on authentication is extracted from the request;
The logging on authentication is sent to first client, so that first client logs in institute by the logging on authentication State background server.
2. the method according to claim 1, wherein described obtained by the SFSafariViewController It takes in the logging on authentication for the background server for logging in first client, comprising:
The first uniform resource position mark URL of the login page is obtained by the SFSafariViewController;
The logging on authentication is obtained according to the first URL by the SFSafariViewController.
3. according to the method described in claim 2, it is characterized in that, described obtained by the SFSafariViewController Take the first URL of the login page, comprising:
The URL of the predetermined position storage of first client is obtained by the SFSafariViewController, and As the first URL, the predetermined position is used to store first of the login page for logging in the background server URL。
4. according to the method described in claim 2, it is characterized in that, described pass through the SFSafariViewController root The logging on authentication is obtained according to the first URL, comprising:
In mounted multiple client, pass through SFSafariViewController determination and first client The second client of cookie information can be shared;
Pass through the URL and cookie of the SFSafariViewController login page stored in second client In corresponding relationship between information, cookie information corresponding with the first URL is searched;
The logging on authentication is extracted from the cookie information by SFSafariViewController.
5. according to the method described in claim 4, it is characterized in that, described in mounted multiple client, by described Determining the second client that cookie information can be shared with first client of SFSafariViewController, packet It includes:
The corresponding client identification list of first client is obtained, the client identification list stores at least one visitor Family end identifies, client corresponding to each of described client identification list client identification and first client Between can share cookie information;
Obtain the client identification in the client identification list;
Client corresponding to the client identification that will acquire is determined as second client.
6. the method according to claim 1, wherein described sent out by the SFSafariViewController Send the request for carrying the logging on authentication, comprising:
Verification request is sent to the background server by the SFSafariViewController, the verification request is taken With the logging on authentication, whether the verification request is for requesting the verification logging on authentication effective;
By the SFSafariViewController receive the background server determine the logging on authentication effectively it The jump instruction returned afterwards, the jump instruction carry the 2nd URL, and the 2nd URL carries the logging on authentication, described to jump Instruction, which is used to indicate, jumps to the corresponding page of the 2nd URL;
The page access request for carrying the 2nd URL is sent by the SFSafariViewController.
7. the method according to claim 1, wherein the method also includes:
The logging on authentication is stored in first client.
8. the method according to claim 1, wherein described start in the first client SFSafariViewController, comprising:
When starting first client, start SFSafariViewController in first client.
9. the method according to claim 1, wherein first client includes and the background server category In the client of same manufacturer;Second client includes that the client of same manufacturer is not belonging to the background server.
10. a kind of entering device, which is characterized in that described device includes:
Starting module, for starting view controller SFSafariViewController in the first client;
Module is obtained, after obtaining by the SFSafariViewController for logging in first client The logging on authentication of platform server, the logging on authentication are in advance in the second client by for logging in the background server Login page log in the background server after, the background server is returned to second client;
First sending module carries asking for the logging on authentication for sending by the SFSafariViewController It asks;
Extraction module, for extracting the logging on authentication from the request;
Second sending module, for sending the logging on authentication to first client, so that first client passes through The logging on authentication logs in the background server.
11. device according to claim 10, which is characterized in that the acquisition module includes:
First acquisition unit, for obtaining the first unification of the login page by the SFSafariViewController Resource Locator URL;
Second acquisition unit, for being stepped on according to the first URL acquisition by the SFSafariViewController Record voucher.
12. device according to claim 11, which is characterized in that the first acquisition unit is specifically used for: by described SFSafariViewController obtains the URL of the predetermined position storage of first client, and as described first URL, the predetermined position are used to store the first of the login page of the background server for logging in first client URL。
13. device according to claim 11, which is characterized in that the second acquisition unit includes:
Subelement is determined, for being determined in mounted multiple client by the SFSafariViewController The second client of cookie information can be shared with first client;
Search subelement, the log in page for storing by the SFSafariViewController in second client In corresponding relationship between the URL and cookie information in face, cookie information corresponding with the first URL is searched;
Subelement is extracted, for extracting the login from the cookie information by SFSafariViewController Voucher.
14. device according to claim 13, which is characterized in that the determining subelement is specifically used for: obtaining described the The corresponding client identification list of one client, the client identification list stores at least one client identification, described It can be shared between client corresponding to each of client identification list client identification and first client Cookie information;Obtain the client identification in the client identification list;Visitor corresponding to the client identification that will acquire Family end is determined as second client.
15. device according to claim 10, which is characterized in that first sending module includes:
First transmission unit is asked for sending verification to the background server by the SFSafariViewController It asks, the verification request carries the logging on authentication, and whether the verification requests to be used to request to verify the logging on authentication effective;
Receiving unit is stepped on for receiving the background server described in the determination by the SFSafariViewController The jump instruction returned after recording voucher effectively, the jump instruction carry the 2nd URL, and the 2nd URL carries the login Voucher, the jump instruction, which is used to indicate, jumps to the corresponding page of the 2nd URL;
Second transmission unit, for sending the page for carrying the 2nd URL by the SFSafariViewController Acquisition request.
16. device according to claim 10, which is characterized in that described device further include:
Memory module, for storing the logging on authentication in first client.
17. device according to claim 10, which is characterized in that the starting module is specifically used for: when starting described the When one client, start SFSafariViewController in first client.
18. device according to claim 10, which is characterized in that first client includes and the background server Belong to the client of same manufacturer;Second client includes that the client of same manufacturer is not belonging to the background server End.
19. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing such as the described in any item login methods of claim 1-9.
20. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of electronic equipment When device executes, so that electronic equipment is able to carry out such as the described in any item login methods of claim 1-9.
CN201811615797.0A 2018-12-27 2018-12-27 A kind of login method and device Pending CN109831416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811615797.0A CN109831416A (en) 2018-12-27 2018-12-27 A kind of login method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811615797.0A CN109831416A (en) 2018-12-27 2018-12-27 A kind of login method and device

Publications (1)

Publication Number Publication Date
CN109831416A true CN109831416A (en) 2019-05-31

Family

ID=66861377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811615797.0A Pending CN109831416A (en) 2018-12-27 2018-12-27 A kind of login method and device

Country Status (1)

Country Link
CN (1) CN109831416A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855655A (en) * 2019-11-06 2020-02-28 北京字节跳动网络技术有限公司 Information verification method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580380A (en) * 2014-12-15 2015-04-29 北京百度网讯科技有限公司 Synchronization method and system for logging status
CN106209853A (en) * 2016-07-13 2016-12-07 深圳市金立通信设备有限公司 The login method of a kind of application program and terminal
CN106919634A (en) * 2016-06-12 2017-07-04 阿里巴巴集团控股有限公司 Across the method and web browser of Application share data
US20180240118A1 (en) * 2017-02-23 2018-08-23 Paypal, Inc. Bridge for Communicating Data Outside of a Mobile Application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580380A (en) * 2014-12-15 2015-04-29 北京百度网讯科技有限公司 Synchronization method and system for logging status
CN106919634A (en) * 2016-06-12 2017-07-04 阿里巴巴集团控股有限公司 Across the method and web browser of Application share data
CN106209853A (en) * 2016-07-13 2016-12-07 深圳市金立通信设备有限公司 The login method of a kind of application program and terminal
US20180240118A1 (en) * 2017-02-23 2018-08-23 Paypal, Inc. Bridge for Communicating Data Outside of a Mobile Application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
58无线技术: "iOS12新功能精辟解读", 《HTTPS://WWW.SOHU.COM/A/239016691_781946/?PVID=000115_3W_A》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855655A (en) * 2019-11-06 2020-02-28 北京字节跳动网络技术有限公司 Information verification method, device, equipment and storage medium
CN110855655B (en) * 2019-11-06 2021-12-24 北京字节跳动网络技术有限公司 Information verification method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106603667B (en) Screen information sharing method and device
EP3070905B1 (en) Method and apparatus for binding device
CN105847243B (en) Method and device for accessing intelligent camera
EP2975821B1 (en) Network connection method and apparatus
CN109547480A (en) A kind of login method and device
CN106170004B (en) Method and device for processing verification code
US20170171321A1 (en) Methods and devices for managing accounts
CN106209800B (en) Equipment Authority sharing method and apparatus
CN105656948A (en) Account login method and device
CN109039990B (en) Behavior verification method and device based on verification code
CN106254467A (en) Sharing files method and device
CN106375096B (en) short message verification method and device
US20170004212A1 (en) Method and apparatus for acquiring search results
WO2017071094A1 (en) Device control method and apparatus
CN109525652B (en) Information sharing method, device, equipment and storage medium
JP2017503289A (en) Terminal verification method, apparatus, program, and recording medium
CN103914520A (en) Data query method, terminal equipment and server
CN111338971B (en) Application testing method and device, electronic equipment and storage medium
CN109814942A (en) A kind of parameter processing method and device
CN107395624B (en) Information processing method and device
CN104125267A (en) Account protection method, device and terminal equipment
CN105306567B (en) Method and device for terminal connection
CN108280342A (en) Using synchronous method with device, for applying synchronous device
CN111526129B (en) Information reporting method and device
CN109831416A (en) A kind of login 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190531