View Source AzureADOpenId (Azure Active Directory OpenID v0.3.3)
Azure Active Directory authentication using OpenID.
Link to this section Summary
Functions
Get a redirect url for authorization using Azure Active Directory login.
Checks if the library is configured with the standard Elixir configuration (i.e. using the config files).
Get an access token using the client credentials authorisation strategy for machine to machine authentication. Requires a client secret.
Returns a human readable user name from an id_token/0
. This is useful as the
Azure Active Directory id_token/0
can be very inconsistent in how user names are stored.
Handles and validates the id_token/0
in the callback response. The redirect_uri used in the
authorize_url!/1
function should redirect to a path that uses this funtion.
Returns the redirect url for logging out of Azure Active Directory.
Returns the redirect url for logging out of Azure Active Directory.
Verify an access token.
Link to this section Types
Specs
Specs
config() :: nil | [config_values()]
Specs
Specs
conn() :: map()
Specs
id_token() :: map()
Specs
uri() :: String.t()
Link to this section Functions
Specs
Get a redirect url for authorization using Azure Active Directory login.
Specs
configured?() :: boolean()
Checks if the library is configured with the standard Elixir configuration (i.e. using the config files).
Get an access token using the client credentials authorisation strategy for machine to machine authentication. Requires a client secret.
Specs
Returns a human readable user name from an id_token/0
. This is useful as the
Azure Active Directory id_token/0
can be very inconsistent in how user names are stored.
Specs
handle_callback!(conn(), config()) :: callback_response()
Handles and validates the id_token/0
in the callback response. The redirect_uri used in the
authorize_url!/1
function should redirect to a path that uses this funtion.
Specs
Returns the redirect url for logging out of Azure Active Directory.
Specs
Returns the redirect url for logging out of Azure Active Directory.
Verify an access token.