| Crates.io | lighty-auth |
| lib.rs | lighty-auth |
| version | 0.8.6 |
| created_at | 2025-12-02 11:09:19.717944+00 |
| updated_at | 2025-12-14 07:26:20.675796+00 |
| description | Authentication modules for Lighty Launcher |
| homepage | https://github.com/Lighty-Launcher/LightyLauncherLib |
| repository | https://github.com/Lighty-Launcher/LightyLauncherLib |
| max_upload_size | |
| id | 1961615 |
| size | 105,606 |
Authentication modules for LightyLauncher.
This is an internal crate for the LightyLauncher ecosystem. Most users should use the main lighty-launcher crate instead.
[dependencies]
lighty-auth = "0.6.3"
use lighty_auth::offline::OfflineAuth;
#[tokio::main]
async fn main() {
// Offline authentication
let auth = OfflineAuth::new("PlayerName".to_string());
let profile = auth.authenticate().await?;
println!("UUID: {}", profile.uuid);
println!("Username: {}", profile.username);
}
lighty-auth/
└── src/
├── lib.rs # Module declarations
├── offline.rs # Offline authentication (Stable)
├── microsoft.rs # Microsoft OAuth2 authentication (WIP)
└── azuriom.rs # Azuriom CMS authentication (WIP)
Stable implementation for local/offline authentication.
use lighty_auth::offline::OfflineAuth;
let auth = OfflineAuth::new("PlayerName".to_string());
let profile = auth.authenticate().await?;
Status: Stable
OAuth2 flow for Microsoft accounts (Xbox Live).
use lighty_auth::microsoft::MicrosoftAuth;
// Implementation in progress
Status: Work in Progress
Integration with Azuriom CMS authentication system.
use lighty_auth::azuriom::AzuriomAuth;
// Implementation in progress
Status: Work in Progress
MIT