Skip to content

Fix: Move the auth key from the body to the header for the HTTP requests of endpoint methods. - #2672

Merged
christerswahn merged 15 commits into
serverpod:mainfrom
christerswahn:fix/issue-663
Sep 2, 2024
Merged

christerswahn merged 15 commits into
serverpod:mainfrom
christerswahn:fix/issue-663

Conversation

@christerswahn

@christerswahn christerswahn commented Aug 26, 2024 •

Copy link
Copy Markdown
Contributor

Moves the auth key from the body to the header for the HTTP requests of endpoint methods.

Closes #663

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

If you need help, consider asking for advice on the discussion board.

Breaking changes

n/a

@christerswahn
christerswahn marked this pull request as ready for review August 28, 2024 07:48

@SandPod SandPod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work on this!

I think the solution proposed here is a good middle ground that preserves compatibility with old clients along with making us compatible with the future.

This PR also has a great suite of tests that instill confidence in the solution.

There are a whole bunch of different comments, questions, and suggestions. These are to ensure we get a shared understanding of how code is formatted in the Serverpod repo. The purpose of this is to make it as simple as possible to jump between different sections of the Serverpod Code and tests.

@hampuslavin hampuslavin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work! 👏 Just went through because I was curious and dropped some superficial comments along the way.

@vlidholt vlidholt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great work on this! 🤩 Left a few comments.

@christerswahn christerswahn changed the title Fix/issue 663 Fix: Move the auth key from the body to the header for the HTTP requests of endpoint methods. Aug 29, 2024

@SandPod SandPod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Almost there, still a couple of Suggestions and questions.

@SandPod SandPod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job, thanks for fixing all the feedback.

Last comment regarding some test fixes then I'm happy to approve this! 🚀

@SandPod SandPod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! 🎉

@christerswahn
christerswahn merged commit ba8d1f6 into serverpod:main Sep 2, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2024
@christerswahn
christerswahn deleted the fix/issue-663 branch September 2, 2024 14:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move key-token to header instead of body

4 participants