Supercharge Your Innovation With Domain-Expert AI Agents!

Authority control method, system and equipment for front-end and rear-end separated project and storage medium

An access control, front-end and back-end technology, applied in the field of data processing, can solve problems such as unfriendly and unsafe users, and achieve the effects of ensuring security, lowering operational thresholds, and improving work efficiency

Pending Publication Date: 2022-03-01
SICHUAN XW BANK CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to overcome the above-mentioned problems or partially solve the above-mentioned problems, the purpose of the present invention is to provide a method and system for authority control of front-end and back-end separation projects, so as to solve the unsafe problem of relying solely on the front-end for authority control and relying solely on the back-end interface authority control. User Unfriendly Issues

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
  • Authority control method, system and equipment for front-end and rear-end separated project and storage medium
  • Authority control method, system and equipment for front-end and rear-end separated project and storage medium
  • Authority control method, system and equipment for front-end and rear-end separated project and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Please refer to figure 1 , an embodiment of the present invention provides a permission control method for front-end and back-end separation projects, including the following steps:

[0032] S101. Determine the resources that need to be controlled by permissions, and the display forms of the resources on the front-end page when they have permissions and have no permissions;

[0033] In the page function design stage, it is necessary to clarify the page elements such as menus, pages, function modules, and operation items that need to be controlled by permissions. In this embodiment, they are called resources, and at the same time determine the display forms when they have permissions and do not have permissions. In this embodiment, the display form in the authorized state is defined as the first form, and the display form in the non-authorized state is defined as the second form, for example: user management menu: display this menu item when authorized, and hide it when ...

Embodiment 2

[0046] Please refer to Image 6 , the embodiment of the present invention provides an authority control system for front-end and back-end separation projects, including: a page function design module 100: used to determine the resources that need to be controlled by authority, and when the above-mentioned resources have authority and no authority, they can be displayed on the front-end page display form; resource ID definition module 200: used to define a uniquely identified resource ID for the above-mentioned resources; first association model building module 300: used to obtain the interface that needs to be called for each resource ID, and establish the first link between the resource ID and the interface An association model; the second association model building module 400: constructing a second association model between the user ID and the resource ID with which the user has authority; the front-end display module 500: used to obtain the user ID, and obtain the user's aut...

Embodiment 3

[0051] An embodiment of the present invention provides an electronic device, including: at least one processor 1, at least one memory 2 and a data bus 3;

[0052] Wherein, the above-mentioned processor 1 and the above-mentioned memory 2 complete mutual communication through the above-mentioned data bus 3; the above-mentioned memory 2 stores program instructions that can be executed by the above-mentioned processor 1, and the above-mentioned processor 1 calls the above-mentioned program instructions to execute the above-mentioned embodiment The method in, for example, execute: S101, determine the resource that needs to be controlled by authority, and the display form of the above resource on the front page when the above resource is authorized or not; S102, define the resource ID of the unique identifier for the above resource; S103, obtain Each resource ID needs to call the interface, establish the first association model between the resource ID and the interface; S104, build t...

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 the technical field of data processing, in particular to an authority control method, system and equipment for front-end and rear-end separated items and a storage medium. The authority control method for the front-end and rear-end separated project comprises the following steps: determining a resource needing authority control; defining a uniquely identified resource ID for the resource; obtaining an interface needing to be called by each resource ID, and establishing a first association model between the resource ID and the interface; constructing a second association model of the user ID and the resource ID of the user owning the authority; obtaining a user weighted resource ID set based on the second association model, and judging whether the resource ID is in the user weighted resource ID set; and based on the user authorized resource ID set and the first association model, obtaining an interface set which the user has the authority to call, and verifying whether the interface of the current request is in the interface set or not. According to the method provided by the invention, the authority control is simultaneously carried out at the front end and the rear end, so that the experience of a front-end user can be optimized, and the safety of a data interface is ensured.

Description

technical field [0001] The present invention relates to the technical field of data processing, in particular to a permission control method, system, equipment and storage medium for front-end and back-end separation projects. Background technique [0002] In recent years, the development of software systems has seen the rise of the architecture model and development model that separates the front and back ends. The front end focuses on page and data display, the back end focuses on business logic, and the front and back ends interact with data through interfaces. The current commonly used technical solutions mainly include two types. The first one is to determine whether a user has permission to use a certain menu by configuring "user-role-menu". In this method, because there is no control over the interface access rights, users can bypass the front-end display logic and directly access the interface, which has potential security risks. The second is to determine whether a...

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): G06F8/38G06F9/54G06F16/25
CPCG06F8/38G06F16/252G06F9/547
Inventor 廖明乾陈灏
Owner SICHUAN XW BANK CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More