Skip to content

sengobasar/prodigy-infotech-task-one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure Authentication System

This project implements a secure user authentication system using FastAPI for the backend.

Features

  • User registration with validation
  • Secure login with password protection
  • JWT-based authentication
  • Protected routes
  • Password hashing
  • SQLite database

Setup

  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
uvicorn main:app --reload

API Endpoints

  • POST /users/ - Create a new user
  • POST /token - Get JWT token
  • GET /protected - Protected route (requires authentication)

Security Features

  • Passwords are hashed using bcrypt
  • JWT tokens for authentication
  • Protected routes with token validation
  • Input validation for user registration
  • Secure password handling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages