Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rules when using POST for sensitive data #358

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eric-murray
Copy link
Collaborator

What type of PR is this?

  • enhancement/feature

What this PR does / why we need it:

The existing design guidelines allow the request body to be optional when using POST to transfer sensitive data. The changes mandate that the request body be present, even if no parameters need to be sent (e.g. if a 3-legged access token is used). In this case, and empty JSON object must be sent.

This change ensures that all APIs passing sensitive data using POST adopt a common design pattern.

Which issue(s) this PR fixes:

Fixes #247

Does this PR introduce a breaking change?

  • Yes
  • No

APIs with an optional POST request body must now make it mandatory, even if no parameters need to be sent

Note: I'm not aware of any current APIs that will be impacted by this change. Device Identifier has a PR which will make the request body mandatory.

Special notes for reviewers:

None

Changelog input

 release-note
 - Update rules when using POST for sensitive data making request body mandatory

Additional documentation

None

Copy link
Collaborator

@PedroDiez PedroDiez left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Request body is required but all properties are optional
2 participants