Example for setting up basic HTTP Security on a web service with Spring Boot.
Start the Docker image:
docker-compose -f docker/docker-compose.yml --project-name spring-ws-basic-security-example up
And the web service be available at http://localhost:8080/.
To make things easier import src/test/resources/basic_auth.postman_collection.json
into Postman. It includes all the queries needed to test the project.
User | Password | Permissions |
---|---|---|
admin | 1234 | all |
noroles | 1111 | none |
locked | 1111 | all |
expired | 1111 | all |
disabled | 1111 | all |
expcreds | 1111 | all |
noread | 1111 | all minus read |
- Spring MVC
- Basic HTTP security
- Basic Spring Boot security auditing
The documentation site is actually a Maven site, its sources are included in the project. Can be generated by using the following Maven command:
mvn verify site
The verify phase is required, otherwise some of the reports won't be built.
Any kind of help with the project will be well received, and there are two main ways to give such help:
- Reporting errors and asking for extensions through the issues management
- or forking the repository and extending the project
Issues are managed at the GitHub project issues tracker, where any Github user may report bugs or ask for new features.
If you wish to fork or modify the code, visit the GitHub project page, where the latest versions are always kept. Check the 'master' branch for the latest release, and the 'develop' for the current, and stable, development version.
The project has been released under the MIT License.