-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: docsAn issue in Documentation or samplesAn issue in Documentation or samplesin: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: enhancementA general enhancementA general enhancement
Description
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
Labels
in: docsAn issue in Documentation or samplesAn issue in Documentation or samplesin: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: enhancementA general enhancementA general enhancement