PASSWORD management - monetplus/IDport GitHub Wiki
The PASSWORD method is single-instance, therefore there could be only one instance active. The existing active instance is deactivated with activating of new instance. Instances in other states are not influenced by instance activation. Method state changes are independent from instance state changes and they do not influence each other. You must have method and instance both in ACTIVE state to be able to perform transaction operations.
Only the method could be blocked by unsuccessful transaction verification attempts. The instance could be blocked only manually. Possible configuration settings:
- number of unsuccessful transaction verification attempts
- time of temporary method blocking
- number of repeated temporary blocking before permanent blocking
- wheter to cancel transaction after blocking
PASSWORD method state diagram
-
Obtaning method information
IAPI/methodInfo
-
Obtaining salt and algorithm type
IAPI/methodParams
-
Setting instance name
IAPI/setInstanceName
-
Manual method blocking
IAPI/blockMethod
-
Manual method unblocking
IAPI/unblockMethod
-
Method deactivating
IAPI/deactivateMethod
-
Manual instance blocking
IAPI/blockInstance
-
Manual instance unblocking
IAPI/unblockInstance
-
Instance deactivating
IAPI/deactivateInstance
Parametr | Description | Value/ |
---|---|---|
.tenant |
organisation name | <Monet+> |
.muid |
user identifier | |
.methodType |
method type | "PASSWORD" |
- this endpoint returns JSON object with method and instance information and unsuccessful attempts counter
- specific parameters:
- IN:
.methodTypes
- array of methods for which the detailed information is demanded - OUT:
.data.methodInfo[].methodType = PASSWORD
- method type - OUT:
.data.methodInfoi[].state
- method state - OUT:
.data.methodInfo[].activeInstances
- number of instances in ACTIVE state - OUT:
.data.methodInfo[].instances[].instanceId
- instance identifier - OUT:
.data.methodInfo[].instances[].state
- instance state - OUT:
.data.methodInfo[].instances[].instanceName
- explicitly set instance name (IAPI/setInstanceName
) - OUT:
.data.methodInfo[].failedAttempts
- number of unsuccessful transaction verification attempts - OUT:
.data.methodInfo[].remainingAttempts
- number of remaining transaction verification attempts - OUT:
.data.methodInfo[].blockedUntil
- time of temporary blocking release
- IN:
- REST API callback:
IAPI/methodInfo
IN: .tenant, .muid
.methodTypes
OUT: .data.methodInfo
- obtaining salt and algorithm type for calculation of password hash and transaction verification code
- REST API callback:
IAPI/methodParams
IN: .tenant, .muid, .methodType
OUT: .data.methodSpecific.salt
.data.methodSpecific.algType
- specific parameters:
- IN:
.instanceId
- instance identifier (obtained fromIAPI/initiateInstance
orIAPI/methodInfo
) - IN:
.name
- instance name (if left blank, actual name is deleted)
- IN:
- REST API callback:
IAPI/setInstanceName
IN: .tenant, .muid, .methodType
.instanceId, .name
- REST API callback:
IAPI/blockMethod
IN: .tenant, .muid, .methodType
- REST API callback:
IAPI/unblockMethod
IN: .tenant, .muid, .methodType
- REST API callback:
IAPI/deactivateMethod
IN: .tenant, .muid, .methodType
- specific parameters:
- IN:
.instanceId
- instance identifier (obtained fromIAPI/initiateInstance
orIAPI/methodInfo
)
- IN:
- REST API callback:
IAPI/blockInstance
IN: .tenant, .muid, .methodType
.instanceId
- specific parameters:
- IN:
.instanceId
- instance identifier (obtained fromIAPI/initiateInstance
orIAPI/methodInfo
)
- IN:
- REST API callback:
IAPI/unblockInstance
IN: .tenant, .muid, .methodType
.instanceId
- specific parameters:
- IN:
.instanceId
- instance identifier (obtained fromIAPI/initiateInstance
orIAPI/methodInfo
)
- IN:
- REST API callback:
IAPI/deactivateInstance
IN: .tenant, .muid, .methodType
.instanceId