Skip to content

A Spring Boot application demonstrating the integration of Spring Security with JSON Web Tokens (JWT) for authentication and user role-based authorization.

Notifications You must be signed in to change notification settings

johntranz/SpringSecurity-JWT-User-Roles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Security with JWT and User Roles

This project demonstrates how to secure a Spring Boot application using Spring Security and JSON Web Tokens (JWT) for authentication and user role-based authorization.

Features

  • JWT Authentication: Secure endpoints with token-based authentication.
  • Role-Based Authorization: Restrict access to endpoints based on user roles.
  • User Management: Basic user registration and login functionalities.

Getting Started

Prerequisites

  • Java Development Kit (JDK) 8 or higher
  • Maven 3.6.0 or higher
  • An IDE (e.g., IntelliJ IDEA, Eclipse)

Installation

  1. Clone the repository:
    git clone https://github.com/johntranz/SpringSecurity-JWT.git

About

A Spring Boot application demonstrating the integration of Spring Security with JSON Web Tokens (JWT) for authentication and user role-based authorization.

Topics

Resources

Stars

Watchers

Forks

Languages