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

Cloudflare/Workerd support #148

Open
4 tasks done
bjankord opened this issue Jul 13, 2024 · 0 comments
Open
4 tasks done

Cloudflare/Workerd support #148

bjankord opened this issue Jul 13, 2024 · 0 comments

Comments

@bjankord
Copy link

Checklist

  • I have looked into the Readme and Examples, 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

I've been working through https://developer.auth0.com/resources/code-samples/spa/vue/basic-authentication and then the https://developer.auth0.com/resources/code-samples/api/express/basic-authorization guides and was hoping I could take the logic used in the Express app example and migrate it over to either a Cloudflare Worker or Pages app.

I was optimistic that might be possible, but knew that most likely, the express-oauth2-jwt-bearer package was not going to work in Cloudflares runtime environment (workerd). Sure enough, soon as I got to that point, I realized it wasn't going to work due to compat issues between Node.js and Cloudflare's Workerd runtimes.

Are there any plans to make a Cloudflare compatible alternative to the express-oauth2-jwt-bearer package or maybe there already is one I haven't found yet. I'm looking for any resources that could help me achieve the equivalent of the https://developer.auth0.com/resources/code-samples/api/express/basic-authorization tutorial except using Cloudflare Workers or Pages.

Describe the ideal solution

The ideal solution, in my opinion, is that Auth0 would provide a Cloudflare based oauth2-jwt-bearer package. That way I could pull in the auth function from that package and not have to worry about compat issues from a package that was designed specifically for Node/Express with the express-oauth2-jwt-bearer package

Alternatives and current workarounds

No response

Additional context

No response

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

1 participant