Optimi open-sources OAuthSonas, a lightweight OIDC provider for E2E testing
Optimi, an edge infrastructure company, has open-sourced OAuthSonas, a small in-memory OpenID Connect provider designed for local development and end-to-end testing. The tool addresses common shortcomings in testing apps that use OIDC, such as stubbing libraries, relying on live tenants, or using hardcoded JWTs that bypass token validation. OAuthSonas implements the full Authorization Code flow with PKCE, RS256 JWT tokens, rotating refresh tokens, JWKS validation, and RP-initiated logout, mirroring how a real identity provider behaves. It supports configurable user personas with stable DOM selectors suited for browser automation tools like Playwright, allowing testers to simulate different roles without a live Auth0 tenant. The project is deliberately not production-safe, running entirely in memory with no persistent state, and is available on GitHub with Go and container-based installation options.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in