Step

data class Step<T>(val state: UIAState, getFallbackUrlCallback: (AuthenticationType) -> Url, authenticateCallback: suspend (AuthenticationRequest) -> Result<UIA<T>>, onSuccessCallback: suspend () -> Unit = {}) : UIA<T>

Constructors

Link copied to clipboard
fun <T> Step(state: UIAState, getFallbackUrlCallback: (AuthenticationType) -> Url, authenticateCallback: suspend (AuthenticationRequest) -> Result<UIA<T>>, onSuccessCallback: suspend () -> Unit = {})

Functions

Link copied to clipboard
suspend fun authenticate(request: AuthenticationRequest): Result<UIA<T>>
Link copied to clipboard
fun getFallbackUrl(authenticationType: AuthenticationType): Url

Properties

Link copied to clipboard
val state: UIAState

Extensions

Link copied to clipboard
suspend fun <T> UIA<T>.injectOnSuccessIntoUIA(onSuccessCallback: suspend () -> Unit = {}): UIA<T>