MCPcopy Index your code
hub / github.com/simstudioai/sim / getAccessControlConfig

Function getAccessControlConfig

apps/sim/lib/auth/access-control.ts:94–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 * otherwise falls back to env vars so self-hosted/OSS works with no AWS.
93 */
94export async function getAccessControlConfig(): Promise<AccessControlConfig> {
95 if (!isAppConfigEnabled) return fromEnv()
96
97 const value = await fetchAppConfigProfile(
98 {
99 application: env.APPCONFIG_APPLICATION as string,
100 environment: env.APPCONFIG_ENVIRONMENT as string,
101 profile: ACCESS_CONTROL_PROFILE,
102 },
103 parseConfig
104 )
105
106 return value ?? fromEnv()
107}

Callers 5

applyBanListFunction · 0.90
isEmailBlockedFunction · 0.90
getActivelyBannedUserIdsFunction · 0.90
auth.tsFile · 0.90

Calls 2

fetchAppConfigProfileFunction · 0.90
fromEnvFunction · 0.85

Tested by

no test coverage detected