Interface OpenIdAuthenticationMapper

  • All Known Implementing Classes:
    DefaultOpenIdAuthenticationMapper
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @DefaultImplementation(DefaultOpenIdAuthenticationMapper.class)
    @FunctionalInterface
    public interface OpenIdAuthenticationMapper
    Responsible for converting an OpenID token response to a Authentication representing the authenticated user.
    Since:
    1.2.0
    • Method Detail

      • createAuthenticationResponse

        @NonNull
        io.micronaut.security.authentication.AuthenticationResponse createAuthenticationResponse​(java.lang.String providerName,
                                                                                                 OpenIdTokenResponse tokenResponse,
                                                                                                 OpenIdClaims openIdClaims,
                                                                                                 @Nullable
                                                                                                 State state)
        Parameters:
        providerName - The OpenID provider name
        tokenResponse - The token response
        openIdClaims - The OpenID claims
        state - The state of the response
        Returns:
        An authentication response