Heyyy, I'm facing some issues while setting up Microsoft SSO in phoenix UI In terminal it's saying 422 status code I was wondering if someone can share the example values for the environment variables Especially for PHOENIX_OAUTH_2_OIDC_CONFIG_URL Also, if you can share an example of redirect URI that would be great, I'm bit confused whether I should put /oauth2/Microsoft.... Or. /. well-known/....
It seems likely that setting up Microsoft SSO in Phoenix requires specific environment variables. For the PHOENIX_OAUTH2_MICROSOFT_ENTRA_ID_OIDC_CONFIG_URL, you should use the well-known configuration endpoint provided by Microsoft Entra ID, which is typically in the format https://login.microsoftonline.com/{tenant}/v2.0/.well-known/openid-configuration. This URL provides the necessary metadata for OpenID Connect.Regarding the redirect URI, it seems that you should use a format like <origin-url> /oauth2/microsoft_entra_id/tokens, where <origin-url> is the URL where you will access Phoenix in the browser. If you have configured a root path via the PHOENIX_HOST_ROOT_PATH environment variable, your redirect URI should include this path, such as <origin-url> /<root-path> /oauth2/microsoft_entra_id/tokens (source).Would you like more detailed guidance on setting up these configurations? Sources:
- Phoenix Authentication Documentation
馃挕聽Hint: Mention RunLLM in the thread for followups.
