Skip to content

Add Support For Adding Fiter Before And After IN Reactive Spring Security #6138

@ankurpathak

Description

@ankurpathak

Currently we only have support for adding WebFilter at support in Reactive Spring Security. We should
also add support for adding fiters before and after in Reactive Spring Security. Since its also possible
to add WebFilter before and after relative to some WebFilter. We have support for same in Non Reactive
Spring Security. Its a surprise, why the same is missing in Reactive Spring Security??

@Bean
    public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
        http
                .addFilterAt(filterConfig.securityContextCompositeWebFilter(), SecurityWebFiltersOrder.HTTP_BASIC)
             
        ;
        return http.build();

    }

We can add filter in place of Http Basic Authentication Filter. But its not possible to add filter after and
before Http Basic Authentication Filter, since we don't have any api for same.

Metadata

Metadata

Assignees

Labels

in: webAn issue in web modules (web, webmvc)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions