Comments (3)
It's surprising that fastify does not support basic auth. I was going to use it to quickly set up a webhook endpoint for a service that only supports basic auth, but I'll stick with Hapi for now.
from fastify-auth.
Hapi is a great framework, keep using it!
from fastify-auth.
No surprises at all. Fastify aims to be as light as possible. We decided to not offer anything out of the box because every project has its needs- especially when talking about authorization.
Take the basic auth, for instance, get the authorization header is super easy, the most "complex" part is where you validate that data, which databases are you using, which crypto library and so on. There is no plugin which will do this for you, even for Hapi where you must give a validate function which is doing most of the work.
You just to define an onRequest
hook, use basic-auth to parse the header and write your authentication logic.
from fastify-auth.
Related Issues (20)
- default imports do not work with TypeScript HOT 5
- Ability to customize the decorator name HOT 3
- Fastify-auth throws and error after an asynchronous call is completed "TypeError: that.done is not a function" HOT 2
- ChainAlert: npm package release (1.2.0) has no matching tag in this repo
- Use new @fastify org dependencies
- Configure default relation HOT 2
- No plugin export in ESM HOT 6
- NPM package update HOT 4
- No overload matches for fastify plugin HOT 1
- Unable to use a Typescript generic for the Params property off of the request HOT 5
- Improvements for composite auth HOT 4
- Typescript bug when used in conjunction with "fastify-type-provider-zod".
- Typescript bug when used in conjunction with "fastify-type-provider-zod". HOT 4
- Type definitions as defined in the route schema get removed when using fastify auth HOT 2
- Extended Composite Auth in #217 is broken HOT 10
- statusCode dirty with relation or
- fastify.auth(functions: fastifyAuth.AuthFunction[]) is missing second parameter in type declaration HOT 3
- New parameter: run all HOT 1
- Provide a way to skip an auth handler HOT 10
- Coverage 100%
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastify-auth.