fiber
fiber copied to clipboard
📝 [Proposal]: Fiber Security Package
Feature Proposal Description
Common security things like getting api-key from a header, query, or cookie rely on the user implementing this.
Proposal is to implement these to make it easier for users to add security to their API/Apps.
This would be similar to fastapi.Security package.
See here: https://fastapi.tiangolo.com/reference/security/
We already cover some of these via the BasicAuth middleware.
Add a minimum we should natively provide these to users:
- APIKeyCookie
- APIKeyHeader
- APIKeyQuery
- HTTPAuthorizationCredentials
- HTTPBasic
- HTTPBasicCredentials
- HTTPBearer
- HTTPDigest
Each one can be done as a separate PR.
Alignment with Express API
N/a
HTTP RFC Standards Compliance
N/a
API Stability
N/a
Feature Examples
N/a
Checklist:
- [x] I agree to follow Fiber's Code of Conduct.
- [x] I have searched for existing issues that describe my proposal before opening this one.
- [x] I understand that a proposal that does not meet these guidelines may be closed without explanation.