auth0_client

Crates.ioauth0_client
lib.rsauth0_client
version0.2.2
sourcesrc
created_at2023-01-13 11:15:14.71216
updated_at2024-06-05 08:45:06.214806
descriptionAn unofficial Auth0 API client for Rust
homepagehttps://github.com/Aeradriel/auth0_client_rs
repositoryhttps://github.com/Aeradriel/auth0_client_rs
max_upload_size
id757856
size70,713
Thibaut Roche (Aeradriel)

documentation

https://docs.rs/auth0_client

README

auth0_client

CI codecov

This crates allow to interact with the Auth0 API. It is still a work in progress and therefore misses lot of functionnalities.

Installation

Add this line to your Cargo.toml:

[dependencies]
auth0_client = "0.1.0"

Usage overview

let mut client = Auth0Client::new(
    "client_id",
    "client_secret",
    "http://domain.com",
    "http://audience.com",
);

client.authenticate().await?;

let mut payload =
    CreateUserPayload::from_connection("Username-Password-Authentication");
payload.email = Some("test@example.com".to_owned());
payload.password = Some("password123456789!".to_owned());

let new_user = client.create_user(&payload).await;
Commit count: 31

cargo fmt