rust-keycloak

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


Keywords
rust, keycloak
License
CNRI-Python-GPL-Compatible

Documentation

Rust Keycloak

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

Rust Keycloak

0.0.2

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

Features

OpenId

  • well_known
  • token
  • refresh_token
  • jwt_decode

Admin

  • create_user
  • users_count
  • user_info
  • introspect

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");