Coder Social home page Coder Social logo

What about Basic Auth? about fastify-auth HOT 3 CLOSED

fastify avatar fastify commented on May 29, 2024
What about Basic Auth?

from fastify-auth.

Comments (3)

shinzui avatar shinzui commented on May 29, 2024

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.

mcollina avatar mcollina commented on May 29, 2024

Hapi is a great framework, keep using it!

from fastify-auth.

delvedor avatar delvedor commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.