In this article, we will be securing REST APIs with role based OAUTH2 implementation. To do so, we will be creating two custom roles as ADMIN and USER and we will use <code>@secured</code> annotation provided by spring security to secure our controller methods based on role.
Clone or download
Latest commit 3681bbc Dec 27, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Initial commit Dec 26, 2018
.gitignore Initial commit Dec 26, 2018
README.md Created read me Dec 26, 2018
mvnw Initial commit Dec 26, 2018
mvnw.cmd Initial commit Dec 26, 2018
pom.xml Initial commit Dec 26, 2018

README.md

role-based-oauth2

In this article, we will be securing REST APIs with role based OAUTH2 implementation. To do so, we will be creating two custom roles as ADMIN and USER and we will use <code>@secured</code> annotation provided by spring security to secure our controller methods based on role. This article was posted on Devglan. Below are some other articles on OAUTH2

  1. Spring Boot Security OAUTH2 with Angular Example
  2. Spring Boot Security OAUTH2 Example
  3. Spring Boot OAUTH2 JWT Example
  4. Exception Handling in Spring Security

Also, you can visit this page to explore all the tutorials on spring security