【问题标题】:The redirect URI in the request, https://localhost:44322/domain.com, does not match the ones authorized for the OAuth client请求中的重定向 URI https://localhost:44322/domain.com 与授权给 OAuth 客户端的 URI 不匹配
【发布时间】:2020-07-16 08:53:04
【问题描述】:

我在本地运行应用程序时收到此错误,但没有执行任何操作,它在第一页上给了我错误。这是错误的屏幕截图。 .

The redirect URI in the request, https://localhost:44322/domain.com, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs

有人可以帮忙吗?

【问题讨论】:

    标签: c# asp.net-core authentication model-view-controller


    【解决方案1】:

    你需要在google账号配置中授权你的localhost重定向url

    在授权重定向 URI 文本输入框中,设置重定向 URI。 例如,https://localhost:44312/signin-google

    您可以在此处阅读更多信息: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/google-logins?view=aspnetcore-3.1

    【讨论】:

    猜你喜欢
    • 2019-05-09
    • 2021-06-29
    • 2014-04-30
    • 2015-08-09
    • 1970-01-01
    • 2021-07-09
    • 2020-10-15
    • 1970-01-01
    • 2017-11-28
    相关资源
    最近更新 更多