Skip to content

hhertout/rs_auth_ms_boilerplate

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages