MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ssoProviderConfig

Function ssoProviderConfig

apps/host-selfhost/src/auth/sso.ts:36–46  ·  view source on GitHub ↗
(sso: SsoConfig)

Source from the content-addressed store, hash-verified

34// pre-filters the account chooser — a UX hint only (Google treats it as
35// advisory); the create-hook gate is the enforcement.
36export const ssoProviderConfig = (sso: SsoConfig) => ({
37 providerId: sso.providerId,
38 clientId: sso.clientId,
39 clientSecret: sso.clientSecret,
40 discoveryUrl: sso.discoveryUrl,
41 scopes: ["openid", "email", "profile"],
42 pkce: true,
43 ...(sso.providerId === "google" && sso.allowedDomains.length === 1
44 ? { authorizationUrlParams: { hd: sso.allowedDomains[0]! } }
45 : {}),
46});

Callers 1

makeAuthOptionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected