Open breauxaj opened 5 months ago
Looks like the values are hard coded:
./oauthenticator/tests/test_azuread.py: host=['login.microsoftonline.com'], ./oauthenticator/tests/test_azuread.py: "iss": f"https://login.microsoftonline.com/{tenant_id}/v2.0", ./oauthenticator/azuread.py: return f"https://login.microsoftonline.com/{self.tenant_id}/oauth2/authorize" ./oauthenticator/azuread.py: return f"https://login.microsoftonline.com/{self.tenant_id}/oauth2/token"
Bug description
Configured AzureAdOAuthenticator with an App Registration, but seeing this error in logs after login attempt
Error fetching 400 POST https://login.microsoftonline.com//oauth2/token
But that URL doesn't make sense since we're an Azure Gov customer, and the url should be
https://login.microsoftonline.us/
Suggesting that the URL is assumed/hardcoded?
How to reproduce
After Azure Login, the error (truncated to not disclose sensitive info)
500 : Internal Server Error
In the hub logs
"error": "invalid_request", "error_codes": [ 900432 ], "error_description": "AADSTS900432: Confidential Client is not supported in Cross Cloud request.
Expected behaviour
Successful login, access to the app
Actual behaviour
Generates a 500 error in browser and logs
Your personal set up
Internal Kubernetes deployment