登录自定义开发的应用程序时出现的问题Problems signing in to a custom-developed application

存在多个错误可能导致用户无法登录到应用。There are several errors that could be causing you to not be able to sign into an app. 出现此问题的最主要原因是应用配置错误。The biggest reason people encounter this problem is misconfigured apps.

  • 确认门户中的配置与应用中的配置相匹配。Verify both the configurations in the portal match what you have in your app. 具体而言,比较客户端/应用程序 ID、回复 URL、客户端密码/密钥和应用 ID URI。Specifically, compare Client/Application ID, Reply URLs, Client Secrets/Keys, and App ID URI.

  • 将在代码中请求访问的资源与“所需资源”选项卡中的已配置权限进行比较,确保仅请求已配置的资源。Compare the resource you’re requesting access to in code with the configured permissions in the Required Resources tab to make sure you only request resources you’ve configured.

  • 有关任何类似的错误或问题,请参阅 Azure AD StackOverflowSee Azure AD StackOverflow for any similar errors or problems.

后续步骤Next steps

Azure AD 开发人员指南Azure AD Developer Guide

同意并将应用集成到 Azure ADConsent and Integrating Apps to Azure AD

Microsoft 标识平台终结点中的权限和许可Permissions and consent in the Microsoft identity platform endpoint

Azure AD StackOverflowAzure AD StackOverflow