Skip to content

Conversation

@jpengar
Copy link
Contributor

@jpengar jpengar commented Nov 24, 2025

What type of PR is this?

  • enhancement/feature

What this PR does / why we need it:

This PR is intended to create a DRAFT proposal for a Consent Management API that enables Controlled Capture Delegation feature for API Consumers.

Which issue(s) this PR fixes:

Fixes #42

Special notes for reviewers:

  • This is a draft proposal to be agreed upon.
  • It is still pending discussion (if applicable) as to whether this API should be in its own repository or managed under the same repository as the Consent Info API.

Changelog input

 consent-management draft proposal

Additional documentation

camaraproject/APIBacklog#276
camaraproject/APIBacklog#277
camaraproject/IdentityAndConsentManagement#327
#42

@github-actions
Copy link

github-actions bot commented Nov 24, 2025

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 2 0 0.01s
✅ API spectral 2 0 2.85s
✅ GHERKIN gherkin-lint 1 0 0.32s
✅ REPOSITORY git_diff yes no 0.0s
✅ REPOSITORY secretlint yes no 0.66s
✅ YAML yamllint 2 0 0.6s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

- "location-verification:verify"
purpose: "dpv:FraudPreventionAndDetection"
consentStatus: "PENDING"
ConsentText:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a version or lastUpdated field to track legal text updates.

$ref: "#/components/responses/Generic403"
"404":
$ref: "#/components/responses/Generic404"
/consents/retrieve-info:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When requestConsentText is false, this API is similar to consentInfo ?
Consent-info will disappear and be replaced by this one ?

- Consent Management
parameters:
- $ref: "#/components/parameters/x-correlator"
- $ref: "#/components/parameters/Accept-Language"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have only on accepted langage or can we pass a list with an order ?

description: |
This operation allows the API Consumer to create a Consent for a given User, scope(s) and Purpose. The API Consumer is identified by the `client_id` parameter deduced from the access token.

The API Provider will set the creation date of the User Consent to the current date and time when the `createConsent` operation is invoked successfully by the API Consumer.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should specify the consistent use of UTC timezone to avoid ambiguity for creationdate and expirationdate.


This approach simplifies API usage for API consumers using a three-legged access token to invoke the API by relying on the information that is associated with the access token and was identified during the authentication process.

## Error handling:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps i missed it but there is no specific error message dedicated to an invalid or non-existent consentTextId.
It would be advisable to add one to improve robustness and traceability, especially for server-side validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Evolution of Consent Info API — Controlled Consent Capture Delegation

3 participants