@thunderid/vue 1.9.1 → 1.10.1
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/__tests__/helpers/managementContext.d.ts +3 -1
- package/dist/__tests__/helpers/managementContext.d.ts.map +1 -1
- package/dist/cjs/index.cjs +624 -20
- package/dist/components/auth/device-grant/BaseDeviceGrant.css.d.ts +3 -0
- package/dist/components/auth/device-grant/BaseDeviceGrant.css.d.ts.map +1 -0
- package/dist/components/auth/device-grant/BaseDeviceGrant.d.ts +21 -0
- package/dist/components/auth/device-grant/BaseDeviceGrant.d.ts.map +1 -0
- package/dist/components/auth/device-grant/DeviceGrant.d.ts +7 -0
- package/dist/components/auth/device-grant/DeviceGrant.d.ts.map +1 -0
- package/dist/components/auth/flow/AuthOptionFactoryCore.d.ts.map +1 -1
- package/dist/components/auth/flow/Consent.css.d.ts +3 -0
- package/dist/components/auth/flow/Consent.css.d.ts.map +1 -0
- package/dist/components/auth/flow/Consent.d.ts +20 -0
- package/dist/components/auth/flow/Consent.d.ts.map +1 -0
- package/dist/components/auth/sign-in/BaseSignIn.d.ts +3 -1
- package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -1
- package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
- package/dist/components/primitives/Typography/Typography.d.ts.map +1 -1
- package/dist/composables/management/useGrantedPermissions.d.ts +2 -1
- package/dist/composables/management/useGrantedPermissions.d.ts.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +623 -22
- package/dist/models/contexts.d.ts +2 -0
- package/dist/models/contexts.d.ts.map +1 -1
- package/dist/providers/ThunderIDProvider.d.ts.map +1 -1
- package/dist/styles/injectStyles.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AccountLifecycleFlowConfigKey, AccountLifecycleFlowConfigKey as AccountLifecycleFlowConfigKey$1, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AuthFlowSelectConstants, CONSENT_INVALID_KEY_PREFIX, CONSENT_MODIFIED_KEY_PREFIX, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SPAUtils, SelectConstants, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createDesignTheme, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createPackageComponentLogger, createPackageLogger, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAccountLifecycleActions, getAccountLifecycleActions as getAccountLifecycleActions$1, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentName, getAgentName as getAgentName$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getConsentElementDecision, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getTokenPermissions,
|
|
1
|
+
import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AccountLifecycleFlowConfigKey, AccountLifecycleFlowConfigKey as AccountLifecycleFlowConfigKey$1, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AuthFlowSelectConstants, CONSENT_INVALID_KEY_PREFIX, CONSENT_MODIFIED_KEY_PREFIX, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SPAUtils, SelectConstants, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createDesignTheme, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createPackageComponentLogger, createPackageLogger, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedDeviceGrantFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAccountLifecycleActions, getAccountLifecycleActions as getAccountLifecycleActions$1, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentName, getAgentName as getAgentName$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getConsentElementDecision, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUser as getUser$1, getUserGroups, getUserGroups as getUserGroups$1, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserTypes as getUserTypes$1, getUserUsages, getUsers, getUsers as getUsers$1, getUsersByPath, getUsersMe, getUsersMeMeta, getVariable, getVariables, getVendorPrefix, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, hasPermission, hasPermission as hasPermission$1, hasUnresolvedTranslationParams, http, importConfiguration, isApplicationSubmissionValid, isEmojiUri, isEmpty, loadUntilOptionsGrow, mapCredentialUpdateError, mergeOptionsBatch, navigate, navigate as navigate$1, normalizeBorderRadius, normalizeSelectOptions, normalizeTranslations, parseKeyValuePairs, parseKeyValuePairs as parseKeyValuePairs$1, parseRedirectUris, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateClientSecret as regenerateClientSecret$1, regenerateFlowSecret, removeGroupMembers, removeGroupMembers as removeGroupMembers$1, removeRoleAssignments, removeRoleAssignments as removeRoleAssignments$1, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveAdministrationFlows as resolveAdministrationFlows$1, resolveChangeCredentialPolicy, resolveDesign, resolveFlowTemplateLiterals, resolveLogoUri, resolveManagedIdentityName, resolvePageSize, resolveResourceEndpoint, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAccountLifecycleAction as runAccountLifecycleAction$1, runAdministrationFlow, setTranslation, setTranslations, startCase, substituteTranslationParams, supportsCredential, suspendAgent, suspendApplication, suspendUser, toAuthFlowSelectPage, toCreateApplicationRequest, toEqualityFilter, toError, toManagementErrorMessage, toUpdateApplicationRequest, toUserSelectPage, toUserTypeSelectPage, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplication as updateApplication$1, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateMeCredentials, updateMeProfile, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUser as updateUser$1, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, withVendorCSSClassPrefix } from "@thunderid/browser";
|
|
2
2
|
import { Comment, Fragment, Teleport, computed, defineComponent, getCurrentInstance, getCurrentScope, h, inject, nextTick, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, toValue, useId, watch } from "vue";
|
|
3
3
|
import DOMPurify from "dompurify";
|
|
4
4
|
|
|
@@ -1136,6 +1136,7 @@ const ThunderIDProvider = defineComponent({
|
|
|
1136
1136
|
scopes: props.scopes,
|
|
1137
1137
|
exchangeToken: (config) => client.exchangeToken(config),
|
|
1138
1138
|
getAccessToken: () => client.getAccessToken(),
|
|
1139
|
+
getGrantedPermissions: () => client.getGrantedPermissions(),
|
|
1139
1140
|
getDecodedIdToken: () => client.getDecodedIdToken(),
|
|
1140
1141
|
getIdToken: () => client.getIdToken(),
|
|
1141
1142
|
getStorageManager: () => client.getStorageManager(),
|
|
@@ -2426,6 +2427,171 @@ const ADMIN_CSS = `
|
|
|
2426
2427
|
`;
|
|
2427
2428
|
var Admin_css_default = ADMIN_CSS;
|
|
2428
2429
|
|
|
2430
|
+
//#endregion
|
|
2431
|
+
//#region src/components/auth/device-grant/BaseDeviceGrant.css.ts
|
|
2432
|
+
const BASE_DEVICE_GRANT_CSS = `
|
|
2433
|
+
.${withVendorCSSClassPrefix("devicegrant__terminal")} {
|
|
2434
|
+
box-sizing: border-box;
|
|
2435
|
+
width: 100%;
|
|
2436
|
+
max-width: calc(var(--thunderid-spacing-unit) * 60);
|
|
2437
|
+
margin: 0 auto;
|
|
2438
|
+
gap: var(--thunderid-spacing-unit);
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
.${withVendorCSSClassPrefix("devicegrant__terminal-title")} {
|
|
2442
|
+
margin: 0;
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
.${withVendorCSSClassPrefix("devicegrant__terminal-title--success")} {
|
|
2446
|
+
color: var(--thunderid-color-success-main);
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
.${withVendorCSSClassPrefix("devicegrant__terminal-title--failure")} {
|
|
2450
|
+
color: var(--thunderid-color-error-main);
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
.${withVendorCSSClassPrefix("devicegrant__terminal-description")} {
|
|
2454
|
+
margin: 0;
|
|
2455
|
+
}
|
|
2456
|
+
`;
|
|
2457
|
+
var BaseDeviceGrant_css_default = BASE_DEVICE_GRANT_CSS;
|
|
2458
|
+
|
|
2459
|
+
//#endregion
|
|
2460
|
+
//#region src/components/auth/flow/Consent.css.ts
|
|
2461
|
+
const CONSENT_CSS = `
|
|
2462
|
+
.${withVendorCSSClassPrefix("consent")} {
|
|
2463
|
+
display: flex;
|
|
2464
|
+
flex-direction: column;
|
|
2465
|
+
gap: calc(var(--thunderid-spacing-unit) * 2);
|
|
2466
|
+
margin-top: calc(var(--thunderid-spacing-unit) * 0.5);
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
.${withVendorCSSClassPrefix("consent__purpose")} {
|
|
2470
|
+
padding-bottom: calc(var(--thunderid-spacing-unit) * 2);
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
.${withVendorCSSClassPrefix("consent__section")} {
|
|
2474
|
+
margin-top: var(--thunderid-spacing-unit);
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
.${withVendorCSSClassPrefix("consent__header")} {
|
|
2478
|
+
display: flex;
|
|
2479
|
+
align-items: center;
|
|
2480
|
+
gap: calc(var(--thunderid-spacing-unit) * 0.5);
|
|
2481
|
+
margin-bottom: calc(var(--thunderid-spacing-unit) * 1.25);
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
.${withVendorCSSClassPrefix("consent__optional-header")} {
|
|
2485
|
+
display: flex;
|
|
2486
|
+
align-items: center;
|
|
2487
|
+
justify-content: space-between;
|
|
2488
|
+
gap: var(--thunderid-spacing-unit);
|
|
2489
|
+
padding-right: calc(var(--thunderid-spacing-unit) * 0.5);
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
.${withVendorCSSClassPrefix("consent__title")} {
|
|
2493
|
+
color: var(--thunderid-color-text-primary);
|
|
2494
|
+
font-weight: var(--thunderid-typography-fontWeight-bold);
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
.${withVendorCSSClassPrefix("consent__info")} {
|
|
2498
|
+
display: inline-flex;
|
|
2499
|
+
color: var(--thunderid-color-text-secondary);
|
|
2500
|
+
cursor: help;
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
.${withVendorCSSClassPrefix("consent__optional-header")} > .${withVendorCSSClassPrefix("consent__header")} {
|
|
2504
|
+
margin-bottom: calc(var(--thunderid-spacing-unit) * 1.25);
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
.${withVendorCSSClassPrefix("consent__items")} {
|
|
2508
|
+
display: flex;
|
|
2509
|
+
flex-direction: column;
|
|
2510
|
+
gap: calc(var(--thunderid-spacing-unit) * 1.25);
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
.${withVendorCSSClassPrefix("consent__item")} {
|
|
2514
|
+
display: flex;
|
|
2515
|
+
align-items: center;
|
|
2516
|
+
justify-content: space-between;
|
|
2517
|
+
gap: var(--thunderid-spacing-unit);
|
|
2518
|
+
min-height: 20px;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.${withVendorCSSClassPrefix("consent__item-label")} {
|
|
2522
|
+
display: flex;
|
|
2523
|
+
align-items: center;
|
|
2524
|
+
gap: calc(var(--thunderid-spacing-unit) * 0.75);
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
.${withVendorCSSClassPrefix("consent__bullet")} {
|
|
2528
|
+
width: 4px;
|
|
2529
|
+
height: 4px;
|
|
2530
|
+
flex: 0 0 4px;
|
|
2531
|
+
border-radius: 50%;
|
|
2532
|
+
background: var(--thunderid-color-text-secondary);
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
.${withVendorCSSClassPrefix("consent__toggle-container")} {
|
|
2536
|
+
position: relative;
|
|
2537
|
+
display: inline-flex;
|
|
2538
|
+
align-items: center;
|
|
2539
|
+
cursor: pointer;
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
.${withVendorCSSClassPrefix("consent__toggle-input")} {
|
|
2543
|
+
position: absolute;
|
|
2544
|
+
width: 1px;
|
|
2545
|
+
height: 1px;
|
|
2546
|
+
margin: -1px;
|
|
2547
|
+
overflow: hidden;
|
|
2548
|
+
clip: rect(0 0 0 0);
|
|
2549
|
+
white-space: nowrap;
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
.${withVendorCSSClassPrefix("consent__toggle-track")} {
|
|
2553
|
+
position: relative;
|
|
2554
|
+
display: inline-flex;
|
|
2555
|
+
align-items: center;
|
|
2556
|
+
width: 36px;
|
|
2557
|
+
height: 20px;
|
|
2558
|
+
border-radius: 9999px;
|
|
2559
|
+
background: var(--thunderid-color-text-secondary);
|
|
2560
|
+
opacity: 0.25;
|
|
2561
|
+
transition: background-color 0.2s ease, opacity 0.2s ease;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
.${withVendorCSSClassPrefix("consent__toggle-input")}:checked + .${withVendorCSSClassPrefix("consent__toggle-track")} {
|
|
2565
|
+
background: var(--thunderid-color-primary-main);
|
|
2566
|
+
opacity: 1;
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
.${withVendorCSSClassPrefix("consent__toggle-input")}:focus-visible + .${withVendorCSSClassPrefix("consent__toggle-track")} {
|
|
2570
|
+
outline: 2px solid var(--thunderid-color-border-focus);
|
|
2571
|
+
outline-offset: 2px;
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
.${withVendorCSSClassPrefix("consent__toggle-thumb")} {
|
|
2575
|
+
position: absolute;
|
|
2576
|
+
left: 2px;
|
|
2577
|
+
width: 16px;
|
|
2578
|
+
height: 16px;
|
|
2579
|
+
border-radius: 50%;
|
|
2580
|
+
background: var(--thunderid-color-background-surface);
|
|
2581
|
+
transition: transform 0.2s ease;
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
.${withVendorCSSClassPrefix("consent__toggle-input")}:checked + .${withVendorCSSClassPrefix("consent__toggle-track")} .${withVendorCSSClassPrefix("consent__toggle-thumb")} {
|
|
2585
|
+
transform: translateX(16px);
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
.${withVendorCSSClassPrefix("consent__toggle-input")}:disabled + .${withVendorCSSClassPrefix("consent__toggle-track")} {
|
|
2589
|
+
cursor: not-allowed;
|
|
2590
|
+
opacity: 0.4;
|
|
2591
|
+
}
|
|
2592
|
+
`;
|
|
2593
|
+
var Consent_css_default = CONSENT_CSS;
|
|
2594
|
+
|
|
2429
2595
|
//#endregion
|
|
2430
2596
|
//#region src/components/auth/sign-in/BaseSignIn.css.ts
|
|
2431
2597
|
/**
|
|
@@ -4142,6 +4308,8 @@ const STYLES = [
|
|
|
4142
4308
|
Spinner_css_default,
|
|
4143
4309
|
DataTable_css_default,
|
|
4144
4310
|
BaseSignIn_css_default,
|
|
4311
|
+
Consent_css_default,
|
|
4312
|
+
BaseDeviceGrant_css_default,
|
|
4145
4313
|
ChangeCredential_css_default,
|
|
4146
4314
|
LanguageSwitcher_css_default,
|
|
4147
4315
|
UserDropdown_css_default,
|
|
@@ -4802,7 +4970,8 @@ var useManagementRequestConfig_default = useManagementRequestConfig;
|
|
|
4802
4970
|
//#region src/composables/management/useGrantedPermissions.ts
|
|
4803
4971
|
/**
|
|
4804
4972
|
* Reads the permissions the signed-in user's access token grants, for example to hide a page the
|
|
4805
|
-
* user cannot use.
|
|
4973
|
+
* user cannot use. In backend mode they come from the backend's session, so the token stays on the
|
|
4974
|
+
* backend.
|
|
4806
4975
|
*
|
|
4807
4976
|
* @returns The granted permissions and a `can` check.
|
|
4808
4977
|
*
|
|
@@ -4818,7 +4987,7 @@ var useManagementRequestConfig_default = useManagementRequestConfig;
|
|
|
4818
4987
|
* ```
|
|
4819
4988
|
*/
|
|
4820
4989
|
const useGrantedPermissions = () => {
|
|
4821
|
-
const {
|
|
4990
|
+
const { getGrantedPermissions, isSignedIn } = useThunderID_default();
|
|
4822
4991
|
const granted = shallowRef(null);
|
|
4823
4992
|
let generation = 0;
|
|
4824
4993
|
watch(() => isSignedIn.value, (signedIn) => {
|
|
@@ -4828,8 +4997,8 @@ const useGrantedPermissions = () => {
|
|
|
4828
4997
|
granted.value = null;
|
|
4829
4998
|
return;
|
|
4830
4999
|
}
|
|
4831
|
-
|
|
4832
|
-
if (current === generation) granted.value =
|
|
5000
|
+
getGrantedPermissions().catch(() => []).then((grantedPermissions) => {
|
|
5001
|
+
if (current === generation) granted.value = grantedPermissions;
|
|
4833
5002
|
});
|
|
4834
5003
|
}, { immediate: true });
|
|
4835
5004
|
if (getCurrentScope()) onScopeDispose(() => {
|
|
@@ -6146,6 +6315,10 @@ var OtpField_default = OtpField;
|
|
|
6146
6315
|
const Typography = defineComponent({
|
|
6147
6316
|
name: "Typography",
|
|
6148
6317
|
props: {
|
|
6318
|
+
color: {
|
|
6319
|
+
default: void 0,
|
|
6320
|
+
type: String
|
|
6321
|
+
},
|
|
6149
6322
|
component: {
|
|
6150
6323
|
default: void 0,
|
|
6151
6324
|
type: String
|
|
@@ -6157,7 +6330,7 @@ const Typography = defineComponent({
|
|
|
6157
6330
|
},
|
|
6158
6331
|
setup(props, { slots, attrs }) {
|
|
6159
6332
|
return () => {
|
|
6160
|
-
|
|
6333
|
+
const tag = props.component ?? {
|
|
6161
6334
|
body1: "p",
|
|
6162
6335
|
body2: "p",
|
|
6163
6336
|
caption: "span",
|
|
@@ -6170,13 +6343,29 @@ const Typography = defineComponent({
|
|
|
6170
6343
|
overline: "span",
|
|
6171
6344
|
subtitle1: "h6",
|
|
6172
6345
|
subtitle2: "h6"
|
|
6173
|
-
}[props.variant]
|
|
6346
|
+
}[props.variant] ?? "p";
|
|
6347
|
+
const colorVar = {
|
|
6348
|
+
error: "var(--thunderid-color-error-main)",
|
|
6349
|
+
info: "var(--thunderid-color-info-main)",
|
|
6350
|
+
inherit: "inherit",
|
|
6351
|
+
primary: "var(--thunderid-color-primary-main)",
|
|
6352
|
+
secondary: "var(--thunderid-color-secondary-main)",
|
|
6353
|
+
success: "var(--thunderid-color-success-main)",
|
|
6354
|
+
textPrimary: "var(--thunderid-color-text-primary)",
|
|
6355
|
+
textSecondary: "var(--thunderid-color-text-secondary)",
|
|
6356
|
+
warning: "var(--thunderid-color-warning-main)"
|
|
6357
|
+
};
|
|
6358
|
+
const style = {
|
|
6359
|
+
...attrs.style,
|
|
6360
|
+
...props.color ? { color: colorVar[props.color] } : {}
|
|
6361
|
+
};
|
|
6362
|
+
return h(tag, {
|
|
6174
6363
|
class: [
|
|
6175
6364
|
withVendorCSSClassPrefix("typography"),
|
|
6176
6365
|
withVendorCSSClassPrefix(`typography--${props.variant}`),
|
|
6177
6366
|
attrs.class || ""
|
|
6178
6367
|
].filter(Boolean).join(" "),
|
|
6179
|
-
style
|
|
6368
|
+
style
|
|
6180
6369
|
}, slots["default"]?.());
|
|
6181
6370
|
};
|
|
6182
6371
|
}
|
|
@@ -7026,6 +7215,111 @@ const normalizeFlowResponse = (response, t, options = {}, meta) => {
|
|
|
7026
7215
|
};
|
|
7027
7216
|
};
|
|
7028
7217
|
|
|
7218
|
+
//#endregion
|
|
7219
|
+
//#region src/components/auth/flow/Consent.ts
|
|
7220
|
+
const getConsentOptionalKey = (purposeId, attrName) => `__consent_opt__${purposeId}__${attrName}`;
|
|
7221
|
+
const isObject = (value) => typeof value === "object" && value !== null;
|
|
7222
|
+
const parsePurposes = (consentData) => {
|
|
7223
|
+
if (!consentData) return [];
|
|
7224
|
+
let parsed = consentData;
|
|
7225
|
+
if (typeof consentData === "string") try {
|
|
7226
|
+
parsed = JSON.parse(consentData);
|
|
7227
|
+
} catch {
|
|
7228
|
+
return [];
|
|
7229
|
+
}
|
|
7230
|
+
const rawPurposes = Array.isArray(parsed) ? parsed : parsed?.purposes;
|
|
7231
|
+
if (!Array.isArray(rawPurposes)) return [];
|
|
7232
|
+
return rawPurposes.filter((purpose) => isObject(purpose) && typeof purpose["purposeId"] === "string").map((purpose) => ({
|
|
7233
|
+
...purpose,
|
|
7234
|
+
essential: Array.isArray(purpose["essential"]) ? purpose["essential"].filter((element) => isObject(element) && typeof element["name"] === "string") : [],
|
|
7235
|
+
optional: Array.isArray(purpose["optional"]) ? purpose["optional"].filter((element) => isObject(element) && typeof element["name"] === "string") : []
|
|
7236
|
+
})).sort((a, b) => Number(b.type === "permissions") - Number(a.type === "permissions"));
|
|
7237
|
+
};
|
|
7238
|
+
const Consent = defineComponent({
|
|
7239
|
+
name: "Consent",
|
|
7240
|
+
props: {
|
|
7241
|
+
consentData: {
|
|
7242
|
+
default: void 0,
|
|
7243
|
+
type: [
|
|
7244
|
+
String,
|
|
7245
|
+
Array,
|
|
7246
|
+
Object
|
|
7247
|
+
]
|
|
7248
|
+
},
|
|
7249
|
+
formValues: {
|
|
7250
|
+
required: true,
|
|
7251
|
+
type: Object
|
|
7252
|
+
},
|
|
7253
|
+
onInputChange: {
|
|
7254
|
+
required: true,
|
|
7255
|
+
type: Function
|
|
7256
|
+
},
|
|
7257
|
+
t: {
|
|
7258
|
+
default: void 0,
|
|
7259
|
+
type: Function
|
|
7260
|
+
}
|
|
7261
|
+
},
|
|
7262
|
+
setup(props, { slots }) {
|
|
7263
|
+
const translate = (key, fallback = "") => {
|
|
7264
|
+
const value = props.t?.(key);
|
|
7265
|
+
return value && value !== key ? value : fallback;
|
|
7266
|
+
};
|
|
7267
|
+
const toggle = (id, checked, label, onChange) => h("label", { class: withVendorCSSClassPrefix("consent__toggle-container") }, [h("input", {
|
|
7268
|
+
"aria-label": label,
|
|
7269
|
+
checked,
|
|
7270
|
+
class: withVendorCSSClassPrefix("consent__toggle-input"),
|
|
7271
|
+
id,
|
|
7272
|
+
onChange: (event) => onChange(event.target.checked),
|
|
7273
|
+
role: "switch",
|
|
7274
|
+
type: "checkbox"
|
|
7275
|
+
}), h("span", { class: withVendorCSSClassPrefix("consent__toggle-track") }, [h("span", { class: withVendorCSSClassPrefix("consent__toggle-thumb") })])]);
|
|
7276
|
+
const sectionTitle = (label, info) => [h(Typography_default, {
|
|
7277
|
+
class: withVendorCSSClassPrefix("consent__title"),
|
|
7278
|
+
component: "span",
|
|
7279
|
+
variant: "subtitle2"
|
|
7280
|
+
}, () => label), info ? h("span", {
|
|
7281
|
+
class: withVendorCSSClassPrefix("consent__info"),
|
|
7282
|
+
title: info,
|
|
7283
|
+
"aria-label": info,
|
|
7284
|
+
role: "img"
|
|
7285
|
+
}, [h(InfoIcon)]) : null].filter((node) => node !== null);
|
|
7286
|
+
return () => {
|
|
7287
|
+
const purposes = parsePurposes(props.consentData);
|
|
7288
|
+
if (purposes.length === 0) return null;
|
|
7289
|
+
if (slots["default"]) return h("div", slots["default"]({
|
|
7290
|
+
formValues: props.formValues,
|
|
7291
|
+
onInputChange: props.onInputChange,
|
|
7292
|
+
purposes
|
|
7293
|
+
}));
|
|
7294
|
+
return h("div", { class: withVendorCSSClassPrefix("consent") }, purposes.map((purpose) => {
|
|
7295
|
+
const permission = purpose.type === "permissions";
|
|
7296
|
+
const optionalName = permission ? translate("consent.optional_scope", "Optional Permissions") : translate("consent.optional_claims", "Optional Attributes");
|
|
7297
|
+
const essentialName = permission ? translate("consent.essential_scope", "Essential Permissions") : translate("consent.essential_claims", "Essential Attributes");
|
|
7298
|
+
const allSelected = purpose.optional.length > 0 && purpose.optional.every((element) => props.formValues[getConsentOptionalKey(purpose.purposeId, element.name)] === "true");
|
|
7299
|
+
const itemList = (elements, essential) => h("div", { class: withVendorCSSClassPrefix("consent__items") }, elements.map((element) => {
|
|
7300
|
+
const key = getConsentOptionalKey(purpose.purposeId, element.name);
|
|
7301
|
+
const label = translate(`consent.${element.name}`, element.name);
|
|
7302
|
+
return h("div", {
|
|
7303
|
+
class: withVendorCSSClassPrefix("consent__item"),
|
|
7304
|
+
key: element.name
|
|
7305
|
+
}, [h("div", { class: withVendorCSSClassPrefix("consent__item-label") }, [h("span", { class: withVendorCSSClassPrefix("consent__bullet") }), h(Typography_default, {
|
|
7306
|
+
component: "span",
|
|
7307
|
+
variant: "body2"
|
|
7308
|
+
}, () => label)]), essential ? h(Typography_default, {
|
|
7309
|
+
component: "span",
|
|
7310
|
+
variant: "body2"
|
|
7311
|
+
}, () => translate("consent.required", "Required")) : toggle(`consent_opt_${purpose.purposeId}_${element.name}`, props.formValues[key] === "true", label, (value) => props.onInputChange(key, value ? "true" : "false"))]);
|
|
7312
|
+
}));
|
|
7313
|
+
return h("section", {
|
|
7314
|
+
class: withVendorCSSClassPrefix("consent__purpose"),
|
|
7315
|
+
key: purpose.purposeId
|
|
7316
|
+
}, [purpose.essential.length > 0 ? h("div", { class: withVendorCSSClassPrefix("consent__section") }, [h("div", { class: withVendorCSSClassPrefix("consent__header") }, sectionTitle(essentialName, translate(permission ? "consent.essential_scope.info" : "consent.essential_claims.info", permission ? "" : "These attributes are required for the service to function properly."))), itemList(purpose.essential, true)]) : null, purpose.optional.length > 0 ? h("div", { class: withVendorCSSClassPrefix("consent__section") }, [h("div", { class: withVendorCSSClassPrefix("consent__optional-header") }, [h("div", { class: withVendorCSSClassPrefix("consent__header") }, sectionTitle(optionalName, translate(permission ? "consent.optional_scope.info" : "consent.optional_claims.info", permission ? "" : "These attributes are optional and can be provided at your discretion."))), toggle(`consent_opt_${purpose.purposeId}_all`, allSelected, optionalName, (checked) => purpose.optional.forEach((element) => props.onInputChange(getConsentOptionalKey(purpose.purposeId, element.name), checked ? "true" : "false")))]), itemList(purpose.optional, false)]) : null]);
|
|
7317
|
+
}));
|
|
7318
|
+
};
|
|
7319
|
+
}
|
|
7320
|
+
});
|
|
7321
|
+
var Consent_default = Consent;
|
|
7322
|
+
|
|
7029
7323
|
//#endregion
|
|
7030
7324
|
//#region src/components/auth/flow/FieldFactory.ts
|
|
7031
7325
|
/**
|
|
@@ -7762,10 +8056,6 @@ var MicrosoftButton_default = MicrosoftButton;
|
|
|
7762
8056
|
//#region src/components/auth/flow/AuthOptionFactoryCore.ts
|
|
7763
8057
|
const logger$2 = createVueLogger("AuthOptionFactory");
|
|
7764
8058
|
/**
|
|
7765
|
-
* Inline helper for consent optional attribute key (mirrors ConsentCheckboxList.getConsentOptionalKey).
|
|
7766
|
-
*/
|
|
7767
|
-
const getConsentOptionalKey = (purposeId, attr) => `consent_${purposeId}_${attr}`;
|
|
7768
|
-
/**
|
|
7769
8059
|
* Replaces `emoji:` URIs embedded in HTML before DOMPurify sanitization.
|
|
7770
8060
|
*
|
|
7771
8061
|
* DOMPurify strips unknown URI schemes from attributes (e.g. `src="emoji:🦊"` → `src=""`).
|
|
@@ -7815,6 +8105,17 @@ const getTypographyVariant = (variant) => {
|
|
|
7815
8105
|
SUBTITLE_2: "subtitle2"
|
|
7816
8106
|
}[variant] || "h3";
|
|
7817
8107
|
};
|
|
8108
|
+
const getTypographyColor = (color) => {
|
|
8109
|
+
switch (color?.toUpperCase()) {
|
|
8110
|
+
case "ERROR": return "error";
|
|
8111
|
+
case "INFO": return "info";
|
|
8112
|
+
case "PRIMARY": return "primary";
|
|
8113
|
+
case "SECONDARY": return "secondary";
|
|
8114
|
+
case "SUCCESS": return "success";
|
|
8115
|
+
case "WARNING": return "warning";
|
|
8116
|
+
default: return;
|
|
8117
|
+
}
|
|
8118
|
+
};
|
|
7818
8119
|
/**
|
|
7819
8120
|
* Check if a button text or action matches a social provider.
|
|
7820
8121
|
*/
|
|
@@ -8002,11 +8303,15 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
8002
8303
|
}
|
|
8003
8304
|
case EmbeddedFlowComponentType$1.Text: {
|
|
8004
8305
|
const variant = getTypographyVariant(component.variant ?? "");
|
|
8306
|
+
const align = typeof component.align === "string" ? component.align : "left";
|
|
8307
|
+
const color = getTypographyColor(component.color);
|
|
8005
8308
|
return h(Typography_default, {
|
|
8309
|
+
id: component.id,
|
|
8006
8310
|
key,
|
|
8311
|
+
color,
|
|
8007
8312
|
style: {
|
|
8008
8313
|
marginBottom: "0.5rem",
|
|
8009
|
-
textAlign:
|
|
8314
|
+
textAlign: align
|
|
8010
8315
|
},
|
|
8011
8316
|
variant
|
|
8012
8317
|
}, { default: () => resolve(component.label) });
|
|
@@ -8129,9 +8434,13 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
8129
8434
|
style: stackStyle
|
|
8130
8435
|
}, stackChildren.filter(Boolean));
|
|
8131
8436
|
}
|
|
8132
|
-
case EmbeddedFlowComponentType$1.Consent:
|
|
8133
|
-
|
|
8134
|
-
|
|
8437
|
+
case EmbeddedFlowComponentType$1.Consent: return h(Consent_default, {
|
|
8438
|
+
consentData: options.additionalData?.["consentPrompt"],
|
|
8439
|
+
formValues,
|
|
8440
|
+
key,
|
|
8441
|
+
onInputChange,
|
|
8442
|
+
t: options.t
|
|
8443
|
+
});
|
|
8135
8444
|
case EmbeddedFlowComponentType$1.Timer: {
|
|
8136
8445
|
const textTemplate = resolve(component.label) || "Time remaining: {time}";
|
|
8137
8446
|
const timeoutMs = Number(options.additionalData?.["stepTimeout"]) || 0;
|
|
@@ -8262,6 +8571,10 @@ const BaseSignIn = defineComponent({
|
|
|
8262
8571
|
default: "",
|
|
8263
8572
|
type: String
|
|
8264
8573
|
},
|
|
8574
|
+
initialValues: {
|
|
8575
|
+
default: () => ({}),
|
|
8576
|
+
type: Object
|
|
8577
|
+
},
|
|
8265
8578
|
isLoading: {
|
|
8266
8579
|
default: false,
|
|
8267
8580
|
type: Boolean
|
|
@@ -8278,6 +8591,10 @@ const BaseSignIn = defineComponent({
|
|
|
8278
8591
|
default: void 0,
|
|
8279
8592
|
type: Function
|
|
8280
8593
|
},
|
|
8594
|
+
serverFieldErrors: {
|
|
8595
|
+
default: null,
|
|
8596
|
+
type: Array
|
|
8597
|
+
},
|
|
8281
8598
|
size: {
|
|
8282
8599
|
default: "medium",
|
|
8283
8600
|
type: String
|
|
@@ -8299,9 +8616,9 @@ const BaseSignIn = defineComponent({
|
|
|
8299
8616
|
const touchedFields = ref({});
|
|
8300
8617
|
watch(() => props.components, (newComponents) => {
|
|
8301
8618
|
const fields = extractFormFields$1(newComponents || []);
|
|
8302
|
-
const freshValues = {};
|
|
8619
|
+
const freshValues = { ...props.initialValues };
|
|
8303
8620
|
fields.forEach((f) => {
|
|
8304
|
-
freshValues[f.name] = "";
|
|
8621
|
+
freshValues[f.name] = props.initialValues[f.name] ?? "";
|
|
8305
8622
|
});
|
|
8306
8623
|
formValues.value = freshValues;
|
|
8307
8624
|
touchedFields.value = {};
|
|
@@ -8309,14 +8626,23 @@ const BaseSignIn = defineComponent({
|
|
|
8309
8626
|
deep: false,
|
|
8310
8627
|
immediate: true
|
|
8311
8628
|
});
|
|
8629
|
+
watch(() => props.initialValues, (initialValues) => {
|
|
8630
|
+
formValues.value = {
|
|
8631
|
+
...formValues.value,
|
|
8632
|
+
...initialValues
|
|
8633
|
+
};
|
|
8634
|
+
}, { deep: true });
|
|
8312
8635
|
const formErrors = computed(() => {
|
|
8313
8636
|
const fields = extractFormFields$1(props.components || []);
|
|
8314
8637
|
const errors = {};
|
|
8638
|
+
(props.serverFieldErrors ?? []).forEach((fieldError) => {
|
|
8639
|
+
if (!(fieldError.identifier in errors)) errors[fieldError.identifier] = fieldError.message;
|
|
8640
|
+
});
|
|
8315
8641
|
fields.forEach((field) => {
|
|
8316
8642
|
const value = formValues.value[field.name] || "";
|
|
8317
8643
|
const isTouched = touchedFields.value[field.name] || false;
|
|
8318
|
-
if (field.required && isTouched && (!value || value.trim() === "")) errors[field.name] = t("validations.required.field.error") || "This field is required";
|
|
8319
|
-
if (field.type === "EMAIL_INPUT" && value && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) errors[field.name] = t("field.email.invalid") || "Invalid email address";
|
|
8644
|
+
if (!(field.name in errors) && field.required && isTouched && (!value || value.trim() === "")) errors[field.name] = t("validations.required.field.error") || "This field is required";
|
|
8645
|
+
if (!(field.name in errors) && field.type === "EMAIL_INPUT" && value && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) errors[field.name] = t("field.email.invalid") || "Invalid email address";
|
|
8320
8646
|
});
|
|
8321
8647
|
return errors;
|
|
8322
8648
|
});
|
|
@@ -8779,7 +9105,7 @@ const SignIn = defineComponent({
|
|
|
8779
9105
|
approved: !isDeny,
|
|
8780
9106
|
name: e.name
|
|
8781
9107
|
})), ...(p.optional ?? []).map((e) => {
|
|
8782
|
-
const key =
|
|
9108
|
+
const key = getConsentOptionalKey(p.purposeId, e.name);
|
|
8783
9109
|
return getConsentElementDecision(p.purposeId, e, !isDeny && processedInputs[key] === "true", processedInputs);
|
|
8784
9110
|
})],
|
|
8785
9111
|
purposeName: p.purposeName
|
|
@@ -9019,6 +9345,281 @@ const SignIn = defineComponent({
|
|
|
9019
9345
|
});
|
|
9020
9346
|
var SignIn_default = SignIn;
|
|
9021
9347
|
|
|
9348
|
+
//#endregion
|
|
9349
|
+
//#region src/components/auth/device-grant/BaseDeviceGrant.ts
|
|
9350
|
+
/** Renders Device Grant flow steps and terminal status without owning flow execution. */
|
|
9351
|
+
const BaseDeviceGrant = defineComponent({
|
|
9352
|
+
name: "BaseDeviceGrant",
|
|
9353
|
+
props: {
|
|
9354
|
+
components: {
|
|
9355
|
+
default: () => [],
|
|
9356
|
+
type: Array
|
|
9357
|
+
},
|
|
9358
|
+
additionalData: {
|
|
9359
|
+
default: () => ({}),
|
|
9360
|
+
type: Object
|
|
9361
|
+
},
|
|
9362
|
+
initialValues: {
|
|
9363
|
+
default: () => ({}),
|
|
9364
|
+
type: Object
|
|
9365
|
+
},
|
|
9366
|
+
onSubmit: {
|
|
9367
|
+
required: true,
|
|
9368
|
+
type: Function
|
|
9369
|
+
},
|
|
9370
|
+
result: {
|
|
9371
|
+
default: null,
|
|
9372
|
+
type: String
|
|
9373
|
+
},
|
|
9374
|
+
className: {
|
|
9375
|
+
default: "",
|
|
9376
|
+
type: String
|
|
9377
|
+
},
|
|
9378
|
+
variant: {
|
|
9379
|
+
default: "flat",
|
|
9380
|
+
type: String
|
|
9381
|
+
},
|
|
9382
|
+
size: {
|
|
9383
|
+
default: "medium",
|
|
9384
|
+
type: String
|
|
9385
|
+
},
|
|
9386
|
+
isLoading: {
|
|
9387
|
+
default: false,
|
|
9388
|
+
type: Boolean
|
|
9389
|
+
},
|
|
9390
|
+
error: {
|
|
9391
|
+
default: null,
|
|
9392
|
+
type: Object
|
|
9393
|
+
},
|
|
9394
|
+
serverFieldErrors: {
|
|
9395
|
+
default: null,
|
|
9396
|
+
type: Array
|
|
9397
|
+
},
|
|
9398
|
+
completeMessage: {
|
|
9399
|
+
default: void 0,
|
|
9400
|
+
type: String
|
|
9401
|
+
},
|
|
9402
|
+
completeDescription: {
|
|
9403
|
+
default: void 0,
|
|
9404
|
+
type: String
|
|
9405
|
+
},
|
|
9406
|
+
failedMessage: {
|
|
9407
|
+
default: void 0,
|
|
9408
|
+
type: String
|
|
9409
|
+
},
|
|
9410
|
+
failedDescription: {
|
|
9411
|
+
default: void 0,
|
|
9412
|
+
type: String
|
|
9413
|
+
}
|
|
9414
|
+
},
|
|
9415
|
+
setup(props, { slots, attrs }) {
|
|
9416
|
+
const { t } = useI18n_default();
|
|
9417
|
+
return () => {
|
|
9418
|
+
if (props.result && props.components.length === 0) {
|
|
9419
|
+
const success = props.result === "success" && !props.error;
|
|
9420
|
+
const failedMessage = props.failedMessage ?? t("deviceGrant.messages.failed");
|
|
9421
|
+
const title = success ? props.completeMessage ?? t("deviceGrant.messages.complete") : failedMessage;
|
|
9422
|
+
const description = success ? props.completeDescription ?? t("deviceGrant.messages.completeDescription") : !props.error || props.error.message === failedMessage ? props.failedDescription ?? t("deviceGrant.messages.failedDescription") : props.error.message;
|
|
9423
|
+
return h(Card_default, {
|
|
9424
|
+
...attrs,
|
|
9425
|
+
class: [withVendorCSSClassPrefix("devicegrant__terminal"), props.className].filter(Boolean).join(" "),
|
|
9426
|
+
"data-testid": "device-grant-result",
|
|
9427
|
+
variant: props.variant
|
|
9428
|
+
}, () => [h(Typography_default, {
|
|
9429
|
+
class: [withVendorCSSClassPrefix("devicegrant__terminal-title"), withVendorCSSClassPrefix(`devicegrant__terminal-title--${success ? "success" : "failure"}`)].join(" "),
|
|
9430
|
+
component: "h2",
|
|
9431
|
+
variant: "h6"
|
|
9432
|
+
}, () => title), h(Typography_default, {
|
|
9433
|
+
class: withVendorCSSClassPrefix("devicegrant__terminal-description"),
|
|
9434
|
+
component: "p",
|
|
9435
|
+
variant: "caption"
|
|
9436
|
+
}, () => description)]);
|
|
9437
|
+
}
|
|
9438
|
+
return h(BaseSignIn_default, {
|
|
9439
|
+
...attrs,
|
|
9440
|
+
className: props.className,
|
|
9441
|
+
components: props.components,
|
|
9442
|
+
additionalData: props.additionalData,
|
|
9443
|
+
error: props.error,
|
|
9444
|
+
initialValues: props.initialValues,
|
|
9445
|
+
isLoading: props.isLoading,
|
|
9446
|
+
onSubmit: props.onSubmit,
|
|
9447
|
+
serverFieldErrors: props.serverFieldErrors,
|
|
9448
|
+
size: props.size,
|
|
9449
|
+
variant: props.variant
|
|
9450
|
+
}, slots["default"] ? { default: (renderProps) => slots["default"]?.({
|
|
9451
|
+
...renderProps,
|
|
9452
|
+
result: props.result
|
|
9453
|
+
}) } : void 0);
|
|
9454
|
+
};
|
|
9455
|
+
}
|
|
9456
|
+
});
|
|
9457
|
+
var BaseDeviceGrant_default = BaseDeviceGrant;
|
|
9458
|
+
|
|
9459
|
+
//#endregion
|
|
9460
|
+
//#region src/components/auth/device-grant/DeviceGrant.ts
|
|
9461
|
+
const hasUserCodeInput = (components) => components.some((component) => component.ref === "user_code" || Array.isArray(component.components) && hasUserCodeInput(component.components));
|
|
9462
|
+
/** Runs the application's configured Device Grant flow and exposes its state for custom renderers. */
|
|
9463
|
+
const DeviceGrant = defineComponent({
|
|
9464
|
+
name: "DeviceGrant",
|
|
9465
|
+
props: {
|
|
9466
|
+
className: {
|
|
9467
|
+
default: "",
|
|
9468
|
+
type: String
|
|
9469
|
+
},
|
|
9470
|
+
size: {
|
|
9471
|
+
default: "medium",
|
|
9472
|
+
type: String
|
|
9473
|
+
},
|
|
9474
|
+
variant: {
|
|
9475
|
+
default: "flat",
|
|
9476
|
+
type: String
|
|
9477
|
+
},
|
|
9478
|
+
onComplete: {
|
|
9479
|
+
default: void 0,
|
|
9480
|
+
type: Function
|
|
9481
|
+
},
|
|
9482
|
+
onError: {
|
|
9483
|
+
default: void 0,
|
|
9484
|
+
type: Function
|
|
9485
|
+
}
|
|
9486
|
+
},
|
|
9487
|
+
emits: ["complete", "error"],
|
|
9488
|
+
setup(props, { emit, slots }) {
|
|
9489
|
+
const { applicationId, baseUrl } = useThunderID_default();
|
|
9490
|
+
const { meta } = useFlowMeta_default();
|
|
9491
|
+
const { t } = useI18n_default();
|
|
9492
|
+
const components = ref([]);
|
|
9493
|
+
const initialValues = ref({});
|
|
9494
|
+
const additionalData = ref({});
|
|
9495
|
+
const serverFieldErrors = ref(null);
|
|
9496
|
+
const executionId = ref("");
|
|
9497
|
+
const challengeToken = ref("");
|
|
9498
|
+
const error = ref(null);
|
|
9499
|
+
const isLoading = ref(false);
|
|
9500
|
+
const result = ref(null);
|
|
9501
|
+
const flowStartAttempted = ref(false);
|
|
9502
|
+
const applyResponse = (response) => {
|
|
9503
|
+
const normalized = normalizeFlowResponse(response, t, { resolveTranslations: false }, meta.value);
|
|
9504
|
+
executionId.value = response.executionId ?? "";
|
|
9505
|
+
challengeToken.value = response.challengeToken ?? "";
|
|
9506
|
+
components.value = normalized.components ?? [];
|
|
9507
|
+
additionalData.value = normalized.additionalData ?? {};
|
|
9508
|
+
serverFieldErrors.value = response.data?.fieldErrors ?? null;
|
|
9509
|
+
error.value = response.error ? new Error(extractErrorMessage(response, t)) : null;
|
|
9510
|
+
if (response.flowStatus === EmbeddedSignInFlowStatus$1.Complete) {
|
|
9511
|
+
result.value = "success";
|
|
9512
|
+
props.onComplete?.(response);
|
|
9513
|
+
emit("complete", response);
|
|
9514
|
+
return;
|
|
9515
|
+
}
|
|
9516
|
+
if (response.flowStatus === EmbeddedSignInFlowStatus$1.Error) {
|
|
9517
|
+
error.value = new Error(extractErrorMessage(response, t, "deviceGrant.messages.failed"));
|
|
9518
|
+
result.value = "failure";
|
|
9519
|
+
props.onError?.(error.value);
|
|
9520
|
+
emit("error", error.value);
|
|
9521
|
+
return;
|
|
9522
|
+
}
|
|
9523
|
+
result.value = null;
|
|
9524
|
+
};
|
|
9525
|
+
const clearVerificationParameters = () => {
|
|
9526
|
+
const url = new URL(window.location.href);
|
|
9527
|
+
url.searchParams.delete("user_code");
|
|
9528
|
+
url.searchParams.delete("applicationId");
|
|
9529
|
+
window.history.replaceState(window.history.state, "", url.toString());
|
|
9530
|
+
};
|
|
9531
|
+
const startFlow = async (appId) => {
|
|
9532
|
+
isLoading.value = true;
|
|
9533
|
+
error.value = null;
|
|
9534
|
+
try {
|
|
9535
|
+
const response = await executeEmbeddedDeviceGrantFlow({
|
|
9536
|
+
baseUrl,
|
|
9537
|
+
payload: {
|
|
9538
|
+
applicationId: appId,
|
|
9539
|
+
flowType: EmbeddedFlowType.DeviceGrant,
|
|
9540
|
+
inputs: {}
|
|
9541
|
+
}
|
|
9542
|
+
});
|
|
9543
|
+
clearVerificationParameters();
|
|
9544
|
+
applyResponse(response);
|
|
9545
|
+
} catch (cause) {
|
|
9546
|
+
const flowError = cause instanceof Error ? cause : new Error(t("deviceGrant.errors.continue"));
|
|
9547
|
+
components.value = [];
|
|
9548
|
+
additionalData.value = {};
|
|
9549
|
+
serverFieldErrors.value = null;
|
|
9550
|
+
error.value = flowError;
|
|
9551
|
+
result.value = "failure";
|
|
9552
|
+
props.onError?.(flowError);
|
|
9553
|
+
emit("error", flowError);
|
|
9554
|
+
} finally {
|
|
9555
|
+
isLoading.value = false;
|
|
9556
|
+
}
|
|
9557
|
+
};
|
|
9558
|
+
const submit = async (payload, actionId) => {
|
|
9559
|
+
isLoading.value = true;
|
|
9560
|
+
error.value = null;
|
|
9561
|
+
result.value = null;
|
|
9562
|
+
try {
|
|
9563
|
+
if (!executionId.value) return;
|
|
9564
|
+
const inputs = Object.fromEntries(Object.entries(payload.inputs ?? {}).filter(([key]) => !key.startsWith("__consent_opt__")));
|
|
9565
|
+
if (!hasUserCodeInput(components.value)) delete inputs["user_code"];
|
|
9566
|
+
applyResponse(await executeEmbeddedDeviceGrantFlow({
|
|
9567
|
+
baseUrl,
|
|
9568
|
+
payload: {
|
|
9569
|
+
action: payload.action ?? actionId,
|
|
9570
|
+
challengeToken: challengeToken.value,
|
|
9571
|
+
executionId: executionId.value,
|
|
9572
|
+
inputs
|
|
9573
|
+
}
|
|
9574
|
+
}));
|
|
9575
|
+
} catch (cause) {
|
|
9576
|
+
const flowError = cause instanceof Error ? cause : new Error(t("deviceGrant.errors.continue"));
|
|
9577
|
+
components.value = [];
|
|
9578
|
+
additionalData.value = {};
|
|
9579
|
+
serverFieldErrors.value = null;
|
|
9580
|
+
error.value = flowError;
|
|
9581
|
+
result.value = "failure";
|
|
9582
|
+
props.onError?.(flowError);
|
|
9583
|
+
emit("error", flowError);
|
|
9584
|
+
} finally {
|
|
9585
|
+
isLoading.value = false;
|
|
9586
|
+
}
|
|
9587
|
+
};
|
|
9588
|
+
onMounted(() => {
|
|
9589
|
+
const url = new URL(window.location.href);
|
|
9590
|
+
const code = url.searchParams.get("user_code");
|
|
9591
|
+
if (code) initialValues.value = { user_code: code };
|
|
9592
|
+
const applicationIdFromUrl = url.searchParams.get("applicationId");
|
|
9593
|
+
const appId = applicationIdFromUrl?.trim() ? applicationIdFromUrl : applicationId;
|
|
9594
|
+
if (!appId) {
|
|
9595
|
+
const flowError = new Error(t("deviceGrant.errors.start"));
|
|
9596
|
+
error.value = flowError;
|
|
9597
|
+
result.value = "failure";
|
|
9598
|
+
props.onError?.(flowError);
|
|
9599
|
+
emit("error", flowError);
|
|
9600
|
+
return;
|
|
9601
|
+
}
|
|
9602
|
+
if (flowStartAttempted.value) return;
|
|
9603
|
+
flowStartAttempted.value = true;
|
|
9604
|
+
startFlow(appId);
|
|
9605
|
+
});
|
|
9606
|
+
return () => h(BaseDeviceGrant_default, {
|
|
9607
|
+
className: props.className,
|
|
9608
|
+
components: components.value,
|
|
9609
|
+
additionalData: additionalData.value,
|
|
9610
|
+
error: error.value,
|
|
9611
|
+
initialValues: initialValues.value,
|
|
9612
|
+
isLoading: isLoading.value,
|
|
9613
|
+
onSubmit: (payload, component) => submit(payload, component.id),
|
|
9614
|
+
result: result.value,
|
|
9615
|
+
serverFieldErrors: serverFieldErrors.value,
|
|
9616
|
+
size: props.size,
|
|
9617
|
+
variant: props.variant
|
|
9618
|
+
}, slots["default"] ? { default: slots["default"] } : void 0);
|
|
9619
|
+
}
|
|
9620
|
+
});
|
|
9621
|
+
var DeviceGrant_default = DeviceGrant;
|
|
9622
|
+
|
|
9022
9623
|
//#endregion
|
|
9023
9624
|
//#region src/utils/getAuthComponentHeadings.ts
|
|
9024
9625
|
/**
|
|
@@ -16751,4 +17352,4 @@ const createCallbackRoute = (options = {}) => {
|
|
|
16751
17352
|
};
|
|
16752
17353
|
|
|
16753
17354
|
//#endregion
|
|
16754
|
-
export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AccountLifecycleFlowConfigKey, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseGroupCreate_default as BaseGroupCreate, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createDesignTheme, createField, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createResource, createResourceInvalidator, createResourceServer, createRole, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAccountLifecycleActions, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentName, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRoleAssignments, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAdministrationFlow, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };
|
|
17355
|
+
export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AccountLifecycleFlowConfigKey, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseDeviceGrant_default as BaseDeviceGrant, BaseGroupCreate_default as BaseGroupCreate, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, Consent_default as Consent, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, DeviceGrant_default as DeviceGrant, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createDesignTheme, createField, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createResource, createResourceInvalidator, createResourceServer, createRole, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAccountLifecycleActions, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentName, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRoleAssignments, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAdministrationFlow, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };
|