Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`