This crates allow to interact with the Auth0 API. It is still a work in progress and therefore misses lot of functionnalities.
Add this line to your Cargo.toml
:
Toml
[dependencies]
auth0_client = "0.1.0"
```rust let mut client = Auth0Client::new( "clientid", "clientsecret", "http://domain.com", "http://audience.com", );
client.authenticate().await?;
let mut payload = CreateUserPayload::fromconnection("Username-Password-Authentication"); payload.email = Some("test@example.com".toowned()); payload.password = Some("password123456789!".to_owned());
let newuser = client.createuser(&payload).await; ```