AuthInfo Structure
Last updated
Last updated
The AuthInfo
claim provides detailed user authorization information. The table below describes the fields included in the AuthInfo
claim returned by the .
Auth_Result_Set
JSON object contains authorization result for the user for a specific Digital Service.
JSON
-
Yes
CPEntID_SUB
Sub-UEN value of that entity to which the user is assigned the authorization. Sub-UEN is a mandatory attribute for a Digital Service if there is no value was supplied, "ERROR_MISSING_VALUE" will be returned for the field.
String
32
Yes
CPESrvcID
ID of the Digital Service that is requesting the authorization.
String
25
Yes
CPRole
The role assigned to the user for that Digital Service.
String
20
Yes
EndDate
The end date for validity of the role i.e. the date at which this role is no longer valid for the user for that Digital Service.
String (format YYYY-MM-DD)
10
Yes
ESrvc_Result
Array of JSON objects, each object contains authorization details for a specific Digital Service. There could be scenario where ESrvc_Row_Count = 0, when ESrvc_Row_Count = 0, ESrvc_Result will be an empty array
Array of JSON
-
Yes
ESrvc_Row_Count
This value indicates the number of Digital Services for which the authorizations are present in the Result_Set JSON object.
Integer
10
Yes
name
Parameter name defined by defined by Digital Service administrator
String
30
No
Parameter
This is optional array of parameters (JSON objects containing only name and value pair attributes) defined by Digital Service administrator. These parameters will be populated as required. These parameters use a name-value pair format and will contain the "Digital Service defined name" from Corppass in the name field. If no parameters are defined this will be returned as empty array. If a parameter is defined as mandatory by the Digital Service administrator but no value was supplied, "ERROR_MISSING_VALUE" will be returned for the field.
Array of JSON
-
Yes
Result_Set
Digital Service authorization result set.
JSON
-
Yes
Row
Array of JSON objects, each JSON object represents actual authorization values for a given Sub-UEN for a user.
Array of JSON
-
Yes
Row_Count
The count of the number of rows included in the auth result set e.g. If the user access to two Sub-UENs within the same entity, the result set will contain two rows with the role information for each Sub-UEN in one individual row.
Integer
10
Yes
StartDate
The start date for validity of the role i.e. the date from which this role is valid for the user for that Digital Service.
String (format YYYY-MM-DD)
10
Yes
value
Parameter value defined by defined by Digital Service administrator
String
66
No