Module api

Source
Expand description

Keycloak API

This module contains the implementation of the client for the keycloak admin API. Find the documentation here of the keycloak admin API here: https://www.keycloak.org/docs-api/22.0.1/rest-api/index.html#_users/

Structsยง

Api
The keycloak admin API.
AuthData ๐Ÿ”’
Helper struct to cache the access token and its expiration time.
Config
TokenResponse ๐Ÿ”’
Helper struct to deserialize the token response.

Constantsยง

DEFAULT_PER_PAGE
The default number of rows returned from a paginated request.
MIN_PAGE
The minimum value for page number in a paginated request. Pages start at 1. Using a lower value would lead to nonsensical queries.
MIN_PER_PAGE
The minimum number of rows returned from a paginated query.

Functionsยง

to_base_url ๐Ÿ”’
Helper function to create a base URL.