https://github.com/jcasbin/casbin-spring-security-starter
Spring Security example for jCasbin
https://github.com/jcasbin/casbin-spring-security-starter
abac acl auth authroization authz casbin example rbac spring spring-boot spring-security springboot starter
Last synced: 23 days ago
JSON representation
Spring Security example for jCasbin
- Host: GitHub
- URL: https://github.com/jcasbin/casbin-spring-security-starter
- Owner: jcasbin
- License: apache-2.0
- Created: 2022-09-16T14:51:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-05T13:18:11.000Z (7 months ago)
- Last Synced: 2025-03-27T17:51:56.081Z (about 1 month ago)
- Topics: abac, acl, auth, authroization, authz, casbin, example, rbac, spring, spring-boot, spring-security, springboot, starter
- Language: Java
- Homepage: https://github.com/casbin/jcasbin
- Size: 41 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# casbin-spring-security-starter

[](https://central.sonatype.com/artifact/org.casbin/casbin-spring-security-starter)## Installation
``` xml
org.casbin
casbin-spring-security-starter
1.0.0```
## 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
Than test the result
