@base44-preview/cli 0.0.50-pr.484.56a235c → 0.0.50-pr.484.804e4de
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +19 -21
- package/dist/cli/index.js.map +11 -11
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -242018,9 +242018,10 @@ var SSOSecretKey;
|
|
|
242018
242018
|
SSOSecretKey2["JwksUri"] = "sso_jwks_uri";
|
|
242019
242019
|
})(SSOSecretKey ||= {});
|
|
242020
242020
|
var ALL_SSO_SECRET_KEYS = Object.values(SSOSecretKey);
|
|
242021
|
+
var DEFAULT_OIDC_SCOPE = "openid email profile";
|
|
242022
|
+
var DEFAULT_GITHUB_SCOPE = "user:email";
|
|
242021
242023
|
|
|
242022
242024
|
// src/core/resources/auth-config/sso/providers/custom.ts
|
|
242023
|
-
var DEFAULT_SCOPE = "openid email profile";
|
|
242024
242025
|
var customProvider = {
|
|
242025
242026
|
requiredKeys: [
|
|
242026
242027
|
"sso_auth_endpoint" /* AuthEndpoint */,
|
|
@@ -242029,7 +242030,7 @@ var customProvider = {
|
|
|
242029
242030
|
"sso_jwks_uri" /* JwksUri */
|
|
242030
242031
|
],
|
|
242031
242032
|
defaults: {
|
|
242032
|
-
["sso_scope" /* Scope */]:
|
|
242033
|
+
["sso_scope" /* Scope */]: DEFAULT_OIDC_SCOPE
|
|
242033
242034
|
}
|
|
242034
242035
|
};
|
|
242035
242036
|
|
|
@@ -242037,7 +242038,7 @@ var customProvider = {
|
|
|
242037
242038
|
var githubProvider = {
|
|
242038
242039
|
requiredKeys: [],
|
|
242039
242040
|
defaults: {
|
|
242040
|
-
["sso_scope" /* Scope */]:
|
|
242041
|
+
["sso_scope" /* Scope */]: DEFAULT_GITHUB_SCOPE,
|
|
242041
242042
|
["sso_auth_endpoint" /* AuthEndpoint */]: "https://github.com/login/oauth/authorize",
|
|
242042
242043
|
["sso_token_endpoint" /* TokenEndpoint */]: "https://github.com/login/oauth/access_token",
|
|
242043
242044
|
["sso_userinfo_endpoint" /* UserinfoEndpoint */]: "https://api.github.com/user"
|
|
@@ -242045,21 +242046,19 @@ var githubProvider = {
|
|
|
242045
242046
|
};
|
|
242046
242047
|
|
|
242047
242048
|
// src/core/resources/auth-config/sso/providers/google.ts
|
|
242048
|
-
var DEFAULT_SCOPE2 = "openid email profile";
|
|
242049
242049
|
var googleProvider = {
|
|
242050
242050
|
requiredKeys: [],
|
|
242051
242051
|
defaults: {
|
|
242052
|
-
["sso_scope" /* Scope */]:
|
|
242052
|
+
["sso_scope" /* Scope */]: DEFAULT_OIDC_SCOPE,
|
|
242053
242053
|
["sso_discovery_url" /* DiscoveryUrl */]: "https://accounts.google.com/.well-known/openid-configuration"
|
|
242054
242054
|
}
|
|
242055
242055
|
};
|
|
242056
242056
|
|
|
242057
242057
|
// src/core/resources/auth-config/sso/providers/microsoft.ts
|
|
242058
|
-
var DEFAULT_SCOPE3 = "openid email profile";
|
|
242059
242058
|
var microsoftProvider = {
|
|
242060
242059
|
requiredKeys: ["sso_tenant_id" /* TenantId */],
|
|
242061
242060
|
defaults: {
|
|
242062
|
-
["sso_scope" /* Scope */]:
|
|
242061
|
+
["sso_scope" /* Scope */]: DEFAULT_OIDC_SCOPE
|
|
242063
242062
|
},
|
|
242064
242063
|
deriveDefaults: (secrets) => {
|
|
242065
242064
|
const tenantId = secrets["sso_tenant_id" /* TenantId */];
|
|
@@ -242073,11 +242072,10 @@ var microsoftProvider = {
|
|
|
242073
242072
|
};
|
|
242074
242073
|
|
|
242075
242074
|
// src/core/resources/auth-config/sso/providers/okta.ts
|
|
242076
|
-
var DEFAULT_SCOPE4 = "openid email profile";
|
|
242077
242075
|
var oktaProvider = {
|
|
242078
242076
|
requiredKeys: ["sso_okta_domain" /* OktaDomain */],
|
|
242079
242077
|
defaults: {
|
|
242080
|
-
["sso_scope" /* Scope */]:
|
|
242078
|
+
["sso_scope" /* Scope */]: DEFAULT_OIDC_SCOPE
|
|
242081
242079
|
},
|
|
242082
242080
|
deriveDefaults: (secrets) => {
|
|
242083
242081
|
const domain2 = secrets["sso_okta_domain" /* OktaDomain */];
|
|
@@ -242099,6 +242097,15 @@ var SSO_PROVIDER_SCHEMAS = {
|
|
|
242099
242097
|
custom: customProvider
|
|
242100
242098
|
};
|
|
242101
242099
|
|
|
242100
|
+
// src/core/resources/auth-config/sso/types.ts
|
|
242101
|
+
var KNOWN_SSO_PROVIDERS = {
|
|
242102
|
+
google: "google",
|
|
242103
|
+
microsoft: "microsoft",
|
|
242104
|
+
github: "github",
|
|
242105
|
+
okta: "okta",
|
|
242106
|
+
custom: "custom"
|
|
242107
|
+
};
|
|
242108
|
+
|
|
242102
242109
|
// src/core/resources/auth-config/sso/operations.ts
|
|
242103
242110
|
var OPTION_TO_SECRET_KEY = {
|
|
242104
242111
|
scope: "sso_scope" /* Scope */,
|
|
@@ -242157,7 +242164,7 @@ function buildSSOSecrets(provider, options) {
|
|
|
242157
242164
|
missing.push(key);
|
|
242158
242165
|
}
|
|
242159
242166
|
}
|
|
242160
|
-
if (provider ===
|
|
242167
|
+
if (provider === KNOWN_SSO_PROVIDERS.custom && !options.ssoName) {
|
|
242161
242168
|
missing.push("sso_name" /* Name */);
|
|
242162
242169
|
}
|
|
242163
242170
|
if (missing.length > 0) {
|
|
@@ -242171,14 +242178,6 @@ async function pushSSOSecrets(secrets) {
|
|
|
242171
242178
|
async function deleteSSOSecrets() {
|
|
242172
242179
|
await Promise.allSettled(ALL_SSO_SECRET_KEYS.map((key) => deleteSecret(key)));
|
|
242173
242180
|
}
|
|
242174
|
-
// src/core/resources/auth-config/sso/types.ts
|
|
242175
|
-
var KNOWN_SSO_PROVIDERS = {
|
|
242176
|
-
google: "google",
|
|
242177
|
-
microsoft: "microsoft",
|
|
242178
|
-
github: "github",
|
|
242179
|
-
okta: "okta",
|
|
242180
|
-
custom: "custom"
|
|
242181
|
-
};
|
|
242182
242181
|
// src/core/resources/connector/schema.ts
|
|
242183
242182
|
var GoogleCalendarConnectorSchema = exports_external.object({
|
|
242184
242183
|
type: exports_external.literal("googlecalendar"),
|
|
@@ -251279,7 +251278,7 @@ function validateProvider(provider) {
|
|
|
251279
251278
|
}
|
|
251280
251279
|
return provider;
|
|
251281
251280
|
}
|
|
251282
|
-
async function ssoEnableAction({ isNonInteractive,
|
|
251281
|
+
async function ssoEnableAction({ isNonInteractive, runTask: runTask2 }, options) {
|
|
251283
251282
|
let merged = options;
|
|
251284
251283
|
if (options.file) {
|
|
251285
251284
|
const fileConfig = await loadSSOConfigFile(options.file);
|
|
@@ -251350,7 +251349,6 @@ async function ssoEnableAction({ isNonInteractive, log, runTask: runTask2 }, opt
|
|
|
251350
251349
|
};
|
|
251351
251350
|
}
|
|
251352
251351
|
async function ssoDisableAction({
|
|
251353
|
-
log,
|
|
251354
251352
|
runTask: runTask2
|
|
251355
251353
|
}) {
|
|
251356
251354
|
const { project: project2 } = await readProjectConfig();
|
|
@@ -261007,4 +261005,4 @@ export {
|
|
|
261007
261005
|
CLIExitError
|
|
261008
261006
|
};
|
|
261009
261007
|
|
|
261010
|
-
//# debugId=
|
|
261008
|
+
//# debugId=3D7486B2A6408CC364756E2164756E21
|