@thunderid/vue 1.10.2 → 1.10.3
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/cjs/index.cjs
CHANGED
|
@@ -796,7 +796,7 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
|
|
|
796
796
|
const opts = typeof options === "object" && options !== null ? options : void 0;
|
|
797
797
|
const configData = await this.getStorageManager().getConfigData();
|
|
798
798
|
return await getUsersMe_default({
|
|
799
|
-
baseUrl: opts?.baseUrl ?? (0, __thunderid_browser.
|
|
799
|
+
baseUrl: opts?.baseUrl ?? (0, __thunderid_browser.resolveRequestBaseUrl)(configData),
|
|
800
800
|
url: (0, __thunderid_browser.resolveResourceEndpoint)("usersMe", configData, opts?.url)
|
|
801
801
|
});
|
|
802
802
|
} catch (error) {
|
|
@@ -814,7 +814,7 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
|
|
|
814
814
|
try {
|
|
815
815
|
const configData = await this.getStorageManager().getConfigData();
|
|
816
816
|
const profile = await getUsersMe_default({
|
|
817
|
-
baseUrl: options?.baseUrl ?? (0, __thunderid_browser.
|
|
817
|
+
baseUrl: options?.baseUrl ?? (0, __thunderid_browser.resolveRequestBaseUrl)(configData),
|
|
818
818
|
instanceId: this.getInstanceId(),
|
|
819
819
|
url: (0, __thunderid_browser.resolveResourceEndpoint)("usersMe", configData, options?.url)
|
|
820
820
|
});
|
|
@@ -1041,11 +1041,11 @@ const ThunderIDProvider = (0, vue.defineComponent)({
|
|
|
1041
1041
|
const user = (0, vue.shallowRef)(null);
|
|
1042
1042
|
const userProfile = (0, vue.shallowRef)(null);
|
|
1043
1043
|
const userSchema = (0, vue.ref)(null);
|
|
1044
|
-
const
|
|
1044
|
+
const requestBaseUrl = (0, __thunderid_browser.resolveRequestBaseUrl)({
|
|
1045
1045
|
baseUrl: props.baseUrl,
|
|
1046
1046
|
endpoints: props.endpoints
|
|
1047
1047
|
}) ?? "";
|
|
1048
|
-
const resolvedBaseUrl = (0, vue.ref)(
|
|
1048
|
+
const resolvedBaseUrl = (0, vue.ref)(requestBaseUrl);
|
|
1049
1049
|
let isUpdatingSession = false;
|
|
1050
1050
|
let signInCheckInterval;
|
|
1051
1051
|
let loadingCheckInterval;
|
|
@@ -1076,7 +1076,7 @@ const ThunderIDProvider = (0, vue.defineComponent)({
|
|
|
1076
1076
|
let baseUrl = resolvedBaseUrl.value;
|
|
1077
1077
|
const decodedToken = await client.getDecodedIdToken();
|
|
1078
1078
|
if (decodedToken?.["user_org"]) {
|
|
1079
|
-
baseUrl = `${(0, __thunderid_browser.
|
|
1079
|
+
baseUrl = `${(0, __thunderid_browser.resolveRequestBaseUrl)(await client.getConfiguration()) ?? ""}/o`;
|
|
1080
1080
|
resolvedBaseUrl.value = baseUrl;
|
|
1081
1081
|
}
|
|
1082
1082
|
const shouldFetchProfile = props.preferences?.user?.fetchUserProfile !== false;
|
|
@@ -1157,7 +1157,7 @@ const ThunderIDProvider = (0, vue.defineComponent)({
|
|
|
1157
1157
|
const context = {
|
|
1158
1158
|
afterSignInUrl: props.afterSignInUrl,
|
|
1159
1159
|
applicationId: props.applicationId,
|
|
1160
|
-
baseUrl:
|
|
1160
|
+
baseUrl: requestBaseUrl,
|
|
1161
1161
|
endpoints: props.endpoints,
|
|
1162
1162
|
clearSession: async (...args) => {
|
|
1163
1163
|
await client.clearSession(...args);
|
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, 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,
|
|
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, resolveRequestBaseUrl, 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
|
|
|
@@ -770,7 +770,7 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
770
770
|
const opts = typeof options === "object" && options !== null ? options : void 0;
|
|
771
771
|
const configData = await this.getStorageManager().getConfigData();
|
|
772
772
|
return await getUsersMe_default({
|
|
773
|
-
baseUrl: opts?.baseUrl ??
|
|
773
|
+
baseUrl: opts?.baseUrl ?? resolveRequestBaseUrl(configData),
|
|
774
774
|
url: resolveResourceEndpoint("usersMe", configData, opts?.url)
|
|
775
775
|
});
|
|
776
776
|
} catch (error) {
|
|
@@ -788,7 +788,7 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
788
788
|
try {
|
|
789
789
|
const configData = await this.getStorageManager().getConfigData();
|
|
790
790
|
const profile = await getUsersMe_default({
|
|
791
|
-
baseUrl: options?.baseUrl ??
|
|
791
|
+
baseUrl: options?.baseUrl ?? resolveRequestBaseUrl(configData),
|
|
792
792
|
instanceId: this.getInstanceId(),
|
|
793
793
|
url: resolveResourceEndpoint("usersMe", configData, options?.url)
|
|
794
794
|
});
|
|
@@ -1015,11 +1015,11 @@ const ThunderIDProvider = defineComponent({
|
|
|
1015
1015
|
const user = shallowRef(null);
|
|
1016
1016
|
const userProfile = shallowRef(null);
|
|
1017
1017
|
const userSchema = ref(null);
|
|
1018
|
-
const
|
|
1018
|
+
const requestBaseUrl = resolveRequestBaseUrl({
|
|
1019
1019
|
baseUrl: props.baseUrl,
|
|
1020
1020
|
endpoints: props.endpoints
|
|
1021
1021
|
}) ?? "";
|
|
1022
|
-
const resolvedBaseUrl = ref(
|
|
1022
|
+
const resolvedBaseUrl = ref(requestBaseUrl);
|
|
1023
1023
|
let isUpdatingSession = false;
|
|
1024
1024
|
let signInCheckInterval;
|
|
1025
1025
|
let loadingCheckInterval;
|
|
@@ -1050,7 +1050,7 @@ const ThunderIDProvider = defineComponent({
|
|
|
1050
1050
|
let baseUrl = resolvedBaseUrl.value;
|
|
1051
1051
|
const decodedToken = await client.getDecodedIdToken();
|
|
1052
1052
|
if (decodedToken?.["user_org"]) {
|
|
1053
|
-
baseUrl = `${
|
|
1053
|
+
baseUrl = `${resolveRequestBaseUrl(await client.getConfiguration()) ?? ""}/o`;
|
|
1054
1054
|
resolvedBaseUrl.value = baseUrl;
|
|
1055
1055
|
}
|
|
1056
1056
|
const shouldFetchProfile = props.preferences?.user?.fetchUserProfile !== false;
|
|
@@ -1131,7 +1131,7 @@ const ThunderIDProvider = defineComponent({
|
|
|
1131
1131
|
const context = {
|
|
1132
1132
|
afterSignInUrl: props.afterSignInUrl,
|
|
1133
1133
|
applicationId: props.applicationId,
|
|
1134
|
-
baseUrl:
|
|
1134
|
+
baseUrl: requestBaseUrl,
|
|
1135
1135
|
endpoints: props.endpoints,
|
|
1136
1136
|
clearSession: async (...args) => {
|
|
1137
1137
|
await client.clearSession(...args);
|
|
@@ -13,8 +13,8 @@ export interface ThunderIDContext {
|
|
|
13
13
|
/** The ThunderID application ID from the config. */
|
|
14
14
|
applicationId: string | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* The base URL the SDK's API requests are built on: the ThunderID tenant, or in backend mode
|
|
17
|
-
* `endpoints.backend.
|
|
16
|
+
* The base URL the SDK's API requests are built on: the ThunderID tenant, or in backend mode the
|
|
17
|
+
* backend's proxy (`endpoints.backend.proxy`, resolved against `baseUrl`).
|
|
18
18
|
*/
|
|
19
19
|
baseUrl: string | undefined;
|
|
20
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderIDProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ThunderIDProvider.ts"],"names":[],"mappings":"AAyBA,OAAO,EAEL,KAAK,SAAS,EAcf,MAAM,KAAK,CAAC;AAiDb;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"ThunderIDProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ThunderIDProvider.ts"],"names":[],"mappings":"AAyBA,OAAO,EAEL,KAAK,SAAS,EAcf,MAAM,KAAK,CAAC;AAiDb;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB,EAAE,SAuevB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thunderid/vue",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"description": "Vue SDK for ThunderID",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"thunderid",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@thunderid/browser": "^1.9.
|
|
60
|
+
"@thunderid/browser": "^1.9.3",
|
|
61
61
|
"dompurify": "3.4.17",
|
|
62
62
|
"tslib": "2.8.1"
|
|
63
63
|
},
|