Skip to content
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

📝 [Proposal]: Fiber Security Package #3385

Open
3 tasks done
gaby opened this issue Mar 31, 2025 · 0 comments
Open
3 tasks done

📝 [Proposal]: Fiber Security Package #3385

gaby opened this issue Mar 31, 2025 · 0 comments

Comments

@gaby
Copy link
Member

gaby commented Mar 31, 2025

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:

  • I agree to follow Fiber's Code of Conduct.
  • I have searched for existing issues that describe my proposal before opening this one.
  • I understand that a proposal that does not meet these guidelines may be closed without explanation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant