有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何使用KeyClope通过spring安全性实现基本身份验证

我想使用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();
    }

波姆。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>

共 (0) 个答案