bt_auth0

Crates.iobt_auth0
lib.rsbt_auth0
version0.2.6
created_at2025-10-30 14:09:36.388739+00
updated_at2025-11-20 16:13:32.935072+00
descriptionAn Auth0 authentication API that returns the access token and user info
homepagehttps://github.com/bachuetech/bt_auth0.git
repositoryhttps://github.com/bachuetech/bt_auth0
max_upload_size
id1908285
size471,407
(bachuetech)

documentation

README

Project Title

BT Auth0

Description

A Rust-based library for launching an authentication flow with Auth0, obtaining an access token and user info in return.

Usage

See examples for details. Start with auth0_auto.

let answer = auth0_auto(ENV_PROFILE, APPLICATION_NAME, YML_AUTH0_CONFIG, SVR_PREFIX, YML_KEYS, SCOPE, Some(icon_path));

bt_loger is a hard-dependency, Always build a bt_loger:

build_logger("BACHUETECH", "bt_auth0_test", bt_logger::LogLevel::VERBOSE, bt_logger::LogTarget::STD_ERROR);

For the auth0 config YAML file use the following structure:

dev:
  domain: "example.auth0.com"
  client_id: "client_id_123"
  client_secret: "client_secret_456"
  redirect_port: "3000"
  redirect_server: "http://localhost"
  redirect_path: "/callback"

for the encryption keys YAML file use the following structure:

dev:
  auth0token: "test_encryption_key"

Version History

  • 0.1.0
    • Initial Release
  • 0.2.0
    • Added icon support for auth0_auto, displaying the provided icon (breaking change).
    • Lowered the wry library version supported to 0.51.2 to enhance compatibility with other frameworks.
    • Rename lib auth0_auto to auth0_easy (breaking change)
  • 0.2.1
    • Support multiple ports for Auth0 redirect
    • The maximum number of login retries is set to 10. (Avoid an infinite loop)
  • 0.2.2
    • Update Dependencies
  • 0.2.3
    • New function with support for auth0_auto with the icon image instead of the path.
  • 0.2.4
    • Support for optional client secret
  • 0.2.5
    • Update Dependencies
  • 0.2.6
    • Remove extra quotes at the beginning and the end of the string when retrieving user info

License

CC-BY-NC-ND-4.0

Commit count: 0

cargo fmt