Skip to main content

Crate lighty_auth

Crate lighty_auth 

Source
Expand description

Authentication providers for Lighty Launcher (Offline, Microsoft, Azuriom).

Modules§

azuriom
Azuriom CMS authentication (email/password, 2FA, token verification, logout).
microsoft
Microsoft OAuth 2.0 (Device Code Flow) authentication for Minecraft.
offline
Offline authentication: deterministic UUID v5 derived from the username.

Structs§

UserProfile
User profile returned after successful authentication.
UserRole
User role/rank information.

Enums§

AuthError
Authentication errors.
AuthProvider
Authentication provider type.

Traits§

Authenticator
Core authentication trait implemented by every provider.
ExposeSecret
Expose a reference to an inner secret

Functions§

generate_offline_uuid
Generates a deterministic UUID v5 (SHA1-based) from a username for offline mode.

Type Aliases§

AuthResult
SecretString
Secret string type.