Method, system, and browser realizing cross-domain request login

A browser and cross-domain technology, applied in the Internet field, can solve problems such as inability to realize cross-domain requests, mutual calls, and insufficient flexibility in the implementation process

Active Publication Date: 2015-03-18
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF5 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] However, the above three existing cross-domain requests have the following disadvantages: jsonp cross-domain requests can only be called when the second domain provides a jsonp interface, and for non-jsonp ajax interfaces, cross-domain requests cannot be implemented; for iframe The request method of the page embedded in the second

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, system, and browser realizing cross-domain request login
  • Method, system, and browser realizing cross-domain request login
  • Method, system, and browser realizing cross-domain request login

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0046] Based on the above techniques, such as figure 1 As shown, the first embodiment of the present invention proposes a method for implementing cross-domain request login, including:

[0047] Step S101, after the browser successfully logs in to the first domain, the first domain service server obtains the authentication string of the second domain, writes the cookie of the first domain, and sends the cookie of the first domain to the browser;

[0048] The method operating environment of this embodiment involves a browser, a first domain access server, a first domain service server, and at least one second domain service server, wherein:

[0049] The browser acts as the front end to receive the user's access request, and according to the access request, it is forwarded by the first domain access server to obtain access data from the backend servers (the first domain service server and at least one second domain service server), and display it to the user.

[0050] In this em...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method, a system, and a browser realizing cross-domain request login. The method comprises: a first domain business server acquiring an authentication string of a second domain and writing in a cookie of the first domain after the browser is successful in logging in the first domain, and sending the cookie to the browser; when the browser receives an access request on the second domain, revising the domain name of the access request of the second domain to a dependence domain of the first domain with a second domain specific identification, and sending the request with the cookie of the first domain to a first domain access server; and the first domain access server determining the current request to be the access request of the second domain through domain name matching and recognition, acquiring the authentication string of the second domain from the cookie of the first domain, writing the authentication string into the second domain cookie, carrying the second domain cookie in the access request of the second domain, and transferring the access request of the second domain to a second domain business server. Thus, cross-domain authentication request is completed, so that a front end does not have a problem of cross-domain. The method, the system, and the browser are flexible to realize and are low in cost.

Description

technical field [0001] The invention relates to the field of Internet technologies, in particular to a method, system and browser for realizing cross-domain request login based on nginx (an access server). Background technique [0002] When accessing a web page through a browser, it usually involves cross-domain request access. Among them, the cross-domain request refers to the resources in one domain name site to access the resources on another different domain name site. Cross-domain request access can distribute requests to different servers, reducing the pressure on a single server to improve response speed; in addition, different business logic can be distributed to different servers to reduce load. [0003] At present, the cross-domain request methods for implementing single sign-on with authentication state mainly include JSONP cross-domain request, iframe-embedded page request method in the second domain, and server-side relay request method. [0004] Among them, J...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/06H04L9/32
CPCH04L61/106H04L63/0815H04L63/0876H04L63/10G06F16/95H04L61/4511
Inventor 温建文徐永李燕燕
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products