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

Web routing protection method and system, terminal and storage medium

A routing and path technology, applied in the direction of transmission systems, electrical components, etc., can solve the problems of difficult maintenance and inconvenient coding in the later stage, and achieve the effect of convenient and fast positioning of problems, simple structure, and wide application prospects

Active Publication Date: 2020-11-17
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For some conditions that need to be met at the same time, for example, a user can enter the article details page only after logging in and subscribing to an article. The traditional method is not convenient, and the post-coding is not easy to maintain

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
  • Web routing protection method and system, terminal and storage medium
  • Web routing protection method and system, terminal and storage medium
  • Web routing protection method and system, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0055] figure 1 is a schematic flowchart of a method in one embodiment of the present invention. in, figure 1 The execution subject may be a web routing protection system.

[0056] Such as figure 1 As shown, the method 100 includes:

[0057] Step 110, pre-setting verification rules for various routing paths, and encapsulating the v...

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 provides a Web routing protection method and system, a terminal and a storage medium, and the method comprises the steps: presetting verification rules of various routing paths, and packaging the verification rules into an abstract method; intercepting a page skip instruction of the user; extracting user information and authority from the jump instruction; extracting a target routingpath from the jump instruction, and calling a corresponding abstract method of the directory routing path to verify the user information and permission; and skipping the skipping instruction passingthe verification to a target page through the target routing path. According to the invention, the verification rule is packaged into an abstract method, so that the routing protection in the SPA application is more flexible and convenient. And the abstract method is packaged into the middleware, so that front-end developers can conveniently and quickly position the problem, and meanwhile, the middleware is centralized together and executed in parallel, so that the maintainability of encoding is greatly improved.

Description

technical field [0001] The invention relates to the technical field of Web page jumping, and in particular to a Web route protection method, system, terminal and storage medium. Background technique [0002] SPA is a web-side single-page application, and its characteristic is that the jump between routes is not realized through the browser's forced refresh mechanism. Usually, when building a SPA single-page application, some routes need to be protected, that is, before jumping to a certain page, it is necessary to determine whether the user has permission to enter the page, if there is permission, then jump directly, if not Then jump to the page without permission or other prompting pages. This method requires permission judgment on every page that needs to be routed and redirected, which will generate a lot of redundant coding. For some conditions that need to be met at the same time, for example, a user can enter the article details page only after logging in and subscri...

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/08H04L29/06
CPCH04L67/148H04L63/102H04L67/63
Inventor 郭鹏
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
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