Interface SubjectMappingProvider

    • Method Detail

      • map

        CompletionStage<AuthenticationResponse> map​(ProviderRequest providerRequest,
                                                    AuthenticationResponse previousResponse)
        Map grants from authenticated request (e.g. one or both of ProviderRequest.subject() or ProviderRequest.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.
        providerRequest - request to get user and service subjects from
        previousResponse - response from previous authentication or subject mapping provider
        a new authentication response with updated user and/or service subjects