- Notifications
You must be signed in to change notification settings - Fork11
JavatoDev-com/spring-boot-rest-api-jwt-authentication
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
In this article, I’ll explain how we can implement a JWT (JSON Web Token) based authentication layer on Spring Boot CRUD API using Spring Security. Basically this JWT authentication layer will secure the API to avoid unauthorized API access.
Technologies Going to Use,
- Java 1.8
- Spring Boot: 2.3.4.RELEASE
- Spring Security
- JPA
- MySQL
- Lombok
- Gradle
- Intellij Idea for IDE
Main topics I’m going to discuss here,
- What is JWT ?
- How Does JWT Based Authentication work with Spring Boot?
- Adding Required Dependencies
- Developing API
- Defining API Endpoints
- Spring Security Related Implementation
- API User Specific API Development
- Authentication Filter with UsernamePasswordAuthenticationFilter
- What is the use of Authentication Filter ?
- JWT Authorization Filter with BasicAuthenticationFilter
- What is the use of JWT authorization Filter ?
- Authentication User Detail Service to Read User From Database
- Security Configuration With WebSecurityConfigurerAdapter
- Testing API with JWT Authentication
- More Configurations inside JWT based Authentication Layer
- Send JWT Authentication Token in Response Body After Successful Login
- Role Based Authentication with JWT
- Conclusion
📄 Original TutorialSpring Boot JWT Authentication using Spring Security
Related Articles
About
No description, website, or topics provided.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published