Expand description
§use-authn
Authentication primitive metadata for RustUse.
§Experimental
use-authn is experimental while the use-security workspace remains below 0.3.0. Expect small API adjustments during the first release wave.
§Example
use use_authn::{AuthenticationFactor, AuthenticationMethod, MfaStatus};
assert_eq!(AuthenticationMethod::Passkey.as_str(), "passkey");
assert_eq!(AuthenticationFactor::Possession.as_str(), "possession");
assert_eq!(MfaStatus::Enforced.to_string(), "enforced");§Scope
- Authentication methods, factors, schemes, credential kinds, session kinds, token-binding labels, password-policy levels, and MFA status labels.
- Local metadata for tools, documentation, and application glue code.
§Non-goals
- Authenticating users.
- Password hashing.
- Token generation, validation, or storage.
- Identity provider or session server behavior.
§License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license
Enums§
- Authentication
Factor - Authentication factor labels.
- Authentication
Method - Authentication method labels.
- Authentication
Scheme - HTTP or application authentication scheme labels.
- Authn
Parse Error - Error returned when an authentication label cannot be parsed.
- Credential
Kind - Credential kind labels.
- MfaStatus
- MFA status labels.
- Password
Policy Level - Password policy strength labels.
- Session
Kind - Session kind labels.
- Token
Binding Kind - Token binding kind labels.