Challenge Modes
🔁 ChallengeModes
ChallengeModes are enumerated constants used by the REL-ID SDK to indicate the context or purpose of a challenge during user authentication, activation, or credential update flows.
🎯 Challenge Mode Types
ChallengeMode | Value | Title / Usage | Used In Workflows | Application Behavior |
---|---|---|---|---|
RDNA_CHALLENGE_OP_VERIFY | 0 | User login / Password verification | Login | Call setPassword() with mode 0 and user password. |
RDNA_OP_UPDATE_CREDENTIALS | 1 | Set Password (during activation) | Activation | Call setPassword() with mode 1 and password. |
RDNA_OP_UPDATE_CREDENTIALS | 2 | Update Password | Credential Update | Call updatePassword() with mode 2, passing old and new passwords. |
RDNA_OP_AUTHORIZE_NOTIFICATION | 3 | Password verification for Notification Update | Step-up Auth during notification update flow | Use setPassword() with mode 3 and password. |
RDNA_OP_UPDATE_ON_EXPIRY | 4 | Password Expiry | Password Expiry Flow | Use updatePassword() with mode 4 and new/old passwords. |
RDNA_OP_AUTHORIZE_LDA_MANAGEMENT | 5 | LDA Authorization Mode | LDA Toggle | Use setPassword() with mode 5 and password. |
RDNA_OP_STEP_UP_AUTH_AND_SIGN_DATA | 12 | Authenticate and Sign Data | Step-up Auth + Signing | Use setPassword() with mode 12 and password before calling authenticateUserAndSignData() |
RDNA_OP_STEP_UP_AUTH | 13 | Step-up Authentication | Step-up Authentication | Reserved for future flows |
RDNA_MANAGE_LDA_SET_PASS | 14 | LDA Toggling Set Password | LDA Toggle | Use setPassword() with mode 14 |
RDNA_MANAGE_LDA_RECONFIRM_VERIFY_PASS | 15 | Reconfirm Password for LDA | LDA Settings Reconfirmation | Used to reconfirm password when changing LDA settings. Call setPassword API with mode 15 and password |
RDNA_MANAGE_LDA_SET_LDA | 16 | LDA toggling User Consent | LDA Toggle | For device LDA toggling flows. Call setUserConsentForLDA API |
💡 Developer Notes
- You will typically receive the
challengeMode
as part of event callbacks likegetPassword
,onUserEnrollmentResponse
, etc. - Always pass the same mode back when calling relevant APIs like
setPassword
,updatePassword
, orauthenticateUserAndSignData
.
Updated 3 months ago