Replace 403 INVALID_TOKEN_CONTEXT with 422 UNNECESSARY_IDENTIFIER#59
Open
fernandopradocabrillo wants to merge 1 commit intocamaraproject:mainfrom
Open
Conversation
Contributor
Author
|
I created this PR automatically when applied the changes in local. We can keep it as "WIP" until we decide how to proceed |
GillesInnov35
approved these changes
Feb 12, 2026
Contributor
GillesInnov35
left a comment
There was a problem hiding this comment.
I think also we should be now aligned with Commonalities rules and specifications
Contributor
|
Thanks, @fernandopradocabrillo , but I have just made a comment in issue #50, so please look at it. Thanks, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Feature / API spec update
What this PR does
This PR replaces the
403 INVALID_TOKEN_CONTEXTerror with the422 UNNECESSARY_IDENTIFIERerror in the KYC Match API, aligning with the CAMARA Commonalities guidelines for APIs where the scope does NOT allow explicit confirmation as to whether the supplied identity matches that bound to the Three-Legged Access Token.Changes
info.descriptionupdates:phoneNumberMUST NOT be provided (previously it stated it "needs to match with the one associated with the access token").INVALID_TOKEN_CONTEXTerror documentation with theUNNECESSARY_IDENTIFIERerror case, which is returned when the subject can already be identified from the access token and the optionalphoneNumberis also included in the request.components.responsesupdates:INVALID_TOKEN_CONTEXTfrom theGeneric403response enum and its example.UNNECESSARY_IDENTIFIERto theGeneric422response enum.GENERIC_422_UNNECESSARY_IDENTIFIERexample.References