armature-auth
Authentication and authorization for the Armature framework.
Features
- Password Hashing - bcrypt and Argon2 support
- OAuth2/OIDC - Google, GitHub, Microsoft, custom providers
- JWT Integration - Works with
armature-jwt - Role-Based Access - Guards and middleware for authorization
- WebAuthn/FIDO2 - Passwordless authentication (optional)
- SAML 2.0 - Enterprise SSO support (optional)
Installation
[]
= "0.1"
Quick Start
use ;
// Hash a password
let hasher = argon2;
let hash = hasher.hash?;
// Verify a password
assert!;
// OAuth2 flow
let oauth = google
.client_id
.client_secret
.redirect_uri;
let auth_url = oauth.authorization_url;
Features Flags
oauth2- OAuth2/OIDC support (default)webauthn- WebAuthn/FIDO2 passwordless authsaml- SAML 2.0 enterprise SSO
License
MIT OR Apache-2.0