Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • A valid User Pin is provided.
  • A valid User Id Username and Password are provided.
  • A valid User Email and Password are provided.
  • A temporal security token (with a life-span of 5 minutes) is requested.

...

NameTypeMandatoryDescription
pinStringOnly if 'email' and 'userIdusername' are omitted (Or 'temporal' parameter is provided).The pin used to identify a user. If this parameter is provided, 'email' and 'userIdusername' parameters are discarded.
userIdusernameStringOnly if neither 'pin' nor 'email' are provided (Or 'temporal' parameter is provided).The id of a user. If this parameter is provided, a valid 'password' must also be provided.
emailStringOnly if neither 'pin' nor 'userIdusername' are provided (Or 'temporal' parameter is provided).The email of a user. If this parameter is provided, a valid 'password' must also be provided.
passwordStringOnly if 'userIdusername' or 'email' are provided (Or 'temporal' parameter is provided).The password of the user.
deviceIdStringYes (Unless 'temporal' parameter is provided).The id of the device where the user is being logged in.
temporalStringNoIndicates that we want to create a temporal security token. If this parameter is provided, all the other parameters are discarded.

...

Code Block
languagejs
titleResult
collapsetrue
{
"validateAccountFact":{
"statusFact":{
"success":true
},
"accountFact":{
"pin":"poda",
"username":"3",
"token":"d2360c39-637b-41da-988d-f031db5affbb",
"userId":"poda",
"facilityId":"UNC",
"organizationId":"UNC",
"activeDevices":[
],
"role":{
"id":2,
"description":"",
"name":"pod",
"permissions":[
{
"id":54,
"name":"read_user",
"organizationId":"UNC"
},
{
"id":58,
"name":"list_patients_from_current_facility"
}
],
"organizationId":"UNC"
}
}
}
}

...