我想使用KeyClope作为身份验证提供程序。我不想在我的应用程序中直接使用KeyClope依赖项。相反,我想使用spring security和webflux来访问KeyClope。
有没有一种方法可以使用spring security和KeyClope实现基本身份验证。我知道securitywebfilterchain类和@enablewebfluxsecurity,但如何将其与keydove集成?
@Bean
public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
http.authorizeExchange(exchanges -> exchanges.anyExchange().authenticated()).oauth2Login();
http.csrf().disable();
http.httpBasic();
return http.build();
}
pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency>
暂无答案!
目前还没有任何答案,快来回答吧!