rust-keycloak is a Rust crate providing access to the Keycloak API.
rust-keycloak is a Rust crate providing access to the Keycloak API.
``` let tokenrequest = rustkeycloak::serdejson::json!({ "granttype":"password".tostring(), "username":"admin".tostring(), "password":"password".tostring(), "realm":"realmname".tostring(), "clientid":"clientid".tostring(), "redirecturi":"".tostring(), "code":"".to_string()});
let tok = rust_keycloak::keycloak::OpenId::token("http://localhost/auth/",token_request,"realm_name");
```