authn

abstract suspend fun authn(authenticator: Authenticator, authenticatorParameters: LinkedHashMap<String, String>): AuthenticationFlow?

Send the authentication parameters to the authentication endpoint and get the next step of the authentication flow. If the authentication flow has only one step, this method will return the success response of the authentication flow if the authentication is successful.

Return

AuthenticationFlow with the next step of the authentication flow

Parameters

authenticator

Authenticator of the selected authenticator

authenticatorParameters

Authenticator parameters of the selected authenticator as a LinkedHashMap with the key as the parameter name and the value as the parameter value