A configurable interface access control method

A technology of interface access and authority control, applied in the direction of instruments, digital data authentication, electrical digital data processing, etc., can solve problems such as bloated code, loss of flexibility, and inability to control user access to the back-end interface, to achieve flexible authority control, Improved reusability, less invasive effects

Active Publication Date: 2019-01-08
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF11 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the front-end hiding method can be used to realize that different users see different menus, it is impossible to control the user's access to the back-end interface
If hard-coding is used, the logic of menu access is written in the server code, and the flexibility is lost, and the code will become bloated

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
  • A configurable interface access control method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0023] like figure 1 As shown, a configurable interface access control method includes the following steps:

[0024] S1. Create an interface database, including all interface authorization identifiers;

[0025] S2. Create a user table to store user information and roles;

[0026] S3. Create an association table between user roles and interface access, the association table includes a role association table for storing roles, an interface association table for storing interfaces, and a user association table for storing the association relationship between roles and interfaces, The association table enables a role to access multiple interfaces;

[0027] S4. Add a permission identifier to each external interface, and the permission identifier is in one-to-one correspondence with the interface permission identifier in the interface database;

[0028] S5, the user logs in, and the interface database obtains the set of interface access permissions owned by the user through the u...

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 configurable interface access authority control method, comprising the following steps: S1, an interface database is created, including all interface authority identifiers; S2, a user table is created to store the user's information and the user's role; S3, an association table accessed by roles and interfaces is created; S4, a right identification is added to each external interface, wherein the right identification corresponds to the right in the interface database one by one; S5, the user logs in, and the interface database acquires the interface access authority set owned by the user, and caches the corresponding data; S6, the user accesses the interface for the first time, and calls the interface access authority set cached in step S5 once, and compares the authority owned by the user with the authority identification of the interface at this time, and permits access if the user has the corresponding authority, and does not have the corresponding authority if the user has the corresponding authority; Access is blocked; S7, the user accesses the external interface again, does not need to call the interface access permission set, and directly compares the permission owned by the user with the permission identification of the interface.

Description

technical field [0001] The invention relates to the field of software development, in particular to a configurable interface access control method. Background technique [0002] In web development, there is usually such a requirement that different users see different menus. For example, ordinary users can see the business menu, and system users can only see the system setting menu. Although different users can see different menus by hiding the front-end, it is impossible to control the user's access to the back-end interface. If the hard-coded method is used, the logic of menu access is written in the server code, and the flexibility is lost, and the code will become bloated. Contents of the invention [0003] The purpose of the present invention is a configurable interface access control method, which has the advantages of improving the flexibility and security of the system. [0004] Above-mentioned purpose of the present invention is achieved through the following te...

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): G06F21/31G06F21/45
CPCG06F21/31G06F21/45G06F2221/2141
Inventor 陈波
Owner SICHUAN CHANGHONG ELECTRIC 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