rust-keycloak

Crates.iorust-keycloak
lib.rsrust-keycloak
version0.0.7
sourcesrc
created_at2019-01-08 12:26:49.451921
updated_at2021-08-16 13:10:21.459814
descriptionrust-keycloak is a Rust crate providing access to the Keycloak API.
homepage
repositoryhttps://github.com/tritone11/rust-keycloak
max_upload_size
id107392
size63,551
Andreas Monitzer (anlumo)

documentation

README

Rust Keycloak

rust-keycloak is a Rust crate providing access to the Keycloak API.

Rust Keycloak

0.0.6

rust-keycloak is a Rust crate providing access to the Keycloak API.

Features

OpenId

  • well_known
  • token
  • refresh_token
  • jwt_decode
  • service_account

Admin

  • Create user
  • Delete user
  • Update user
  • Count users
  • user_info
  • introspect
  • Add user to grup
  • Remove user from group
  • Add realm and client roles to users

Example usage

    let token_request = rust_keycloak::serde_json::json!({
        "grant_type":"password".to_string(),
        "username":"admin".to_string(),
        "password":"password".to_string(),
        "realm":"realm_name".to_string(), 
        "client_id":"client_id".to_string(), 
        "redirect_uri":"".to_string(), 
        "code":"".to_string()});

    let tok = rust_keycloak::keycloak::OpenId::token("http://localhost/auth/",token_request,"realm_name");
Commit count: 31

cargo fmt