I ran into an issue with the proposed configuration. This is the suggested config:
OAUTH_AUTHORITY=https://login.microsoftonline.com/common
OAUTH_ID_METADATA=/v2.0/.well-known/openid-configuration
OAUTH_AUTHORIZE_ENDPOINT=/oauth2/v2.0/authorize
OAUTH_TOKEN_ENDPOINT=/oauth2/v2.0/token
wreck inside simple-oauth2 uses Url.URL to combine OAUTH_AUTHORITY with OAUTH_TOKEN_ENDPOINT which results in https://login.microsoftonline.com/oauth2/v2.0/token and therefore loses common. This results in a 404.
I changed the config slightly and removed the leading slashes from the relative paths and added a trailing slash to the base URL.
OAUTH_AUTHORITY=https://login.microsoftonline.com/common/
OAUTH_ID_METADATA=/v2.0/.well-known/openid-configuration
OAUTH_AUTHORIZE_ENDPOINT=oauth2/v2.0/authorize
OAUTH_TOKEN_ENDPOINT=oauth2/v2.0/token
So that OAUTH_TOKEN_ENDPOINT is relative. I have not figured why it worked for authorize though, but still works.
I ran into an issue with the proposed configuration. This is the suggested config:
wreck inside simple-oauth2 uses Url.URL to combine
OAUTH_AUTHORITYwithOAUTH_TOKEN_ENDPOINTwhich results inhttps://login.microsoftonline.com/oauth2/v2.0/tokenand therefore losescommon. This results in a404.I changed the config slightly and removed the leading slashes from the relative paths and added a trailing slash to the base URL.
So that
OAUTH_TOKEN_ENDPOINTis relative. I have not figured why it worked for authorize though, but still works.