Update location-verification.yaml for Spring25#281
Conversation
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
| message: Request not authenticated due to missing, invalid, or expired credentials. | ||
| GENERIC_401_AUTHENTICATION_REQUIRED: | ||
| summary: Generic Authentication Required | ||
| description: New authentication is needed, authentication is no longer valid |
There was a problem hiding this comment.
is it possible to explain the difference between "authentication is no longer valid" and "expired credentials" in more detail ?
There was a problem hiding this comment.
There is an issue in Commonalities to discuss this: camaraproject/Commonalities#368
IMO, UNAUTHENTICATED is the most generic one, which would cover all cases where the access token is not longer valid (typically because it is expired). AUTHENTICATION_REQUIRED is more specific, when a full new authentication from scratch is needed. But we could use the generic one and rely on the message for further description.
jlurien
left a comment
There was a problem hiding this comment.
- Test plan should be updated in the same PR
|
I have updated the PR with new changes:
|
bigludo7
left a comment
There was a problem hiding this comment.
One small comment on the test definition else good for me.
| Scenario: None of the provided device identifiers is supported by the implementation | ||
| Given that some types of device identifiers are not supported by the implementation | ||
| And the request body property "$.device" only includes device identifiers not supported by the implementation | ||
| When the HTTP "POST" request is sent |
There was a problem hiding this comment.
We should probably add: And the header "Authorization" is set to a valid access token which does not identify a single device
There was a problem hiding this comment.
Yes, you are right, but this is copied from Commonalities artifact, so I will have to update there as well
What type of PR is this?
What this PR does / why we need it:
Updates location-verification API with the changes derived from Commonalities and ICM updates
x-camara-guidelines: 0.5.0
Which issue(s) this PR fixes:
Fixes #276, #277
Special notes for reviewers:
There are still some open discussions in Commonalities that may impact this PR, so we will keep it open until there is a final version for x-camara-guidelines: 0.5.0
Changelog input
Additional documentation