Managing external identities to enable secure access for partners, customers, and other non-employees
Hello Edward Litke
Thank you for reaching out to Microsoft Q&A.
The single-tenant app and its service principal aren’t being located by the token endpoint, even though you see them in the portal. Here’s what I’d double-check:
- Token endpoint URL
- Make sure you’re hitting https://login.microsoftonline.com/{TENANT}/oauth2/v2.0/token where {TENANT} is your Azure AD tenant ID (GUID) or your verified initial domain (e.g. contoso.onmicrosoft.com).
- If you accidentally put the client/app ID in that segment, AAD won’t find the app in that directory and you’ll get AADSTS700016.
- Well-Known OpenID configuration
- Go to https://login.microsoftonline.com/{TENANT}/v2.0/.well-known/openid-configuration (or insert “/id/” after the tenant if you’re using the v1 style).
- If that endpoint errors out or still shows “not found,” the tenant identifier is likely wrong.
- Service principal provisioning lag
- For a single-tenant app, provisioning in your own directory is almost instantaneous (typically seconds–a few minutes max). You shouldn’t need to wait longer than 10 minutes. There’s no cross-directory sync for single-tenant apps.
- Single-tenant vs. multi-tenant configuration
- There’s no extra “switch” required in the token URL for single-tenant apps—it’s just your tenant instead of “common” or “organizations.” The rest of the OAuth flow and endpoint parameters (client_id, client_secret, code, redirect_uri, scopes) are exactly the same.
Let us know the above steps helps.
Thanks
Microsoft docs:-
- Troubleshoot consent issues in Microsoft Entra ID: https://docs.microsoft.com/troubleshoot/entra/entra-id/app-integration/troubleshoot-consent-issues
- Problems signing in to a Microsoft application: https://docs.microsoft.com/entra/identity/enterprise-apps/application-sign-in-problem-first-party-microsoft#problems-with-application-consent
- Unexpected error when performing consent to an application: https://docs.microsoft.com/entra/identity/enterprise-apps/application-sign-in-unexpected-user-consent-error#getting-administrator-permission
- Admin consent requirements: https://docs.microsoft.com/azure/active-directory/manage-apps/configure-user-consent