【问题标题】:Restricting IdentityServer3 ClientCredentials access by IP address通过 IP 地址限制 IdentityServer3 ClientCredentials 访问
【发布时间】:2017-04-06 15:57:38
【问题描述】:

我正在使用 IdentityServer3 实现身份服务器,并希望将特定 ClientCredentials 客户端限制为一组 IP 地址。

我尝试了一些方法:

  • 我在 Client 对象上看到 AllowedCorsOrigins 属性,如果启用此属性,我会看到 IdentityServer 日志记录警告,但它不会阻止访问。
  • 将 OwinEnvironmentService 注入到我的 UserService 的构造函数中 - ClientCredentials 流似乎没有使用 UserService。

这可能吗,还是我误解了如何使用 ClientCredentials?

【问题讨论】:

    标签: oauth identityserver3


    【解决方案1】:

    这对于客户端凭据流来说是不容易实现的。但是您可以改为实现自定义的 m 授权类型。

    https://identityserver.github.io/Documentation/docsv2/advanced/customGrantTypes.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-30
      • 1970-01-01
      • 2015-10-21
      • 2011-07-05
      • 1970-01-01
      相关资源
      最近更新 更多