Skip to content
Blog

OpenAuth Beta

JayDecember 9, 2024

Today we are launching OpenAuth — openauth.js.org

A universal, standards-based auth provider. It’s in beta along with the new Auth component for SST v3 that uses this.

Play

What is OpenAuth

OpenAuth is a new auth provider that’s built on top of OAuth 2.0. It’s a single-page app that you can deploy anywhere.

  • Universal: You can deploy it as a standalone service or embed it into an existing application. It works with any framework or platform.
  • Self-hosted: It runs entirely on your infrastructure and can be deployed on Node.js, Bun, AWS Lambda, or Cloudflare Workers.
  • Standards-based: It implements the OAuth 2.0 spec and is based on web standards. So any OAuth client can use it.
  • Customizable: It comes with prebuilt themeable UI that you can customize or opt out of.
Play

You can learn more about it over on the OpenAuth GitHub.


Why build OpenAuth

Auth has been one of the most requested features in SST. With v1 and v2 of our Auth components, we found that most folks wanted a standalone, easy to self-host auth provider.

Most of the existing solutions were either libraries, or SaaS services that held your user data. And the standalone self-hosted ones were just too complicated to set up.

We also think a universal, standards-based auth provider is something that should exist outside of SST, which is why we built OpenAuth as a separate project.


Using it in SST

OpenAuth needs some minimal infrastructure to run. The new Auth component in SST v3 can do this for you.

sst.config.ts
new sst.aws.Auth("MyAuth", {
domain: "auth.myapp.com",
authorizer: "src/auth.handler"
});

Next steps

OpenAuth and the new Auth component are in beta. Over the next few weeks we’ll be adding more docs, examples, and tutorials, as we finalize the API.

If you are eager to try it out and play around, head over to the OpenAuth README and check out the examples.

You can star the repo and follow us on X as we get closer to a 1.0 release.