What Auth solution providers are people
What Auth solution providers are people using with workers and how easy/difficult are they to work with? Curious what other are using and what the experience has been like.
8 Replies
I found this library https://github.com/Marplex/flarebase-auth written to decode firebase tokens in workers
GitHub
GitHub - Marplex/flarebase-auth: Firebase/Admin Auth Javascript Lib...
Firebase/Admin Auth Javascript Library for Cloudflare Workers - GitHub - Marplex/flarebase-auth: Firebase/Admin Auth Javascript Library for Cloudflare Workers
I also found https://www.propelauth.com/post/authentication-for-cloudflare-workers that has a package for workers
PropelAuth Blog
Authentication for Cloudflare Workers
We are thrilled to announce the release of @propelauth/cloudflare-worker - a Javascript/Typescript library that makes it easy to add authentication and authorization to your Cloudflare Workers.
With this, you can write code as simple as:
export default {
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise {
try
Propelauth is B2B, but it's interesting that they made a package specifically for Cloudflare workers.
We wrote our own auth provider using https://github.com/panva/oauth4webapi
(So we aren't implementing crypto ourselves, just the business logic stuff.)
GitHub
GitHub - panva/oauth4webapi: OAuth 2 / OpenID Connect for JavaScrip...
OAuth 2 / OpenID Connect for JavaScript Runtimes. Contribute to panva/oauth4webapi development by creating an account on GitHub.
we were able to add support easily for GitHub, Deel, Google, Apple, Slack, Microsoft, Amazon, and Yahoo.
Interesting, how do you verify tokens in workers?
GitHub
oauth4webapi/examples/oauth.ts at 170f44e2f7c7da60feb8a654871c56fc0...
OAuth 2 / OpenID Connect for JavaScript Runtimes. Contribute to panva/oauth4webapi development by creating an account on GitHub.
or ideally if OIDC is supported: https://github.com/panva/oauth4webapi/blob/170f44e2f7c7da60feb8a654871c56fc0a741e6b/examples/code.ts#L45
GitHub
oauth4webapi/examples/code.ts at 170f44e2f7c7da60feb8a654871c56fc0a...
OAuth 2 / OpenID Connect for JavaScript Runtimes. Contribute to panva/oauth4webapi development by creating an account on GitHub.