| Crates.io | bt_auth0 |
| lib.rs | bt_auth0 |
| version | 0.2.6 |
| created_at | 2025-10-30 14:09:36.388739+00 |
| updated_at | 2025-11-20 16:13:32.935072+00 |
| description | An Auth0 authentication API that returns the access token and user info |
| homepage | https://github.com/bachuetech/bt_auth0.git |
| repository | https://github.com/bachuetech/bt_auth0 |
| max_upload_size | |
| id | 1908285 |
| size | 471,407 |
BT Auth0
A Rust-based library for launching an authentication flow with Auth0, obtaining an access token and user info in return.
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"
CC-BY-NC-ND-4.0