mogh_auth_client

Crates.iomogh_auth_client
lib.rsmogh_auth_client
version1.2.1
created_at2026-01-17 22:49:01.060552+00
updated_at2026-01-21 09:06:13.105814+00
descriptionClient library for Mogh Auth Server embedded API.
homepage
repositoryhttps://github.com/moghtech/lib
max_upload_size
id2051366
size108,175
Maxwell Becker (mbecker20)

documentation

README

Mogh Auth Library

Provides trait-driven server and client implementations for robust application authentication.

  • Local login with usernames and passwords
  • OIDC / social login
  • Two factor authentication with webauthn passkey or TOTP code
  • JWT token generation and validation utilities
  • Request rate limiting by IP for brute force mitigation
  • Typescript types / client to layer with app-specific typescript client.

Usage (Client)

let reqwest = Reqwest::default();

let options: mogh_auth_client::api::login::GetLoginOptionsResponse =
  mogh_auth_client::request::login(
    &reqwest,
    "https://example.com/auth",
    mogh_auth_client::api::login::GetLoginOptions {}
  ).await?;
Commit count: 101

cargo fmt