Interface ServerOAuth2AuthorizedClientExchangeFilterFunction.PrincipalResolver
- Enclosing class:
ServerOAuth2AuthorizedClientExchangeFilterFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface ServerOAuth2AuthorizedClientExchangeFilterFunction.PrincipalResolver
A strategy for resolving a
Mono of the principal
from an intercepted request.- Since:
- 7.1
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.springframework.security.core.Authentication> resolve(org.springframework.web.reactive.function.client.ClientRequest request) Resolve aMonoof theprincipalfrom the current request, which is used to obtain anOAuth2AuthorizedClient.
-
Method Details
-
resolve
reactor.core.publisher.Mono<org.springframework.security.core.Authentication> resolve(org.springframework.web.reactive.function.client.ClientRequest request) Resolve aMonoof theprincipalfrom the current request, which is used to obtain anOAuth2AuthorizedClient.- Parameters:
request- the intercepted request, containing HTTP method, URI, headers, and request attributes- Returns:
- a
Monoof theprincipalto be used for resolving anOAuth2AuthorizedClient
-