Azure AD uses the following OAuth2 Authorization URLs
Authorization: https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
Token: https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
The <tenant-id> must be replaced by your own values.
When you create the OAuth2 configuration, you must configure a server callback url, this url will be used by Azure to send a response to your server after a successful authorization.
Example: find below a simple example of how register Azure AD provider.
Values provided by Azure AD
ClientId: 90945b8d-f6b7-4b97-b2bd-21c3c90b5f3x
ClientSecret: PN67Q~5m06c-~X_GMyMf9zMntmm5l2dt~3jVq
tenant: a0ca2055-5dd1-467f-bf13-291f6fd715c6
scope: user.read
CallbackURL: https://localhost/callback
How Register Azure AD
RegisterProvider(
'azure',
'90945b8d-f6b7-4b97-b2bd-21c3c90b5f3x',
'PN67Q~5m06c-~X_GMyMf9zMntmm5l2dt~3jVq',
'https://login.microsoftonline.com/a0ca2055-5dd1-467f-bf13-291f6fd715c6/oauth2/v2.0/authorize',
'https://login.microsoftonline.com/a0ca2055-5dd1-467f-bf13-291f6fd715c6/oauth2/v2.0/token',
'user.read',
'/login',
'https://localhost/callback'
);