bcgov / lcrb-dav

LCRB Digital Age Verification Service
Apache License 2.0
0 stars 6 forks source link

feat: adding not adding attributes #29

Closed gurjmatharu closed 2 months ago

gurjmatharu commented 2 months ago

Note: for prod redis is recommended (multi pod deployment)

retain_attributes: False

{
  "_id": {
    "$oid": "663e9afb1315b065be54d5d8"
  },
  "pres_exch_id": "c70e8471-450b-48d0-88f0-1241286ef792",
  "expired_timestamp": {
    "$date": "2024-05-10T22:09:34.702Z"
  },
  "metadata": null,
  "notify_endpoint": null,
  "retain_attributes": false,
  "proof_status": "success",
  "id": {
    "$oid": "663e9afb1315b065be54d5d8"
  }
}

Mongo retain_attributes: True

{
  "_id": {
    "$oid": "663e9b4953b24ae9359208c2"
  },
  "pres_exch_id": "59ce3e40-7b01-4706-ac07-3e769e0980c4",
  "expired_timestamp": {
    "$date": "2024-05-10T22:10:54.468Z"
  },
  "metadata": {
    "revealed_attributes": {
      "picture": "<redacted>"
    }
  },
  "notify_endpoint": null,
  "retain_attributes": true,
  "proof_status": "success",
  "id": {
    "$oid": "663e9b4953b24ae9359208c2"
  }
}