| Crates.io | armature-auth |
| lib.rs | armature-auth |
| version | 0.1.2 |
| created_at | 2025-12-26 23:13:55.68898+00 |
| updated_at | 2025-12-30 22:22:42.374103+00 |
| description | Authentication and authorization for Armature framework |
| homepage | https://pegasusheavy.github.io/armature |
| repository | https://github.com/pegasusheavy/armature |
| max_upload_size | |
| id | 2006397 |
| size | 206,294 |
Authentication and authorization for the Armature framework.
armature-jwt[dependencies]
armature-auth = "0.1"
use armature_auth::{AuthService, PasswordHasher};
// Hash a password
let hasher = PasswordHasher::argon2();
let hash = hasher.hash("my_password")?;
// Verify a password
assert!(hasher.verify("my_password", &hash)?);
// OAuth2 flow
let oauth = OAuth2Config::google()
.client_id("your-client-id")
.client_secret("your-secret")
.redirect_uri("http://localhost:3000/callback");
let auth_url = oauth.authorization_url();
oauth2 - OAuth2/OIDC support (default)webauthn - WebAuthn/FIDO2 passwordless authsaml - SAML 2.0 enterprise SSOMIT OR Apache-2.0