Skip to content

marine-mb/spring-access-inspector

Repository files navigation

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 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

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

About

CLi tool to list all access control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages