soja-cli 1.6.0 → 1.6.2
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.
|
@@ -151,7 +151,8 @@ export function ProjectsScreen({ active }) {
|
|
|
151
151
|
placeholder: 'support_customer, workspace_admin',
|
|
152
152
|
onSubmit: (rolesInput) => {
|
|
153
153
|
const allowedRoles = [...new Set(rolesInput.split(',').map((value) => value.trim()).filter(Boolean))];
|
|
154
|
-
|
|
154
|
+
// Application role labels may be human-readable (for example, "Super Administrador").
|
|
155
|
+
if (!allowedRoles.length || allowedRoles.some((role) => role.length > 64 || !/^[\p{L}\p{N}][\p{L}\p{N} _.:-]*$/u.test(role) || !/[\p{L}\p{N}]$/u.test(role)))
|
|
155
156
|
return false;
|
|
156
157
|
return promptExportPath(sourceIssuer, allowedOrigins, allowedRoles);
|
|
157
158
|
},
|
|
@@ -187,7 +188,7 @@ export function ProjectsScreen({ active }) {
|
|
|
187
188
|
const contract = await intake.exportContract(session, project.id);
|
|
188
189
|
const privateEnv = [
|
|
189
190
|
`APP_ORIGINS='${allowedOrigins.join(',')}'`,
|
|
190
|
-
`
|
|
191
|
+
`SOJA_SOURCE_AUTH_ISSUER='${sourceIssuer}'`,
|
|
191
192
|
`SOJA_API_URL='${services.environment.mode === 'remote' ? services.environment.server : ''}'`,
|
|
192
193
|
`SOJA_INTEGRATION_ID='${credentials.id}'`,
|
|
193
194
|
`SOJA_PROJECT_ID='${project.id}'`,
|