Interface CurrentUserAccessTokenResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
SPI for resolving the current authenticated user's upstream access token. Used wherever the
engine needs the user's token at call time — for example as the
assertion parameter
in an OAuth2 On-Behalf-Of token exchange.
A null return indicates no user context is currently available. The engine treats
this as a non-retriable failure and throws an unrecoverable-job exception.
-
Method Summary
Modifier and TypeMethodDescriptionResolves the access token for the currently authenticated user.
-
Method Details
-
resolveAccessToken
String resolveAccessToken()Resolves the access token for the currently authenticated user.- Returns:
- the access token string, or
nullif no user context is available
-