Spring Boot Basic Authentication with Users and Roles

Subscribers:
11,000
Published on ● Video Link: https://www.youtube.com/watch?v=lHe1_TYGJzQ



Duration: 21:31
5,976 views
63


Basic authentication can easily be set up to shield your Spring Boot application against everybody accessing your endpoints.
This example shows how to use roles to give access to some specific endpoints.
Enjoy! :-)
Feel free to comment and ask questions.
The code is located here:
https://github.com/ekim197711/springboot-basic-authentication
Follow me on twitter:
https://twitter.com/MikeMoelNielsen







Tags:
security
spring security
spring boot
basic authentication
roles
users
password
request header
header
Basic
securing rest endpoints