Skip to content

VerifyPasscode

Define an action that trigger the passcode or biometric verification to verify user access right. It uses the same passcode verification that is set using the passcode policy for this app in the SAP Mobile Services. The passcode verification will only show up if passcode policy has been enabled for the app.

  • If user entered the correct passcode, OnSuccess event will be triggered.
  • If passcode policy has not been enabled for the app, OnSuccess event will be triggered.
  • If user cancel the verification, OnFailure event will be triggered.

All the properties defined under Action are applicable to this action.

VerifyPasscode Properties

Property Type Required Default
AllowCancel boolean No true
_Type const Yes

AllowCancel

If set to true, it will allow the passcode verification to be cancelled.

  • type: boolean
  • default: true

_Type

  • type: const

The value of this property must be:

"Action.Type.VerifyPasscode"

Action Result

This action does not have an action result.


Examples

// VerifyPasscode.action
{
    "Type": "Action.Type.VerifyPasscode",
    "OnFailure": "/MDKApp/Actions/FailureMessage.action",
    "OnSuccess": "/MDKApp/Actions/SuccessMessage.action"
}
// VerifyPasscodeNotAllowCancel.action
{
    "Type": "Action.Type.VerifyPasscode",
    "AllowCancel": false,
    "OnFailure": "/MDKApp/Actions/FailureMessage.action",
    "OnSuccess": "/MDKApp/Actions/SuccessMessage.action"
}