-
- All Superinterfaces:
SecurityProvider
- All Known Implementing Classes:
IdcsMtRoleMapperProvider
,IdcsMtRoleMapperRxProvider
,IdcsRoleMapperProvider
,IdcsRoleMapperProviderBase
,IdcsRoleMapperRxProvider
,IdcsRoleMapperRxProviderBase
- 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 interface SubjectMappingProvider extends SecurityProvider
A provider that maps subject(s) authenticated by an authentication provider to a new subject. This may be replacing the subject, adding roles to the subject etc. Subjects may be auser subject
or aservice subject
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<AuthenticationResponse>
map(ProviderRequest providerRequest, AuthenticationResponse previousResponse)
Map grants from authenticated request (e.g.-
Methods inherited from interface io.helidon.security.spi.SecurityProvider
supportedAnnotations, supportedAttributes, supportedConfigKeys, supportedCustomObjects
-
-
-
-
Method Detail
-
map
CompletionStage<AuthenticationResponse> map(ProviderRequest providerRequest, AuthenticationResponse previousResponse)
Map grants from authenticated request (e.g. one or both ofProviderRequest.subject()
orProviderRequest.service()
returns a non-empty value) to a new authentication response. The provider can change/add/remove grants (such as groups, scopes, permissions) or change the subject to a different one. This method is only invoked after a successful authentication.- Parameters:
providerRequest
- request to get user and service subjects frompreviousResponse
- response from previous authentication or subject mapping provider- Returns:
- a new authentication response with updated user and/or service subjects
-
-