keycloak v0.2.0 Keycloak.Client 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
Link to this function
me(client)
View Source
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.
Returns a new OAuth2.Client
ready to make requests to the configured
Keycloak server.