Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1 KB

README.md

File metadata and controls

43 lines (27 loc) · 1 KB

Rust Authentication service boilerplate

🦀 Rust

Features

  1. User management
  2. JWT Authentication with cookie
  3. JWR Authentication with token
  4. CSRF token provider
  5. Docker integration
  6. OAuth

Specification

  • Axum framework for the API and endpoint management
  • sqlx for the database interface
  • Work with Postgres (manageable with sqlx lib)

Quick started

Simply run :

docker compose up -d

Then update the code as you want !

Boilerplate tour

  • All routes are configured in /src/api/mod.rs

  • Controller are defined in /src/controllers

  • Database connection is configured in /src/database

  • Database interface and query are set in /src/repository

  • Other stuff used by controllers for example is available in /src/services