Returns the user consent to Trust Party.
POST {{baseUrl}}/claims/user-consents
Inform the Trust Party about the user consent. If the consent is given,
the identity attributes will be shared with Relying Party.
This API is mandatory.
Request Body
{"arid"=>"a15fa6de-b199-11eb-8529-0242ac130003", "userConsent"=>"ACCEPT", "pds"=>"ZGZnZGVmZ2RnZGVnZXJnZXJncmRnZXJ5aGdld3J0eWJld3J5dHdleXd5d3l3cmFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh", "sdkAuditEvents"=>[{"dateTime"=>"2020-01-28T13:16:01.714-05:00", "softwareVersion"=>"1.0.0", "userProfileId"=>"df52649e-4096-456a-bca0-751ee470009f", "sessionId"=>"123ae1aa-6744-433e-879d-7da48d631234", "transactionGroupId"=>"28eae1aa-6744-433e-879d-7da48d63e89a", "logRequestFlow"=>"CoreSDK-TP", "logEvent"=>"ID Enrollment", "logEventType"=>"User Profile Creation", "osVersion"=>"Android 5.0", "deviceMake"=>"Samsung S10", "type"=>"audit", "audit"=>{"privacyPolicy"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "userBiometricConsent"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "event"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "eventType"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "result"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "eventGeneratedSource"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "owner"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "requestDetails"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "responseDetails"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}, {"dateTime"=>"2020-01-28T13:16:01.714-05:00", "softwareVersion"=>"1.0.0", "userProfileId"=>"df52649e-4096-456a-bca0-751ee470009f", "sessionId"=>"123ae1aa-6744-433e-879d-7da48d631234", "transactionGroupId"=>"28eae1aa-6744-433e-879d-7da48d63e89a", "logRequestFlow"=>"CoreSDK-TP", "logEvent"=>"ID Enrollment", "logEventType"=>"User Profile Creation", "osVersion"=>"Android 5.0", "deviceMake"=>"Samsung S10", "type"=>"audit", "audit"=>{"privacyPolicy"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "userBiometricConsent"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "event"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "eventType"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "result"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "eventGeneratedSource"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "owner"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "requestDetails"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "responseDetails"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}], "tpAuditMetadata"=>{"sessionId"=>"be3ad617-04ad-43e1-a438-79425b6511b6", "transactionGroupId"=>"be3ad617-04ad-43e1-a438-79425b6511b6"}, "sdkVersion"=>"2.3.0", "locale"=>"en-US", "countryCode"=>"US"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"flow":"APP2APP","pds":"ZGZnZGVmZ2RnZGVnZXJnZXJncmRnZXJ5aGdld3J0eWJld3J5dHdleXd5d3l3cmFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh","rpSpecificIdentifier":"46eb72430ffeca3daf31360264fa0424ba4facfdcb69c6f43e73063f290a75a8","redirectUri":"https://sample-rp-redirect-uri.com/?arid=2cd8ed7e-0cbc-44cc-b393-45e42915d6db\u0026code=eyJ4NXQjUzI1NiI6Ildvank5ekFZQzFCWlMxMTJDeTIzM\u0026state=random%20string%22"}