Summary of the invention
For defect of the prior art, it is an object of the invention to provide a kind of real at client
The method of now unified with webpage login, it is characterised in that including: a. steps in client executing
Record operation triggers embedded browser and opens webpage, described web displaying login page;B. institute is passed through
State webpage and send login authentication solicited message;And c. is proved to be successful, described client connects
Server, successful log.
Preferably, the embedded browser kernel of described client.
Preferably, described step c includes: identify type of webpage and according to the type of webpage identified
Resolve to obtain the first instruction information, then basis to the successful log page after being proved to be successful
Described first instruction information connects described server.
Preferably, described first instruction information includes server address and logs in key temporarily.
Preferably, described step b includes: send login authentication solicited message to combined transport service device,
Described combined transport service device communicates with described server.
According to another aspect of the present invention, a kind of realization at client and webpage unification is also provided for
The device of login, it is characterised in that including: embedded browser starter, it is used for opening
Dynamic embedded browser also opens webpage, described web displaying login page;First dispensing device,
It is for sending login authentication solicited message by webpage;And logon device, it is used for connecting
Described server.
Preferably, described logon device includes: resolver, its be used for identifying type of webpage and
Resolve to obtain to the successful log page after being proved to be successful according to the type of webpage identified
First instruction information;Attachment means, it is for connecting described service according to described first instruction information
Device.
Preferably, described first instruction information includes server address and logs in key temporarily.
Preferably, described first dispensing device includes: the 3rd dispensing device, and it is for taking to through transport
Business device sends login authentication solicited message, and described combined transport service device communicates with described server.
The present invention makes user at client by the embedded browser kernel of client and webpage is stepped on
The method in land is consistent, reduces becoming that the two kinds of Sign-On mechanism exploitations of client and webpage are safeguarded
This.In yet another aspect, for the multi-platform large-scale application combining operation, the present invention also solves
Client is multi-platform is difficult to the unified problem logged in so that user can be with appointing at the client
The account of one platform logs in.
Detailed description of the invention
The detailed description with reference to the following drawings, non-limiting example made by reading, this
Bright other features, objects and advantages will become more apparent upon:
Fig. 1 and Fig. 2 shows in prior art and passes through client game server by user
Flow chart and network topology schematic diagram.Specifically, client log in logical server have
3 steps: step S101, client is passed through socket, is connected the gateway server specified;
Step S102 gateway server sends a logical server ip list to client;And step
Rapid S103 client selects the ip that can use from list, logs on logical server.Similar
, when user uses webpage to log in, first connect is web server, by web
The account of user is verified and is returned to by the ip address list of logical server by server
User, user selects ip address to connect logical server further.More specifically, existing visitor
Family end logs in topological diagram as in figure 2 it is shown, Fig. 2 shows client 1, gateway server 2 with
And logical server 3, client by with the interactive selection logical server of gateway server
Ip address is also ultimately connected to logical server to log in client and to use corresponding application, clothes
Business, game etc..Log in yet with client log in webpage generally use different mechanism with
And different algorithms.More cost is typically required in its exploitation and maintenance process.
The present invention is by solving this problem at the embedded browser kernel of client, specifically,
Bring out client and realize the method that log in unified with webpage as shown in Figure 3.Fig. 3 shows 3
Step, is first carried out step S301, triggers embedded browser at client executing register
Open webpage, described web displaying login page.Step S302, is sent by described webpage
Login authentication solicited message.Step S303, is proved to be successful, described client Connection Service device,
Successful log.It will be appreciated by those skilled in the art that described client is embedded clear by browser kernel
Look at device.Preferably, described client embedded IE kernel, namely Trident(is also called
MSHTML), it is the web browser that carries of the Windows (Windows) of Microsoft
The typesetting engine of InternetExplorer.Trident engine is designed to a component software
(module), can be added to the function of web page browsing in their independently developed application program.Micro-
Soft propose one be referred to as The Component Object Model (COM) software interface framework.For other
The application program (such as: C++ and .NET) of the The Component Object Model development environment held accesses and compiles
Collect webpage.Such as, C++ the program write can add in browser control part, and passes through
The currently displaying web page contents on a web browser of Trident engine access and the various elements of webpage
Value, from browser control part trigger event also can be captured by program and process.Described visitor
Family end passes through Trident module, and the interface using Trident to provide carrys out embedded Trident kernel.
Less preferably, described client embedded Webkit kernel, Webkit kernel comprises three parts,
WebCore, JavaSriptCore, Webkit.Wherein, WebCore is the core of Webkit
Part, it achieves the modelling to document, and JavaSriptCore is clearly JavaSript
The realization supported.And Webkit part contains the reality that Webkit is encapsulated by a lot of different platform
Existing, i.e. taken out with browser institute can the realization of direct some the most corresponding concepts, e.g.,
WebView, WebPage, WebFrame etc..This three part together constitutes Webkit.Institute
When stating the embedded described Webkit kernel of client, the interface provided by Webkit kernel, with
Webkit part in described Webkit kernel carries out communication.The most excellently, in described client
Embedding Gecko kernel.Gecko is the webpage layout engine that a set of open source code, C++ write.
Made by version browser after Mozilla family web browser and Netscape6 at present
With.This set typesetting engine provides the application that an abundant routine interface is correlated with for the Internet
Program uses, such as: web browser, html editor, client/server etc..
The routine interface embedded Gecko kernel that described client can be provided by Gecko kernel.This
Skilled person can realize more change case according to the content that present invention teach that, at this not
Give and repeating.
Fig. 4 illustrates according to a specific embodiment of the present invention, at client realize with
The sequential chart of the method for the login that webpage is unified.Specifically, this graph show that client 1, web
Server 2' and logical server 3 cooperation perform 8 steps.The most described client 1 is held
Row step 1, triggers the embedded displaying web page through browser of client, and described webpage is login page.
It will be appreciated by those skilled in the art that preferably, user is direct at client-side program after opening client
Display box shows login page.In a change case, user clicks on after opening client and steps on
Land button triggers built-in browser, shows login page in client-side program display box.Another change
Changing in example, described user uses client-side program, owing to network outage or other reasons need weight
When newly logging in, trigger built-in browser, in client-side program display box, show login page.
The most described client 1 sends user account and user cipher etc. to described web server 2'
Information.Described user account and user cipher preferably, are inputted by user.One change case
In, described user account and user cipher are stored in the embedded browser of described client
In cookie, user clicks on and logs in, then directly transmit.In another change case, for user
The safety of account, is encrypted user account and password before sending, prevents user profile
Transmitting procedure is obtained by other people.Described web server 2' receives described user account
And after password, perform step 3, user account and password are verified.If described user
Account matches with user cipher, then user account is proved to be successful, described web server 2'
Perform step 4, using described logical server IP address list and log in key as stepping on temporarily
Land success page parameter sends to described client 1.If described user account is with user cipher not
Mate, or user account does not exists, then send an information, described information to user
Prompting user logs in failure, and asks user again to log in.If user account is proved to be successful, step
After rapid 4, described client 1 performs step 5, resolves and logs in success page with described in acquisition
Logical server IP address list and temporarily log in key, it is preferable that the logic after parsing
Server ip address list shows in client window, takes in described logic for user
Business device IP address list selects one.Afterwards, performing step 6, described client 1 will be faced
Shi Denglu key sends to the logical services corresponding with the logical server IP address that user selects
Device 3.Described logical server 3 receives described after logging in key temporarily, performs step 7,
The described key that temporarily logs in is verified.Specifically, described in it will be appreciated by those skilled in the art that
Log in key temporarily, log in code (logging in key) the most temporarily, be one and pass through encryption
Character string, the inside comprises temporal information during Sign-On authentication.Game client utilizes this string character
Logging in game logic server, logical server can verify that this string logs in effectiveness and the timeliness of code
Property (one logs in code, it is preferable that in 2 minutes can only be generated at it effectively).Checking
After completing, performing step 8, described logical server 3 is connected with described client.
Specifically, in a change case of the present embodiment, after step 3, described web
Server 2' performs step 4', if user account and user cipher are proved to be successful, then and direct root
According to current network state, user terminal and the described logical server 3 at described client 1 place
Physical distance and/or route distance and/or the load etc. of described logical server, directly will be suitable
Close the IP address of the logical server of described client 1 and log in key as logging in temporarily
Successfully webpage parameter sends to described client.Described client 1 performs step 5', directly
Resolve described logical server IP address and log in key temporarily, the most described client 1
Perform step 6', by described log in temporarily key send to patrolling that described IP address adapts
Collect server 3.
Fig. 5 illustrates according to a specific embodiment of the present invention, multi-platform combines operation
In application, at client, realize the sequential chart of the login method unified with webpage.Specifically,
This graph show that client 1, through transport web server 4, web server 2' and logic clothes
Business device 3 cooperation performs 13 steps.The most described client 1 performs step 1, triggers client
Holding embedded displaying web page through browser, described webpage is login page.It will be appreciated by those skilled in the art that
Preferably, directly in client-side program display box, landing page is shown after user opens client
Face.In a change case, user clicks on Button Login after opening client and triggers built-in browsing
Device, shows login page in client-side program display box.In another change case, described user makes
With client-side program, when needing again to log in due to network outage or other reasons, trigger built-in
Browser, shows login page in client-side program display box.The most described client 1 to
Described through transport web server 4 sends the information such as user account and user cipher.Described user
Account and user cipher preferably, are inputted by user.In one change case, described user's account
Number and user cipher be stored in the cookie of the embedded browser of described client, user click on
Log in, then directly transmit.In another change case, for the safety of user account, sending
Before user account and password are encrypted, prevent user profile by other in transmitting procedure
People obtains.More specifically, the account of described user input is preferably, participating in for described user
The described user account combined on the arbitrary platform of operation and password.It will be appreciated by those skilled in the art that
Described through transport web server 4 operates alternately according to what each platform was made an appointment.Preferably,
Described through transport web server 2' selects the platform inputting account and this platform web according to user
Server interacts.Performing step 4 after step 3, described web server 2' is to described
Through transport web server 4 sends described logical server IP address list.It is step 5 afterwards,
Described through transport web server 4 using described logical server IP address list as webpage parameter
Send to described client 1.Described client 1 performs step 6, analyzing web page parameter acquiring
Described logical server IP address list, it is preferable that the logical server IP address after parsing
List shows in client window, for user at described logical server IP address column
Table selects one.Afterwards, performing step 7, described through transport web server 4 is to described
Web server 2' sends described user account and user cipher, described web server 2'
Step 8 is performed, to described user account and password after receiving described user account and password
Verify.It will be appreciated by those skilled in the art that described web server 2' and a data base are connected
Connecing, described database purchase has user account and the user cipher of each platform, described through transport
Described user account is sent to described web server by web server 4 with described user cipher
After 2', described user account is verified alternately by described web server 2' with described data base.
If being proved to be successful, performing step 9 and logging in the key webpage ginseng as successful log using described temporarily
Number sends to described client 1.Performing step 10 afterwards, described client 1 analyzing web page obtains
Key is logged in described in taking.Then being step 11, described client 1 sends logging in key temporarily
To the logical server 3 that the logical server IP address that user selects is corresponding.Described logical services
Device 3 receives described after logging in key temporarily, performs step 12, logs in key to described temporarily
Verify.After having verified, perform step 13, described logical server 3 and described client
End is connected.
Specifically, in a change case of the present embodiment, after step 3, described web
Server 2' performs step 4', according to current network state, the user at described client 1 place
The physical distance of terminal and described logical server 3 and/or route distance and/or described logic clothes
The load etc. of business device, directly sends out the IP address being suitable for the logical server of described client 1
Deliver to described through transport web server 4.Described through transport web server 4 performs step
5', is sent directly to described client 1 using described IP address as webpage parameter.
In the another change case of the present embodiment, described through transport web server 4 performs step
4'', sends extremely described web server 2' by described user account and user cipher and verifies.
Described web server 2' performs step 5'', verifies described user account, if verifying into
Merit then performs step 6'', IP address and the described key that temporarily logs in of logical server is sent out
Deliver to described through transport web server 4.Step is performed afterwards by described through transport web server 4
7'' using described IP address and described log in temporarily key as the successful log page webpage join
Number sends to described client 1.The most described client 1 performs the step 11 shown in Fig. 5,
Do not repeat them here.
In another change case of the present embodiment, described through transport web server 4 combines operation with each
The server of platform interacts and described user is inputted account and password is verified, checking
Sending an instruction information to described web server 2' after success, the instruction of described instruction information is described
User account is proved to be successful, and described web server 2' receives the backward described visitor of described instruction information
Family end sends and logs in key temporarily.
It will be appreciated by those skilled in the art that those skilled in the art combine prior art and above-mentioned reality
Execute example and can realize described change case, do not repeat them here.Such change case has no effect on this
The flesh and blood of invention, does not repeats them here.
Fig. 6 illustrates according to a specific embodiment of the present invention, multi-platform combines operation
In application, at client, realize the network topology schematic diagram of the login method unified with webpage.
Concrete, this graph show that client 1, through transport web server 4, web server 2' with
And logical server 3.Described client 1 is handed over described through transport web server 4 by network
Carry out Sign-On authentication mutually, log in key to obtain alternately with described web server 2' temporarily, with
Described logical server 3 completes to connect to enter application program alternately.Described through transport web server
4 have communicated described visitor by network with described client and described web server 2'
Information processing between family end 1 and described web server 2 and forwarding etc..Described web takes
Business device 2' is communicated with described through transport web server 4 and described client 1 by network
Complete described client 1 logs in flow process.Described logical server 3 and described client 1 phase
Communication, and complete to connect.
Specifically, described client 1, through transport web server 4, web server 2' and
Logical server 3 is achieved by the steps of the login that realization is unified with webpage at client,
The logon operation of wherein said client 1 is completed by described client lander:
1. client 1 lander embedded major browsers kernel (such as IE kernel etc.), loads spy
Determine the login page that through transport platform is specified.User inputs account and code entry through transport platform.
2. through transport web server 4 obtains service area list from web server 2', and by list
Pass to client 1 lander of user.User selects a service area to log in.
3. through transport web server 4 is mutual with web server 2', carries out account Sign-On authentication.
4. Sign-On authentication is complete, and web server 2' generates and logs in password temporarily, is sent to client
Hold 1 lander.
5. client 1 lander described in utilizes and logs in the logical server that code entry is specified.
Further, in a change case of the present embodiment, client 1 lander is resolving
During the page, it is contemplated that the green of program and safety, use URL address and html content
Double verification perform to log in flow process.Specifically, it will be appreciated by those skilled in the art that client
Lander is the program of an embedded browser kernel, its all behaviors, and surface is required for
Embedded web page controls.But some function, such as starts a client and (starts
Exe), it is unsafe operation for browser, on the computer of user, it is more likely that
Banned fall.Preferably.Client lander and web server agreement url address format and html
Content of pages, client lander is resolved to specific format and content, just walks around embedded clear
The various security restriction that device kernel of looking at is arranged with its, it is not necessary to user changes the safety of browser and sets
Put, just can reach to log in the purpose of client.
Fig. 7 illustrates according to a specific embodiment of the present invention, multi-platform combines fortune
In the application of battalion, at client, realize the structural representation of the entering device unified with webpage.
It will be appreciated by those skilled in the art that described logon device and described client lander.Described log in
Device 11 includes three devices: embedded browser starter 111, the first dispensing device 112
And logon device 113.Described embedded browser starter 111 is used for starting embedded browsing
Device also opens webpage, described web displaying login page.Described first dispensing device 112 is used for
Login authentication solicited message is sent by webpage.Described logon device 113 is used for connecting described clothes
Business device.Further, described logon device 113 includes two devices: resolver 1131 with
And attachment means 1132.Described resolver 1131 is used for identifying type of webpage and according to being known
The successful log page after being proved to be successful is resolved to obtain the first instruction by other type of webpage
Information.Described type of webpage includes following types of one: WML;HTML;CHTML;
EHTML;Or XHTML.Described attachment means 1132 is for according to described first instruction letter
Breath connects described server, and wherein said first instruction information includes server address and steps on temporarily
Land key.Described first dispensing device 112 also includes a device, the 3rd dispensing device 1121.
Described 3rd dispensing device 1121 is for sending login authentication solicited message, institute to combined transport service device
State combined transport service device to communicate with described server.
Above the specific embodiment of the present invention is described.It is to be appreciated that the present invention
Being not limited to above-mentioned particular implementation, those skilled in the art can be at the model of claim
Making various deformation or amendment in enclosing, this has no effect on the flesh and blood of the present invention.