Keycloak.Client (keycloak v1.1.0) View Source
Module resposible for creating a properly configured
OAuth2.Client
for use with the Keycloak configuration.
Configuration
config :keycloak,
realm: <REALM>
site: <KEYCLOAK SERVER URL>
client_id: <CLIENT_ID>
client_secret: <CLIENT SECRET>
Link to this section Summary
Functions
Fetches the current user profile from the Keycloak userinfo endpoint. The
passed client
must have already been authorized and have a valid access token.
Returns a new OAuth2.Client
ready to make requests to the configured
Keycloak server.
Link to this section Functions
Specs
me(OAuth2.Client.t()) :: {:ok, OAuth2.Response.t()} | {:error, String.t()}
Fetches the current user profile from the Keycloak userinfo endpoint. The
passed client
must have already been authorized and have a valid access token.
Specs
new(keyword()) :: OAuth2.Client.t()
Returns a new OAuth2.Client
ready to make requests to the configured
Keycloak server.