【问题标题】:Spring Cloud Gateway with SAML带有 SAML 的 Spring Cloud Gateway
【发布时间】:2020-07-31 02:34:24
【问题描述】:

我想将 Spring Cloud Gateway 与 SAML 一起使用。这可能吗? 似乎 Spring Security 的 Saml 扩展是基于旧的 Spring Stack 并且不能与 Gateway 一起使用。

有人有这方面的经验吗?

【问题讨论】:

标签: spring spring-security spring-saml spring-cloud-gateway


【解决方案1】:

恐怕在撰写本文时不支持 SAML。 Spring Cloud Gateway 已使用 Reactive 编程重新开发,现在基于 Spring WebFlux。目前仅支持以下身份验证方法:

  1. OAuth 2.0 or OpenID Connect 1.0
  2. x509 authentication

这在SCG page:

Spring Cloud Gateway 基于 Spring Boot 2.x、Spring WebFlux 和 项目反应堆。因此,许多熟悉的同步 库(例如 Spring Data 和 Spring Security)和模式 您知道使用 Spring Cloud Gateway 时可能不适用。如果你是 不熟悉这些项目,我们建议您先阅读他们的 帮助您熟悉一些新概念的文档 在使用 Spring Cloud Gateway 之前。

以前的网关 spring-cloud-netflix-zuul,基于 Servlet 并支持 SAML,已从 Spring Cloud 2020 中删除。

Here 是 GitHub 上的一个开放问题,SAML2 for reactive environment,我们可以在其中投票要求实现这一点。

【讨论】:

    猜你喜欢
    • 2021-04-02
    • 1970-01-01
    • 2020-06-20
    • 2021-08-07
    • 2021-09-29
    • 2023-01-21
    • 2023-02-02
    • 2021-07-23
    • 1970-01-01
    相关资源
    最近更新 更多