0

在登台中使用 Duo 作为 IdP 的 Spring Boot SAML 身份验证,在 IDP 登录后重新重定向到 Spring 表单登录页面。

虽然我在本地使用 Okta 作为 IdP 尝试了相同的应用程序,但它可以工作。

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.4.3</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

<saml2-core.spring.version>1.0.10.RELEASE</saml2-core.spring.version>

WebsecurityConfigurerAdapter overrides:

   @Override
   protected void configure(HttpSecurity http) throws Exception {
    http
    .csrf()
    .disable();

    http
    .httpBasic()
    .authenticationEntryPoint(samlEntryPoint);

    http
    .addFilterBefore(metadataGeneratorFilter(), ChannelProcessingFilter.class)
    .addFilterAfter(samlFilter(), BasicAuthenticationFilter.class)
    .addFilterBefore(samlFilter(), CsrfFilter.class);
    ...
  }

  Local :
  <saml2p:Response Destination="http://localhost:8080/saml/SSO" ID="id6615428662209589383819140"

 staging:
 <samlp:Response Destination="https://****.****.***/saml/SSO"


 I compared the saml request for both local and Prod and they look same.

 Please let know what i can check.
4

0 回答 0