Skip to content

ailiujiarui/casbin-spring-security-starter-fix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

using casbin in SpringSecurity

inform

To skip the tedious and complicated login process of Spring Security, 
we're using its built-in login mode, which allows us to focus on the model authentication module.

DataBase

For the database, we're using mysql. 
Remember to create a casbin database if you don't have one, and configure it in the application.yml file.

Simple Example

check file examples.rbac.policy.csv you can find out we are using rbac model
I registered with the identity of Alice who can read data1

img_1.png

Than test the  result

img_2.png

img_3.png

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%