JSON Pointer syntax reference
JavaScript Object Notation (JSON) Pointer defines a syntax for identifying a specific value within a JSON payload. Using the sample payload and JSON Pointer examples below, identify the attributes that you want to use to populate your attribute contract.
For a complete technical description of JSON Pointer syntax, see JavaScript Object Notation (JSON) Pointer on ietf.org.
Example JSON payload
{
"aud": "FGHI1J2K34L5MN6OPQ7R",
"auth_context": {
"access_device": {
"ip": "192.0.0.1",
"hostname": null,
"location": {
"state": "New York",
"city": "New York",
"country": "United States"
}
},
"factor": "duo_push",
"txid": "8adfb30c-bde3-97a6-b753-3abbcca321654",
"auth_device": {
"ip": "192.0.0.1",
"location": {
"state": "New York",
"city": "New York",
"country": "United States"
},
"name": "mydevice"
},
"reason": "user_approved",
"event_type": "authentication",
"user": {
"key": "FGHI1J2K34H2MDLAZGVO",
"name": ""
},
"timestamp": 1581993342,
"result": "success",
"alias": "",
"application": {
"key": "FGHI1J2K34C3PC0HBW0M",
"name": "Web SDK"
}
},
"auth_result": {
"status_msg": "Login Successful",
"status": "allow",
"result": "allow"
},
"auth_time": 1581993342,
"exp": 1581993642,
"iat": 1581993376.883131,
"iss": "https://api-a123bcd4.duosecurity.com/oauth/v1/token",
"sub": "janetsmith"
}
JSON Pointer syntax:
Description | JSON Pointer | Example value |
---|---|---|
Access device location (country) |
/auth_context/access_device/location/country |
|
Status message |
/auth_result/status_msg |
|
Authentication result |
/auth_result/result |
|