In previous post, we’ve known how to build Token based Authentication & Authorization with Spring Security & JWT. This tutorial will continue to make JWT Refresh Token with Spring Security in the Java Spring Boot Application. You can know how to expire the JWT Token, then renew the Access Token with Refresh Token and HttpOnly Cookie.
Related Posts:
- Spring Boot, Spring Data JPA: Rest CRUD API example
- Spring Boot File upload example with Multipart File
- @RestControllerAdvice example in Spring Boot
- Spring Boot @ControllerAdvice & @ExceptionHandler example
- @DataJpaTest example for Spring Data Repositiory Unit Test
Deployment:
– Deploy Spring Boot App on AWS – Elastic Beanstalk
– Docker Compose: Spring Boot and MySQL example
The code in this post bases on previous article that you need to read first:
– Spring Boot JWT Auth example with H2 Database
– Spring Boot JWT Auth example with MySQL
– Spring Boot JWT Auth example with MongoDB