Copyright © 2021 Marc Worrell
Authors: Marc Worrell (marc@worrell.nl).
Support routines for using Microsoft as an external identity provider.
See: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols#endpoints See: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flowauth_validated/3 | Fetch the validated user data from the id_token See https://docs.microsoft.com/en-us/azure/active-directory/develop/id-tokens. |
authorize_url/3 | Return the authorization url for the OAuth permission dialog. |
decode_jwt/1 | |
fetch_access_token/5 | Exchange the code for an access token. |
fetch_user_data/1 | |
fetch_user_photo/1 | |
oauth_version/0 | Return the major OAuth version being used. |
title/1 | Return the service title for display in templates. |
auth_validated(AccessData, Args, Context) -> any()
Fetch the validated user data from the id_token See https://docs.microsoft.com/en-us/azure/active-directory/develop/id-tokens
authorize_url(RedirectUrl::binary(), StateId::binary(), Context::z:context()) -> {ok, map()}
Return the authorization url for the OAuth permission dialog.
decode_jwt(JWT) -> any()
fetch_access_token(Code::binary(), AuthData::term(), Args::list(), QArgs::map(), Context::z:context()) -> {ok, map()} | {error, term()}
Exchange the code for an access token
fetch_user_data(AccessToken) -> any()
fetch_user_photo(AccessToken) -> any()
oauth_version() -> pos_integer()
Return the major OAuth version being used
title(Context::z:context()) -> binary()
Return the service title for display in templates
Generated by EDoc