zio / zio-http

A next-generation Scala framework for building scalable, correct, and efficient HTTP clients and servers
https://zio.dev/zio-http
Apache License 2.0
792 stars 401 forks source link

Handle auth for endpoint without explicit handover #3019

Closed 987Nabil closed 2 months ago

987Nabil commented 2 months ago

Currently auth info has to be handed over manually. For many endpoints that might be cumbersome.

We want a solution, where we can handover auth information for a call in a way that it can be computed, since it might need to refresh a token. Probably this can be bound to an EndpointExecutor. An executor that has a way of authenticating, should also be able to execute requests that need no auth, since apis often have a public subset of endpoints.

jdegoes commented 2 months ago

/bounty $175

algora-pbc[bot] commented 2 months ago

💎 $175 bounty • ZIO

Steps to solve:

  1. Start working: Comment /attempt #3019 with your implementation plan
  2. Submit work: Create a pull request including /claim #3019 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to zio/zio-http!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @987Nabil #3026
algora-pbc[bot] commented 2 months ago

💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] commented 2 months ago

🎉🎈 @987Nabil has been awarded $175! 🎈🎊