I think the previous answer may be wrong In our experience it works like below regarding token endpoints
I think the previous answer may be wrong. In our experience it works like below (regarding token endpoints):
https://login.microsoftonline.com/$YOURTenantName/oauth2/token used Used for graph apiGraph API:
https://login.microsoftonline.com/$YOURTenantName/oauth2/token
https://accounts.accesscontrol.windows.net/{tenantId}/tokens/OAuth/2 used Used for sharepoint rest apiSharePoint REST API v1:
https://accounts.accesscontrol.windows.net/{tenantId}/tokens/OAuth/2
for one site app we have
x-ms-diagnostics hasx-ms-diagnostics with the value 3002002; reason=App principal does not exist.
otherOther sites and apps are working fine.