www/src/content/docs/blog/openauth-beta.mdx
import { YouTube } from '@astro-community/astro-embed-youtube';
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.
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.
You can learn more about it over on the OpenAuth GitHub.
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.
OpenAuth needs some minimal infrastructure to run. The new Auth component in SST v3 can do this for you.
new sst.aws.Auth("MyAuth", {
domain: "auth.myapp.com",
authorizer: "src/auth.handler"
});
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.