Skip to content

Generic OIDC client with discovery + self-host compose#15

Merged
isTravis merged 4 commits into
mainfrom
tr/oidc-refactor
May 20, 2026
Merged

Generic OIDC client with discovery + self-host compose#15
isTravis merged 4 commits into
mainfrom
tr/oidc-refactor

Conversation

@isTravis
Copy link
Copy Markdown
Member

Replaces the hardcoded kf-auth client with a standards-based OIDC implementation.

  • Add src/lib/oidc.server.ts — discovery-based OIDC client (fetches .well-known/openid-configuration, caches endpoints, PKCE with S256)
  • Add src/lib/auth-internal.server.ts — internal API module gated by hasInternalApi
  • Refactor kf-auth.server.ts, kf-orgs.server.ts, kf-profile-cache.server.ts to thin re-export shims
  • Rename env vars: KF_AUTH_URLOIDC_ISSUER_URL (with backward-compat fallbacks)
  • Add docker-compose.withauth.yml + selfhost/ for one-command self-host deployment
  • Update encrypted env files with new var names

@isTravis isTravis merged commit 3b96ff9 into main May 20, 2026
1 check passed
@isTravis isTravis deleted the tr/oidc-refactor branch May 20, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant