Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marine-mb/spring-access-inspector
CLi tool to list all access control
https://github.com/marine-mb/spring-access-inspector
Last synced: 3 days ago
JSON representation
CLi tool to list all access control
- Host: GitHub
- URL: https://github.com/marine-mb/spring-access-inspector
- Owner: marine-mb
- Created: 2023-06-26T20:29:50.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-03T14:36:38.000Z (6 months ago)
- Last Synced: 2024-11-07T20:43:47.243Z (5 days ago)
- Language: Java
- Size: 63.5 KB
- Stars: 51
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What is spring-access-control ?
This tool creates a table report to verify access control on Spring Boot routes.
It uses the [`Preauthorize`, `Secured` or `RolesAllowed`](https://www.baeldung.com/spring-security-method-security) annotation from `spring-security-config`It creates a table.html file with a list of your routes and their preauthorize.
![List of your routes with preauthorize annotation](preauthorize-table.png)
## How to use it
Clone the repository:
`git clone [email protected]:marine-mb/spring-access-inspector.git`Go inside the repo:
`cd spring-access-inspector`Compile the code:
`mvn compile exec:java -Dexec.mainClass=com.theodo.tools.preauthorize.analyzer.PreAuthorizeAnalysis`
Run the code (using maven exec plugin) and give it your pom path:
`mvn exec:java -Dexec.mainClass=com.theodo.tools.preauthorize.analyzer.PreAuthorizeAnalysis -Dexec.args="/the_path/where/poms/are"`
N.B: Compile your code before:
`mvn clean install -DskipTests`