我正在使用 VS 2015 创建具有 Azure AD 身份验证的新 Web 应用程序(.NET 核心)。运行应用程序后,我看到 Azure AD 自动为我注册新应用程序。然后我可以使用我的 Azure 用户成功登录。
但我想手动注册我的应用程序。因此,我按照此站点上的说明进行操作: https ://docs.microsoft.com/en-us/azure/active-directory/active-directory-app-registration
然后我在 Azure AD 上手动注册我的新应用程序,然后将生成的客户端 ID 更新为我的 appsettings.json,然后使用 Azure 用户运行并登录。我收到错误消息:
An unhandled exception occurred while processing the request.
HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
MoveNext
AggregateException: Unhandled remote failure. (Response status code does not indicate success: 401 (Unauthorized).)
MoveNext
有专家能告诉我原因吗?我是 Azure 的新手。还有一个问题是我不知道为什么在我的 appsetting.json 文件中没有 SecretKey?

