starlette: Cannot access POST data from AuthenticationBackend

Common use case: Retrieve POST data sent by an HTML login <form> to validate within AuthenticationBackend middleware.

  • Passing usernames / passwords over GET with passwords visible in the URL is not acceptable.
  • Passing Authorization headers along with a form requires Javascript, a poor solution.

Any common techniques or help appreciated.

[!IMPORTANT]

  • We’re using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
<picture> <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/encode/starlette/issues/771/pledge.svg?darkmode=1"> Fund with Polar </picture>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

I don’t like closing issues without resolution. Thanks for reopening it. 🙏

No problem, I was just under the impression that Starlette wanted to get to 0 issues before 1.0, and this is only a DX issue that may never be resolved.