Add external IdP authentication via OAuth (GitHub) and OIDC (Google, Azure AD). Users can sign in with enterprise credentials; accounts are auto-provisioned and linked on first login. Configured entirely via environment variables. - schema/011_external_auth.sql: user_identities table + email column on users - internal/auth/idp/: provider interface, GitHub OAuth, generic OIDC, store, handlers (list providers, login redirect, callback with auto-provisioning) - internal/auth/user_store.go: GetUserByEmail + SetEmail for IdP linking - cmd/synapbus/main.go: wire IdP routes + agent provisioner adapter - web/src/routes/login/+page.svelte: IdP buttons above password form - Tests: domain restriction, store CRUD, provider listing, user provisioning Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<link rel="icon" href="/favicon.svg" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>SynapBus</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
|
<link href="/_app/immutable/entry/start.C1LsxLpv.js" rel="modulepreload">
|
|
<link href="/_app/immutable/chunks/DoqIKMxr.js" rel="modulepreload">
|
|
<link href="/_app/immutable/chunks/DIG_CmoU.js" rel="modulepreload">
|
|
<link href="/_app/immutable/chunks/G5HYO44Q.js" rel="modulepreload">
|
|
<link href="/_app/immutable/chunks/DS0IbqEZ.js" rel="modulepreload">
|
|
<link href="/_app/immutable/chunks/BQuiW-GI.js" rel="modulepreload">
|
|
<link href="/_app/immutable/chunks/BnMwQJsU.js" rel="modulepreload">
|
|
<link href="/_app/immutable/entry/app.cBxENuWY.js" rel="modulepreload">
|
|
|
|
</head>
|
|
<body data-sveltekit-preload-data="hover">
|
|
<div style="display: contents">
|
|
<script>
|
|
{
|
|
__sveltekit_2zdanl = {
|
|
base: ""
|
|
};
|
|
|
|
const element = document.currentScript.parentElement;
|
|
|
|
Promise.all([
|
|
import("/_app/immutable/entry/start.C1LsxLpv.js"),
|
|
import("/_app/immutable/entry/app.cBxENuWY.js")
|
|
]).then(([kit, app]) => {
|
|
kit.start(app, element);
|
|
});
|
|
}
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|