How to Secure Spring REST API with OAuth2 JWT Authentication

  • Post author:
  • Post category:Spring Boot
  • Post comments:2 Comments
  • Post last modified:February 12, 2023

In the previous article, we implemented JWT authentication using custom spring security. However, it is not recommended to customize spring security, especially in enterprise-level applications. Because one defect in custom…

Continue ReadingHow to Secure Spring REST API with OAuth2 JWT Authentication

How to Configure Spring Security with Multiple Authentication Providers

  • Post author:
  • Post category:Spring Boot
  • Post comments:2 Comments
  • Post last modified:September 22, 2021

In our previous articles, we have implemented Basic Authentication, JWT Authentication, LDAP authentication with BASIC_AUTH, JWT_AUTH and LDAP_AUTH profiles respectively. Also, we have seen how to disable Spring Security with NO_AUTH profile. However, sometimes our application might need to…

Continue ReadingHow to Configure Spring Security with Multiple Authentication Providers

How to Secure Spring Boot 2 REST API with Spring Security 5 JWT Authentication, Role-based Authorization and MySQL Database in 9 Steps

  • Post author:
  • Post category:Spring Boot
  • Post comments:8 Comments
  • Post last modified:February 15, 2023

In the previous article, we have secured the REST API with Spring Security Basic Authentication. Now we are gonna add JWT Authentication and Role-Based Authorization to the same REST API that we…

Continue ReadingHow to Secure Spring Boot 2 REST API with Spring Security 5 JWT Authentication, Role-based Authorization and MySQL Database in 9 Steps

How to Secure Spring REST Services with Spring Security 5 and JWT Authentication without using Spring Boot

  • Post author:
  • Post category:Spring
  • Post comments:3 Comments
  • Post last modified:September 29, 2021

In the previous article, we have implemented Spring REST API without using Spring Boot. Now we are gonna secure the REST API with Spring Security and JSON Web Token (JWT) without…

Continue ReadingHow to Secure Spring REST Services with Spring Security 5 and JWT Authentication without using Spring Boot