Skip to content

Add AuthenticationConverter interface #5338

Closed
@edeandrea

Description

@edeandrea

Based on the discussion in #5328 add an AuthenticationConverter interface that is used within the AuthenticationWebFilter. This interface should look like

@FunctionalInterface
public interface AuthenticationConverter extends Function<ServerWebExchange, Mono<Authentication>> {

}

Then retrofit ServerFormLoginAuthenticationConverter, ServerHttpBasicAuthenticationConverter, and ServerOAuth2LoginAuthenticationTokenConverter to implement AuthenticationConverter.

Deprecate the existing

public void setAuthenticationConverter(Function<ServerWebExchange, Mono<Authentication>> authenticationConverter)

and add a new method

public void setAuthenticationConverter(AuthenticationConverter authenticationConverter)

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: docsAn issue in Documentation or samplesin: webAn issue in web modules (web, webmvc)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions