keycloak v0.2.0 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
Link to this section Functions
Link to this function
get(client, url)
View Source
get(OAuth2.Client.t, String.t) :: {atom, OAuth2.Response.t}
Makes an authorized GET request to url
Link to this function
post(client, url)
View Source
post(OAuth2.Client.t, String.t) :: {atom, OAuth2.Response.t}
Makes an authorized POST request to url