keycloak v0.2.1 Keycloak.Admin View Source

This module is responsible for making calls to the Keycloak admin api.

Example

client = Keycloak.Client.new(token: "supersecret")

case Keycloak.Admin.get(client, "/") do
  {:ok, %O{body: body}} ->
    body
  {:error, %{body: body}} ->
    "#{inspect body}"
end

response = OAuth2.Client.get!(client, "/some/resource")

Link to this section Summary

Functions

Makes an authorized GET request to url

A simple wrapper around the current admin_client functionality

Makes an authorized POST request to url

Link to this section Functions

Makes an authorized GET request to url

A simple wrapper around the current admin_client functionality.

NOTE: This is a temporary fix for some missing functionality.

Link to this function post(client, url, body \\ "", headers \\ [], opts \\ []) View Source

Makes an authorized POST request to url