Skip to content

pratham5816/Spring-Security-Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Spring Security Basics - Learning Project

A beginner-friendly Spring Boot application exploring Spring Security concepts and authentication mechanisms.

📚 What I'm Learning

This project helps me understand:

  • Spring Security configuration
  • Database authentication with MySQL
  • Password encryption using BCrypt
  • REST API security
  • JWT token concepts (work in progress)

🛠️ Tech Stack

  • Java 17
  • Spring Boot 3.x
  • Spring Security
  • MySQL Database
  • Maven

🚀 Current Features

  • ✅ User registration and login
  • ✅ Password encryption with BCrypt
  • ✅ Database-driven authentication
  • ✅ Protected REST endpoints
  • ⏳ JWT implementation (learning phase)

📋 API Endpoints

POST /register - Create new user
POST /login    - User login  
GET  /api      - Protected hello endpoint
GET  /student  - Protected student data

🔧 Setup & Run

  1. Clone the repository

    git clone https://github.com/pratham5816/Spring-Security-Basics.git
  2. Configure MySQL database in application.properties

  3. Run the application

    ./mvnw spring-boot:run

📝 Learning Notes

  • Started with basic HTTP authentication
  • Exploring JWT for stateless authentication
  • Understanding Spring Security filter chain
  • Learning password hashing best practices

This is a learning project as I explore backend security concepts. Feedback and suggestions are welcome!

About

Built a Spring Boot application to explore authentication and security concepts through hands-on implementation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages