Skip to content

AADSTS error codes (Microsoft)

Always match the client ID in LIRENO with the Entra app.

CodeMeaningWhat to do
AADSTS500113No reply address for the appAdd Web URI exactly as LIRENO callback on the same app as the client ID
AADSTS700016App not found in tenant / wrong appCheck client ID belongs to this directory; set tenant ID
AADSTS90002 / AADSTS900023Tenant not found / invalidCheck Azure Tenant ID in LIRENO
AADSTS50194Single-tenant app with commonEnter Tenant ID in LIRENO (do not leave empty)
AADSTS65001Consent not grantedAdmin consent in Entra; Connect again
AADSTS7000215Invalid client secretCreate new secret; save value (not secret ID) in LIRENO
AADSTS50011Redirect URI mismatchURI must match byte-for-byte (https, no trailing /, Web platform)
AADSTS65005Missing resource/scopesCheck Graph permissions
AADSTS70000Auth code invalid/expiredRestart Hub → Connect; do not reuse URL

Redirect URI checklist

  • [ ] Platform Web (not SPA)
  • [ ] https://
  • [ ] Host api.dev.lireno.ch or api.lireno.ch
  • [ ] Path /api/v1/integrations/microsoft365/oauth/callback
  • [ ] No trailing slash
  • [ ] Identical in Entra and LIRENO
  • [ ] Client ID = that app’s Application ID

Microsoft 365 troubleshooting