core / com.schibsted.account.engine.integration.contract / PasswordlessContract

PasswordlessContract

interface PasswordlessContract : Contract<LoginResult>, Identifier.Provider, VerificationCode.Provider, Agreements.Provider, RequiredFields.Provider

The contract containing all the required steps to log in using the com.schibsted.account.flowengine.controller.PasswordlessController

Inherited Functions

onAgreementsRequested

abstract fun onAgreementsRequested(agreementsProvider: InputProvider<Agreements>, agreementLinks: AgreementLinksResponse): Unit

Called when a user has not agreed to the Schibsted account or platform agreements

onFlowReady

abstract fun onFlowReady(callbackProvider: CallbackProvider<T>): Unit

Called when the flow is ready to be completed. This is the last step of a flow and will return the result of the flow in the provided callback

onIdentifierRequested

abstract fun onIdentifierRequested(provider: InputProvider<Identifier>): Unit

Called when an identifier is required

onRequiredFieldsRequested

abstract fun onRequiredFieldsRequested(requiredFieldsProvider: InputProvider<RequiredFields>, fields: Set<String>): Unit

Called when additional fields are needed to log in the user

onVerificationCodeRequested

abstract fun onVerificationCodeRequested(verificationCodeProvider: InputProvider<VerificationCode>, identifier: Identifier): Unit

Called when a verification code is required