-
Notifications
You must be signed in to change notification settings - Fork 412
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
Replace Endpoint middleware concept with Security concept #2888
Comments
/bounty $1500 |
💎 $1,500 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
/attempt
|
@987Nabil: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
The bounty is up for grabs! Everyone is welcome to |
/attempt |
Will be streaming the impl. tomorrow or on the weekend |
/attempt #2888 Options |
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
@promisingcoder: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
The bounty is up for grabs! Everyone is welcome to |
Rework Endpoint authentication (#2888)
🎉🎈 @987Nabil has been awarded $1,500! 🎈🎊 |
Right now, we cannot enforce that endpoint middleware is actually implemented (it's a very complicated problem that cannot be solved in time for release). Simultaneously, we cannot document security requirements of endpoints.
To fix this issue, we should instead use a
sealed trait AuthType
, or similar, which is placed intoEndpoint
. Based on this, we can generate OpenAPI documentation, as well as potentially even leverage this information in the automatic HTTP client.Note that endpoint auth type would still be a type parameter, albeit constrained (Z <: AuthType). The reason is to statically retain the type members inside the
AuthType
value, so they can be used by client and server.This requires more R&D but should address all of the issues with endpoint middleware that we have, currently. The question is, can we do it in time? 😄
The text was updated successfully, but these errors were encountered: