【发布时间】:2020-02-04 16:59:03
【问题描述】:
我使用https://github.com/oktadeveloper/okta-spring-boot-saml-example实现了spring boot security saml示例
它与 Okta IdP 合作。
但是,我想向我自己的 IdP 发送没有服务提供商证书的 SAML 请求。
您能帮我禁用服务提供商证书吗?
请在下面找到配置代码:
@覆盖 protected void configure(final HttpSecurity http) 抛出异常 {
http.authorizeRequests().antMatchers("/saml*").permitAll().anyRequest().authenticated().and().apply(saml())
.serviceProvider().keyStore().storeFilePath(this.keyStoreFilePath).password(this.password)
.keyname(this.keyAlias).keyPassword(this.password).and().protocol("https")
.hostname(String.format("%s:%s", "localhost", this.port)).basePath("/").and().identityProvider()
.metadataFilePath(this.metadataUrl);
}
请在下面找到示例 SAMLrequest:
【问题讨论】:
标签: spring-boot spring-security saml-2.0 spring-saml spring-dsl