core / com.schibsted.account.engine.controller / PasswordlessController

PasswordlessController

class PasswordlessController : VerificationController<PasswordlessContract>

Controller which administrates the process of a login flow using passwordless login. This is parcelable and should be persisted during the login sequence. After the sequence has been completed, the reference to this can be destroyed. Note: After an Android configuration change, make sure you call evaluate again to re-trigger the currently active task.

Types

CREATOR

companion object CREATOR : Creator<PasswordlessController>

Constructors

<init>

PasswordlessController(parcel: Parcel)PasswordlessController(verifyUser: Boolean, locale: Locale = Locale.getDefault(), scopes: Array<String> = arrayOf(OIDCScope.SCOPE_OPENID))

Controller which administrates the process of a login flow using passwordless login. This is parcelable and should be persisted during the login sequence. After the sequence has been completed, the reference to this can be destroyed. Note: After an Android configuration change, make sure you call evaluate again to re-trigger the currently active task.

Functions

describeContents

fun describeContents(): Int

evaluate

fun evaluate(contract: PasswordlessContract): Unit

Perform the login sequence. Additional calls to this function will re-trigger the currently active task.

resendCode

fun resendCode(resultCallback: ResultCallback<NoValue>): Unit

Resend the verification code to the user. Please note that this is throttled by the Schibsted account back-end and will fail if requested too often

resetIdentifier

fun resetIdentifier(contract: PasswordlessContract): Unit

Changes the current identifier and sends a validation code to hte new identifier

writeToParcel

fun writeToParcel(parcel: Parcel, flags: Int): Unit

Inherited Functions

requestAgreements

fun requestAgreements(contract: T, user: User, agreementsLinks: AgreementLinksResponse): StepValidateAgreements?

requestRequiredFields

fun requestRequiredFields(contract: T, user: User, missingFields: Set<String>): StepValidateReqFields?

Companion Object Functions

createFromParcel

fun createFromParcel(parcel: Parcel): PasswordlessController

newArray

fun newArray(size: Int): Array<PasswordlessController?>