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

code samples, an interface, or middleware for fastify (express is becoming legacy) #504

Closed
5 tasks done
jordanst3wart opened this issue Sep 25, 2023 · 1 comment
Closed
5 tasks done

Comments

@jordanst3wart
Copy link

jordanst3wart commented Sep 25, 2023

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

Would it be possible to have code samples, middleware, or an interface for fastify?

I'm using auth for a nestjs app, using express, and this repository as express js middleware. I just became aware that express is basically dead in the water with updates. It still doesn't support http/2 despite it being a priority.

pr for http/2 (outstanding for 1.5 years): expressjs/compression#170
top priorities of express js (including http/2): https://expressjs.github.io/statusboard/
code frequency of express js: https://github.com/expressjs/express/graphs/code-frequency

Describe the ideal solution

Code samples, an interface/module that is usable, or a full middleware solution

Alternatives and current workarounds

There is this repository:
https://www.npmjs.com/package/fastify-auth0-verify

It has poor documentation, and 15,000 weekly downloads, and is growing.

The official auht0 express openid connect middleware has 46,061 weekly downloads:
https://www.npmjs.com/package/express-openid-connect

I don't like using an unofficial npm repository for important security purposes

Additional context

No response

@adamjmcgrath
Copy link
Contributor

Hi @jordanst3wart - thanks for raising this

Feature requests for new SDKs would be better raised https://community.auth0.com/t/how-do-i-submit-product-feedback-or-feature-requests/22150 - I've made a note of your request internally

There is this repository:
npmjs.com/package/fastify-auth0-verify

This SDK does login using OpenID Connect - the fastify-auth0-verify library protects API requests with Bearer access tokens (our equivalent express SDK would be https://github.com/auth0/node-oauth2-jwt-bearer/tree/main/packages/express-oauth2-jwt-bearer)

The fastify equivalent library for this SDK would be something like https://github.com/fastify/fastify-oauth2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants