Skip to content

Saishreeta/iam-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Identity & Access Management (IAM) Platform

A production-grade, secure multi-tenant backend architecture built using Rust, Axum, Tokio, and SQLx.

Key Features

  • Secure Authentication: Built-in User Registration and Login endpoints leveraging thread-safe bcrypt password hashing.
  • Token Issuance: Session authentication powered by signed stateless JSON Web Tokens (JWTs).
  • Multi-Tenant Boundaries: Complete relational indexing separation for Organizations and individual user memberships.
  • Selective Middleware: Advanced Axum authorization extractor engine verifying tenant permissions before allowing route access.
  • Compliance Tracking: Secure database schemas and endpoint mapping for immutable organization activity audit logs.
  • Automated Unit Testing: Built-in test suite modules to verify API boundary failure conditions.

📁 System Core Directory Structure

  • migrations/ — Relational database schema layout scripts.
  • src/models.rs — Structured request payloads, response templates, and data schemas.
  • src/handlers.rs — Business validation rules, crypto hashing, and collection controller paths.
  • src/middleware.rs — Selective tenant authorization engine extraction layer.
  • src/tests.rs — Automated route boundary validation test collection.
  • src/main.rs — Environmental configs, database pool connection, and runtime initialization.

🛠️ API Routing Matrix

Method Endpoint Description Auth Required
POST /auth/register Create a new user profile account Public
POST /auth/login Validate user credentials and issue JWT tokens Public
POST /orgs Initialize a new multi-tenant organization Public
POST /orgs/:id/members Invite and allocate roles to members within an organization JWT Bearer Guard
GET /orgs/:id/audit-logs Retrieve chronological security compliance tracking logs JWT Bearer Guard

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages