I'm trying to do Oauth2 login with Azure AD. I've tried these two URLs
and these lead to a login page. After I enter my email and password, I am redirected to https://login.microsoftonline.com/common/federation/oauth2
with these errors
Sorry, but we’re having trouble signing you in. We received a bad request.
Additional technical information: Correlation ID: 886be244-da75-419d-97b4-0e309473ce9e Timestamp: 2017-11-19 17:47:26Z
AADSTS50020: We are unable to issue tokens from this api version for a Microsoft account. Please contact the application vendor as they need to use version 2.0 of the protocol to support this.
I checked my server logs, and the Azure servers haven't even tried to contact me after the login page.
Any ideas how I figure out what the problem is?