【问题标题】:OAuth authorize endpoint returns invalid_request in ASP NET Web APIOAuth 授权端点在 ASP NET Web API 中返回 invalid_request
【发布时间】:2018-10-05 22:03:31
【问题描述】:

我正在构建一个 ASP.NET Web API,它需要支持来自 3rd 方客户端的登录。第一方登录工作正常,可以向我的 API 端点发出经过身份验证的请求。

但是,当我尝试调用我的 /oauth2/authorize 端点为第 3 方客户端生成不记名令牌时,我无法让它工作。

我的 OAuth 提供程序如下所示:

我的配置如下所示:

【问题讨论】:

    标签: c# asp.net asp.net-web-api oauth-2.0 owin


    【解决方案1】:

    尝试在 AuthorizeEndPoint 方法中调用 context.Validate()。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-20
      • 2018-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-07
      相关资源
      最近更新 更多