Implement GenericOAuth2Backend for any OIDC provider #43
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Auth currently uses Authlib configured for a single provider. The spec calls for a
GenericOAuth2Backendso any standards-compliant OIDC provider works — Authentik is thedocumented default, but a deployment should not be tied to it.
Scope
A generic, configuration-driven OAuth2/OIDC backend.
Implementation notes
endpoint, scopes, and claim mappings. Prefer OIDC discovery where the provider offers it.
claim names, and hardcoding one provider's shape is what created this issue.
and expiry. This is the security-critical part — a backend that accepts unvalidated
tokens is an authentication bypass, so it must be tested directly, including the
rejection cases.
a real instance rather than from documentation alone.
Done when
References
backend/app/auth/docs/circa-spec.mdPhase 4, section 4 (auth)Related: #14 (fail fast on insecure configuration).