This flow describes steps need to be done prior activation of the first instance of mobile application.
- 
Activate method CM IAPI/activateMethod
- 
Activate method ACTIVATION_CODE IAPI/activateMethod
- 
Get activation code IAPI/activationCode
- Activation flow in mobile app
- the CM method must be activated at first to be allowed to activate mobile instances
- used parameters:
| Parameter | Description | Required | Value example | 
| methodType | type of used method | true | ["PASSWORD","ACTIVATION_CODE","SMS","CM","SPNEGO","TLS_CLIENT"] | 
| muid | user identifier | true | cg2t1 | 
| tenant | organisation name, if not supplied, default value from configuration is taken | false | Monet+ | 
- REST API callback:
IAPI/activateMethod
POST http://${BASE_URL}/case-iapi/v1/activateMethod
{
  "tenant": "idport",
  "muid": "cg2t1",
  "methodType": "CM"
}
{
  "status": "success",
  "data": {
    "methodSpecific": {
      "salt": "jR/4zwxmbaKnzR33SiEzLLPPhV6gSFrzISeeadpp5Us="
    }
  }
}
Activate method ACTIVATION_CODE
- the ACTIVATION_CODE method must at first to be allowed to generate activation codes
- used parameters:
| Parameter | Description | Required | Value example | 
| methodType | type of used method | true | ["PASSWORD","ACTIVATION_CODE","SMS","CM","SPNEGO","TLS_CLIENT"] | 
| muid | user identifier | true | cg2t1 | 
| tenant | organisation name, if not supplied, default value from configuration is taken | false | Monet+ | 
- REST API callback:
IAPI/activateMethod
POST http://${BASE_URL}/case-iapi/v1/activateMethod
{
  "tenant": "idport",
  "muid": "cg2t1",
  "methodType": "ACTIVATION_CODE"
}
{
  "status": "success",
  "data": {
    "instanceInfo": {
      "@type": "cz.monetplus.idport.component.model.InstanceInfo",
      "instanceId": "ACTIVATION_CODE:34aeb142-5619-4793-b60b-faed8ccaa18a:cg2t1",
      "state": "ACTIVE"
    }
  }
}
- generate activation code for specified muid
- used parameters:
| Parameter | Description | Required | Value example | 
| muid | user identifier | true | cg2t1 | 
| tenant | organisation name, if not supplied, default value from configuration is taken | false | Monet+ | 
- REST API callback:
IAPI/activationCode
POST http://${BASE_URL}/case-iapi/v1/activationCode
{
  "tenant": "idport",
  "muid": "cg2t1",
  "activationType": "FULL"
}
{
  "status": "success",
  "data": {
    "code": "802415",
    "userId": "[email protected]",
    "qrData": "UVI1fDF8MjI3QjI0QjB8Y2cydDFAbW9uZXRwbHVzLmN6fDgwMjQxNQ=="
  }
}
Activation flow in mobile app
- continue through activation flow in mobile application