Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for controlling real-time view permission of single-page application

A real-time view, single-page application technology, applied in user identity/authority verification, digital transmission systems, electrical components, etc., can solve problems such as increasing server overhead and reducing server performance

Active Publication Date: 2020-02-07
CHENGDU DBAPP SECURITY
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Both of these methods will increase server overhead and reduce server performance

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 for controlling real-time view permission of single-page application
  • Method for controlling real-time view permission of single-page application
  • Method for controlling real-time view permission of single-page application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.

[0030] Such as Figure 1~3 As shown, a method for controlling the real-time view authority of a single-page application, according to the client's request, the server obtains the client request, sets a custom header in the HTTP protocol header returned by the server, and returns it to the client; the client will serve Compare the return value of the custom header returned by the client with the stored value in the local storage to determine whether they are consistent; There is no need to request an interface to obtain all permissions of the current user, and permissions and views are not updated.

[0031] The storage value of the local storage is when the current user logged in last time, the data of the permission list returned by the server according to the request of the client; the client renders the ...

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 discloses a method for controlling real-time view permission of single-page application, which relates to the technical field of single-page application view permission control, and comprises the following steps that: a server acquires a client request, sets a custom header at a returned HTTP (Hyper Text Transport Protocol) header, and returns the custom header to a client; the client compares the return value of the custom header returned by the client with a locally stored storage value, and judges whether the return value is consistent with the locally stored storage value ornot; if not, the client requests to obtain interfaces of all authorities of the current user, and updates the authorities and views; if so, the client does not require to obtain interfaces of all authorities of the current user, and the authorities and views are not updated. According to the invention, the value of the self-defined header of the HTTP protocol returned by the server is compared with the previously stored data of the permission list, whether the authority and the view need to be updated or not is determined, and after an administrator in the single-page application modifies theauthority of the user, the view of the client is updated in real time at the next request without quitting and re-login.

Description

technical field [0001] The invention relates to the technical field of single-page application view authority control, in particular to a method for controlling real-time view authority of a single-page application. Background technique [0002] A single-page application (single-page application, SPA for short) is a model of a web application or website that interacts with users by dynamically rewriting the current page, rather than reloading an entire new page from the server traditionally. This approach avoids switching between pages interrupting the user experience, making the application more like a desktop application. In a single-page application, all necessary code (HTML, JavaScript, and CSS) is retrieved with a single page load [1], or appropriate resources are dynamically loaded and added to the page as needed (usually in response to user actions). While location hashing or the HTML5 History API could be used to provide awareness and navigation of separate logical ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08H04L9/32
CPCH04L63/0876H04L67/02H04L9/3239H04L63/168
Inventor 杨泽丰范渊吴永越郑学新刘韬
Owner CHENGDU DBAPP SECURITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products