keycloakify 10.0.0-rc.17 → 10.0.0-rc.18
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/PUBLIC_URL.js.map +1 -1
- package/account/Template.js +5 -5
- package/account/Template.js.map +1 -1
- package/account/i18n/i18n.js +37 -29
- package/account/i18n/i18n.js.map +1 -1
- package/account/kcContext/KcContext.js.map +1 -1
- package/account/kcContext/createGetKcContext.js +20 -15
- package/account/kcContext/createGetKcContext.js.map +1 -1
- package/account/kcContext/getKcContext.js.map +1 -1
- package/account/kcContext/getKcContextFromWindow.d.ts +3 -1
- package/account/kcContext/getKcContextFromWindow.js.map +1 -1
- package/account/kcContext/kcContextMocks.js +148 -144
- package/account/kcContext/kcContextMocks.js.map +1 -1
- package/account/lib/useGetClassName.js +14 -14
- package/account/lib/useGetClassName.js.map +1 -1
- package/account/pages/Account.js +1 -1
- package/account/pages/Account.js.map +1 -1
- package/account/pages/Password.js +7 -7
- package/account/pages/Password.js.map +1 -1
- package/account/pages/Totp.js +4 -4
- package/account/pages/Totp.js.map +1 -1
- package/bin/main.js +2066 -2165
- package/bin/shared/constants.d.ts +1 -0
- package/bin/shared/constants.js +4 -3
- package/bin/shared/constants.js.map +1 -1
- package/lib/isStorybook.js +2 -1
- package/lib/isStorybook.js.map +1 -1
- package/lib/useGetClassName.js.map +1 -1
- package/login/Template.js +13 -13
- package/login/Template.js.map +1 -1
- package/login/UserProfileFormFields.js +43 -41
- package/login/UserProfileFormFields.js.map +1 -1
- package/login/i18n/baseMessages/ca.d.ts +1 -1
- package/login/i18n/baseMessages/ca.js +1 -1
- package/login/i18n/baseMessages/el.d.ts +0 -1
- package/login/i18n/baseMessages/el.js +0 -1
- package/login/i18n/baseMessages/el.js.map +1 -1
- package/login/i18n/baseMessages/en.d.ts +1 -1
- package/login/i18n/baseMessages/en.js +1 -1
- package/login/i18n/baseMessages/es.d.ts +1 -1
- package/login/i18n/baseMessages/es.js +1 -1
- package/login/i18n/baseMessages/fa.d.ts +0 -1
- package/login/i18n/baseMessages/fa.js +0 -1
- package/login/i18n/baseMessages/fa.js.map +1 -1
- package/login/i18n/baseMessages/hu.d.ts +1 -1
- package/login/i18n/baseMessages/hu.js +1 -1
- package/login/i18n/baseMessages/index.d.ts +1 -2
- package/login/i18n/baseMessages/zh-CN.d.ts +1 -1
- package/login/i18n/baseMessages/zh-CN.js +1 -1
- package/login/i18n/i18n.js +39 -31
- package/login/i18n/i18n.js.map +1 -1
- package/login/kcContext/KcContext.js.map +1 -1
- package/login/kcContext/createGetKcContext.js +30 -22
- package/login/kcContext/createGetKcContext.js.map +1 -1
- package/login/kcContext/getKcContext.js.map +1 -1
- package/login/kcContext/getKcContextFromWindow.d.ts +3 -1
- package/login/kcContext/getKcContextFromWindow.js.map +1 -1
- package/login/kcContext/kcContextMocks.js +233 -231
- package/login/kcContext/kcContextMocks.js.map +1 -1
- package/login/lib/useDownloadTerms.js.map +1 -1
- package/login/lib/useGetClassName.js +112 -112
- package/login/lib/useGetClassName.js.map +1 -1
- package/login/lib/useUserProfileForm.js +181 -181
- package/login/lib/useUserProfileForm.js.map +1 -1
- package/login/pages/DeleteAccountConfirm.js +5 -1
- package/login/pages/DeleteAccountConfirm.js.map +1 -1
- package/login/pages/FrontchannelLogout.js +1 -1
- package/login/pages/FrontchannelLogout.js.map +1 -1
- package/login/pages/Login.js.map +1 -1
- package/login/pages/LoginRecoveryAuthnCodeConfig.js +3 -3
- package/login/pages/LoginRecoveryAuthnCodeConfig.js.map +1 -1
- package/login/pages/LoginResetPassword.js.map +1 -1
- package/login/pages/LoginUsername.js.map +1 -1
- package/login/pages/WebauthnAuthenticate.js +11 -8
- package/login/pages/WebauthnAuthenticate.js.map +1 -1
- package/login/pages/WebauthnRegister.js +7 -7
- package/login/pages/WebauthnRegister.js.map +1 -1
- package/package.json +230 -226
- package/src/PUBLIC_URL.ts +4 -1
- package/src/account/Template.tsx +5 -5
- package/src/account/TemplateProps.ts +4 -1
- package/src/account/i18n/i18n.tsx +40 -30
- package/src/account/kcContext/KcContext.ts +4 -1
- package/src/account/kcContext/createGetKcContext.ts +48 -22
- package/src/account/kcContext/getKcContext.ts +3 -1
- package/src/account/kcContext/getKcContextFromWindow.ts +6 -2
- package/src/account/kcContext/kcContextMocks.ts +164 -160
- package/src/account/lib/useGetClassName.ts +15 -14
- package/src/account/pages/Account.tsx +2 -2
- package/src/account/pages/Password.tsx +8 -8
- package/src/account/pages/Totp.tsx +4 -6
- package/src/bin/copy-keycloak-resources-to-public.ts +2 -2
- package/src/bin/download-keycloak-default-theme.ts +30 -8
- package/src/bin/eject-page.ts +48 -11
- package/src/bin/initialize-email-theme.ts +25 -17
- package/src/bin/keycloakify/buildJars/buildJar.ts +179 -104
- package/src/bin/keycloakify/buildJars/buildJars.ts +35 -16
- package/src/bin/keycloakify/buildJars/extensionVersions.ts +2 -1
- package/src/bin/keycloakify/buildJars/generatePom.ts +11 -3
- package/src/bin/keycloakify/buildJars/getKeycloakVersionRangeForJar.ts +33 -8
- package/src/bin/keycloakify/generateFtl/generateFtl.ts +49 -12
- package/src/bin/keycloakify/generateSrcMainResources/bringInAccountV1.ts +29 -18
- package/src/bin/keycloakify/generateSrcMainResources/generateMessageProperties.ts +35 -12
- package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResources.ts +3 -1
- package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForMainTheme.ts +86 -41
- package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForThemeVariant.ts +39 -15
- package/src/bin/keycloakify/generateSrcMainResources/readExtraPageNames.ts +21 -7
- package/src/bin/keycloakify/generateSrcMainResources/readFieldNameUsage.ts +34 -7
- package/src/bin/keycloakify/generateStartKeycloakTestingContainer.ts +19 -5
- package/src/bin/keycloakify/keycloakify.ts +28 -9
- package/src/bin/keycloakify/replacers/replaceImportsInCssCode.ts +24 -5
- package/src/bin/keycloakify/replacers/replaceImportsInInlineCssCode.ts +6 -2
- package/src/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.ts +6 -3
- package/src/bin/keycloakify/replacers/replaceImportsInJsCode/vite.ts +24 -6
- package/src/bin/keycloakify/replacers/replaceImportsInJsCode/webpack.ts +49 -11
- package/src/bin/main.ts +78 -41
- package/src/bin/shared/KeycloakVersionRange.ts +3 -1
- package/src/bin/shared/buildOptions.ts +70 -43
- package/src/bin/shared/constants.ts +4 -2
- package/src/bin/shared/copyKeycloakResourcesToPublic.ts +27 -13
- package/src/bin/shared/downloadKeycloakDefaultTheme.ts +161 -218
- package/src/bin/shared/downloadKeycloakStaticResources.ts +25 -21
- package/src/bin/shared/getJarFileBasename.ts +3 -1
- package/src/bin/shared/getThemeSrcDirPath.ts +5 -2
- package/src/bin/shared/metaInfKeycloakThemes.ts +35 -8
- package/src/bin/shared/promptKeycloakVersion.ts +33 -14
- package/src/bin/start-keycloak/index.ts +1 -0
- package/src/bin/start-keycloak/myrealm-realm-23.json +2142 -0
- package/src/bin/start-keycloak/myrealm-realm-24.json +2318 -0
- package/src/bin/start-keycloak/start-keycloak.ts +467 -0
- package/src/bin/tools/SemVer.ts +32 -13
- package/src/bin/tools/String.prototype.replaceAll.ts +9 -2
- package/src/bin/tools/crawl.ts +4 -1
- package/src/bin/tools/crc32.ts +42 -24
- package/src/bin/tools/downloadAndExtractArchive/downloadAndExtractArchive.ts +262 -0
- package/src/bin/tools/downloadAndExtractArchive/fetchProxyOptions.ts +96 -0
- package/src/bin/tools/downloadAndExtractArchive/index.ts +1 -0
- package/src/bin/tools/extractArchive.ts +120 -0
- package/src/bin/tools/fetchProxyOptions.ts +31 -8
- package/src/bin/tools/getAbsoluteAndInOsFormatPath.ts +10 -2
- package/src/bin/tools/getNpmWorkspaceRootDirPath.ts +18 -5
- package/src/bin/tools/octokit-addons/getLatestsSemVersionedTag.ts +8 -2
- package/src/bin/tools/octokit-addons/listTags.ts +15 -4
- package/src/bin/tools/partitionPromiseSettledResults.ts +12 -3
- package/src/bin/tools/readThisNpmPackageVersion.ts +5 -1
- package/src/bin/tools/transformCodebase.ts +29 -10
- package/src/bin/tools/trimIndent.ts +4 -1
- package/src/lib/isStorybook.ts +3 -1
- package/src/lib/useGetClassName.ts +12 -3
- package/src/login/Template.tsx +14 -14
- package/src/login/TemplateProps.ts +4 -1
- package/src/login/UserProfileFormFields.tsx +44 -42
- package/src/login/i18n/baseMessages/ca.ts +1 -1
- package/src/login/i18n/baseMessages/el.ts +0 -1
- package/src/login/i18n/baseMessages/en.ts +1 -1
- package/src/login/i18n/baseMessages/es.ts +1 -1
- package/src/login/i18n/baseMessages/fa.ts +0 -1
- package/src/login/i18n/baseMessages/hu.ts +1 -1
- package/src/login/i18n/baseMessages/zh-CN.ts +1 -1
- package/src/login/i18n/i18n.tsx +42 -32
- package/src/login/kcContext/KcContext.ts +8 -2
- package/src/login/kcContext/createGetKcContext.ts +84 -37
- package/src/login/kcContext/getKcContext.ts +3 -1
- package/src/login/kcContext/getKcContextFromWindow.ts +6 -2
- package/src/login/kcContext/kcContextMocks.ts +339 -325
- package/src/login/lib/useDownloadTerms.ts +6 -4
- package/src/login/lib/useGetClassName.ts +119 -112
- package/src/login/lib/useUserProfileForm.tsx +219 -205
- package/src/login/pages/DeleteAccountConfirm.tsx +9 -3
- package/src/login/pages/FrontchannelLogout.tsx +1 -1
- package/src/login/pages/Login.tsx +2 -2
- package/src/login/pages/LoginRecoveryAuthnCodeConfig.tsx +3 -3
- package/src/login/pages/LoginResetPassword.tsx +2 -2
- package/src/login/pages/LoginUsername.tsx +2 -2
- package/src/login/pages/WebauthnAuthenticate.tsx +11 -8
- package/src/login/pages/WebauthnRegister.tsx +7 -7
- package/src/tools/AndByDiscriminatingKey.ts +12 -6
- package/src/tools/Array.prototype.every.ts +4 -1
- package/src/tools/LazyOrNot.ts +3 -1
- package/src/tools/clsx.ts +7 -1
- package/src/tools/deepAssign.ts +15 -8
- package/src/tools/deepClone.ts +3 -1
- package/src/tools/formatNumber.ts +4 -1
- package/src/tools/useConstCallback.ts +3 -1
- package/src/tools/useInsertLinkTags.ts +20 -7
- package/src/tools/useInsertScriptTags.ts +7 -2
- package/src/tools/useSetClassName.ts +4 -1
- package/src/vite-plugin/vite-plugin.ts +45 -21
- package/tools/Array.prototype.every.js +2 -1
- package/tools/Array.prototype.every.js.map +1 -1
- package/tools/clsx.js.map +1 -1
- package/tools/deepAssign.js +9 -7
- package/tools/deepAssign.js.map +1 -1
- package/tools/deepClone.js.map +1 -1
- package/tools/formatNumber.js.map +1 -1
- package/tools/useConstCallback.js.map +1 -1
- package/tools/useInsertLinkTags.js +5 -4
- package/tools/useInsertLinkTags.js.map +1 -1
- package/tools/useInsertScriptTags.js +5 -2
- package/tools/useInsertScriptTags.js.map +1 -1
- package/tools/useSetClassName.js.map +1 -1
- package/vite-plugin/index.js +975 -1651
- package/src/bin/shared/downloadAndUnzip.ts +0 -203
- package/src/bin/start-keycloak.ts +0 -309
- package/src/bin/tools/unzip.ts +0 -141
@@ -1,324 +1,336 @@
|
|
1
1
|
import "minimal-polyfills/Object.fromEntries";
|
2
2
|
import type { KcContext, Attribute } from "./KcContext";
|
3
|
-
import {
|
3
|
+
import {
|
4
|
+
resources_common,
|
5
|
+
keycloak_resources,
|
6
|
+
type LoginThemePageId
|
7
|
+
} from "keycloakify/bin/shared/constants";
|
4
8
|
import { id } from "tsafe/id";
|
5
9
|
import { assert, type Equals } from "tsafe/assert";
|
6
10
|
import { BASE_URL } from "keycloakify/lib/BASE_URL";
|
7
11
|
|
8
12
|
const attributes: Attribute[] = [
|
9
13
|
{
|
10
|
-
|
11
|
-
|
14
|
+
validators: {
|
15
|
+
length: {
|
12
16
|
"ignore.empty.value": true,
|
13
|
-
|
14
|
-
|
17
|
+
min: "3",
|
18
|
+
max: "255"
|
15
19
|
}
|
16
20
|
},
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
displayName: "${username}",
|
22
|
+
annotations: {},
|
23
|
+
required: true,
|
24
|
+
autocomplete: "username",
|
25
|
+
readOnly: false,
|
26
|
+
name: "username",
|
27
|
+
value: "xxxx"
|
24
28
|
},
|
25
29
|
{
|
26
|
-
|
27
|
-
|
28
|
-
|
30
|
+
validators: {
|
31
|
+
length: {
|
32
|
+
max: "255",
|
29
33
|
"ignore.empty.value": true
|
30
34
|
},
|
31
|
-
|
35
|
+
email: {
|
32
36
|
"ignore.empty.value": true
|
33
37
|
},
|
34
|
-
|
38
|
+
pattern: {
|
35
39
|
"ignore.empty.value": true,
|
36
|
-
|
40
|
+
pattern: "gmail\\.com$"
|
37
41
|
}
|
38
42
|
},
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
displayName: "${email}",
|
44
|
+
annotations: {},
|
45
|
+
required: true,
|
46
|
+
autocomplete: "email",
|
47
|
+
readOnly: false,
|
48
|
+
name: "email"
|
45
49
|
},
|
46
50
|
{
|
47
|
-
|
48
|
-
|
49
|
-
|
51
|
+
validators: {
|
52
|
+
length: {
|
53
|
+
max: "255",
|
50
54
|
"ignore.empty.value": true
|
51
55
|
}
|
52
56
|
},
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
57
|
+
displayName: "${firstName}",
|
58
|
+
annotations: {},
|
59
|
+
required: true,
|
60
|
+
readOnly: false,
|
61
|
+
name: "firstName"
|
58
62
|
},
|
59
63
|
{
|
60
|
-
|
61
|
-
|
62
|
-
|
64
|
+
validators: {
|
65
|
+
length: {
|
66
|
+
max: "255",
|
63
67
|
"ignore.empty.value": true
|
64
68
|
}
|
65
69
|
},
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
70
|
+
displayName: "${lastName}",
|
71
|
+
annotations: {},
|
72
|
+
required: true,
|
73
|
+
readOnly: false,
|
74
|
+
name: "lastName"
|
71
75
|
}
|
72
76
|
];
|
73
77
|
|
74
|
-
const attributesByName = Object.fromEntries(
|
78
|
+
const attributesByName = Object.fromEntries(
|
79
|
+
attributes.map(attribute => [attribute.name, attribute])
|
80
|
+
) as any;
|
75
81
|
|
76
82
|
const resourcesPath = `${BASE_URL}${keycloak_resources}/login/resources`;
|
77
83
|
|
78
84
|
export const kcContextCommonMock: KcContext.Common = {
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
+
themeVersion: "0.0.0",
|
86
|
+
keycloakifyVersion: "0.0.0",
|
87
|
+
themeType: "login",
|
88
|
+
themeName: "my-theme-name",
|
89
|
+
url: {
|
90
|
+
loginAction: "#",
|
85
91
|
resourcesPath,
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
92
|
+
resourcesCommonPath: `${resourcesPath}/${resources_common}`,
|
93
|
+
loginRestartFlowUrl:
|
94
|
+
"/auth/realms/myrealm/login-actions/restart?client_id=account&tab_id=HoAx28ja4xg",
|
95
|
+
loginUrl:
|
96
|
+
"/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg",
|
97
|
+
ssoLoginInOtherTabsUrl:
|
98
|
+
"/auth/realms/myrealm/login-actions/switch?client_id=account&tab_id=HoAx28ja4xg"
|
90
99
|
},
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
100
|
+
realm: {
|
101
|
+
name: "myrealm",
|
102
|
+
displayName: "myrealm",
|
103
|
+
displayNameHtml: "myrealm",
|
104
|
+
internationalizationEnabled: true,
|
105
|
+
registrationEmailAsUsername: false
|
97
106
|
},
|
98
|
-
|
99
|
-
|
107
|
+
messagesPerField: {
|
108
|
+
printIfExists: () => {
|
100
109
|
return undefined;
|
101
110
|
},
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
111
|
+
existsError: () => false,
|
112
|
+
get: fieldName => `Fake error for ${fieldName}`,
|
113
|
+
exists: () => false,
|
114
|
+
getFirstError: fieldName => `Fake error for ${fieldName}`
|
106
115
|
},
|
107
|
-
|
108
|
-
|
116
|
+
locale: {
|
117
|
+
supported: [
|
109
118
|
/* spell-checker: disable */
|
110
119
|
{
|
111
|
-
|
112
|
-
|
113
|
-
|
120
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=de",
|
121
|
+
label: "Deutsch",
|
122
|
+
languageTag: "de"
|
114
123
|
},
|
115
124
|
{
|
116
|
-
|
117
|
-
|
118
|
-
|
125
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=no",
|
126
|
+
label: "Norsk",
|
127
|
+
languageTag: "no"
|
119
128
|
},
|
120
129
|
{
|
121
|
-
|
122
|
-
|
123
|
-
|
130
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=ru",
|
131
|
+
label: "Русский",
|
132
|
+
languageTag: "ru"
|
124
133
|
},
|
125
134
|
{
|
126
|
-
|
127
|
-
|
128
|
-
|
135
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=sv",
|
136
|
+
label: "Svenska",
|
137
|
+
languageTag: "sv"
|
129
138
|
},
|
130
139
|
{
|
131
|
-
|
132
|
-
|
133
|
-
|
140
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=pt-BR",
|
141
|
+
label: "Português (Brasil)",
|
142
|
+
languageTag: "pt-BR"
|
134
143
|
},
|
135
144
|
{
|
136
|
-
|
137
|
-
|
138
|
-
|
145
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=lt",
|
146
|
+
label: "Lietuvių",
|
147
|
+
languageTag: "lt"
|
139
148
|
},
|
140
149
|
{
|
141
|
-
|
142
|
-
|
143
|
-
|
150
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=en",
|
151
|
+
label: "English",
|
152
|
+
languageTag: "en"
|
144
153
|
},
|
145
154
|
{
|
146
|
-
|
147
|
-
|
148
|
-
|
155
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=it",
|
156
|
+
label: "Italiano",
|
157
|
+
languageTag: "it"
|
149
158
|
},
|
150
159
|
{
|
151
|
-
|
152
|
-
|
153
|
-
|
160
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=fr",
|
161
|
+
label: "Français",
|
162
|
+
languageTag: "fr"
|
154
163
|
},
|
155
164
|
{
|
156
|
-
|
157
|
-
|
158
|
-
|
165
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=zh-CN",
|
166
|
+
label: "中文简体",
|
167
|
+
languageTag: "zh-CN"
|
159
168
|
},
|
160
169
|
{
|
161
|
-
|
162
|
-
|
163
|
-
|
170
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=es",
|
171
|
+
label: "Español",
|
172
|
+
languageTag: "es"
|
164
173
|
},
|
165
174
|
{
|
166
|
-
|
167
|
-
|
168
|
-
|
175
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=cs",
|
176
|
+
label: "Čeština",
|
177
|
+
languageTag: "cs"
|
169
178
|
},
|
170
179
|
{
|
171
|
-
|
172
|
-
|
173
|
-
|
180
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=ja",
|
181
|
+
label: "日本語",
|
182
|
+
languageTag: "ja"
|
174
183
|
},
|
175
184
|
{
|
176
|
-
|
177
|
-
|
178
|
-
|
185
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=sk",
|
186
|
+
label: "Slovenčina",
|
187
|
+
languageTag: "sk"
|
179
188
|
},
|
180
189
|
{
|
181
|
-
|
182
|
-
|
183
|
-
|
190
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=pl",
|
191
|
+
label: "Polski",
|
192
|
+
languageTag: "pl"
|
184
193
|
},
|
185
194
|
{
|
186
|
-
|
187
|
-
|
188
|
-
|
195
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=ca",
|
196
|
+
label: "Català",
|
197
|
+
languageTag: "ca"
|
189
198
|
},
|
190
199
|
{
|
191
|
-
|
192
|
-
|
193
|
-
|
200
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=nl",
|
201
|
+
label: "Nederlands",
|
202
|
+
languageTag: "nl"
|
194
203
|
},
|
195
204
|
{
|
196
|
-
|
197
|
-
|
198
|
-
|
205
|
+
url: "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg&execution=ee6c2834-46a4-4a20-a1b6-f6d6f6451b36&kc_locale=tr",
|
206
|
+
label: "Türkçe",
|
207
|
+
languageTag: "tr"
|
199
208
|
}
|
200
209
|
/* spell-checker: enable */
|
201
210
|
],
|
202
|
-
|
211
|
+
currentLanguageTag: "en"
|
203
212
|
},
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
213
|
+
auth: {
|
214
|
+
showUsername: false,
|
215
|
+
showResetCredentials: false,
|
216
|
+
showTryAnotherWayLink: false
|
208
217
|
},
|
209
|
-
|
210
|
-
|
211
|
-
|
218
|
+
client: {
|
219
|
+
clientId: "myApp",
|
220
|
+
attributes: {}
|
212
221
|
},
|
213
|
-
|
214
|
-
|
215
|
-
|
222
|
+
scripts: [],
|
223
|
+
isAppInitiatedAction: false,
|
224
|
+
properties: {}
|
216
225
|
};
|
217
226
|
|
218
227
|
const loginUrl = {
|
219
228
|
...kcContextCommonMock.url,
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
229
|
+
loginResetCredentialsUrl:
|
230
|
+
"/auth/realms/myrealm/login-actions/reset-credentials?client_id=account&tab_id=HoAx28ja4xg",
|
231
|
+
registrationUrl:
|
232
|
+
"/auth/realms/myrealm/login-actions/registration?client_id=account&tab_id=HoAx28ja4xg",
|
233
|
+
oauth2DeviceVerificationAction: "/auth/realms/myrealm/device",
|
234
|
+
oauthAction:
|
235
|
+
"/auth/realms/myrealm/login-actions/consent?client_id=account&tab_id=HoAx28ja4xg"
|
224
236
|
};
|
225
237
|
|
226
238
|
export const kcContextMocks = [
|
227
239
|
id<KcContext.Login>({
|
228
240
|
...kcContextCommonMock,
|
229
|
-
|
230
|
-
|
231
|
-
|
241
|
+
pageId: "login.ftl",
|
242
|
+
url: loginUrl,
|
243
|
+
realm: {
|
232
244
|
...kcContextCommonMock.realm,
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
245
|
+
loginWithEmailAllowed: true,
|
246
|
+
rememberMe: true,
|
247
|
+
password: true,
|
248
|
+
resetPasswordAllowed: true,
|
249
|
+
registrationAllowed: true
|
238
250
|
},
|
239
|
-
|
240
|
-
|
241
|
-
|
251
|
+
auth: kcContextCommonMock.auth!,
|
252
|
+
social: {
|
253
|
+
displayInfo: true
|
242
254
|
},
|
243
|
-
|
244
|
-
|
245
|
-
|
255
|
+
usernameHidden: false,
|
256
|
+
login: {},
|
257
|
+
registrationDisabled: false
|
246
258
|
}),
|
247
259
|
id<KcContext.Register>({
|
248
260
|
...kcContextCommonMock,
|
249
|
-
|
261
|
+
url: {
|
250
262
|
...loginUrl,
|
251
|
-
|
263
|
+
registrationAction:
|
252
264
|
"http://localhost:8080/auth/realms/myrealm/login-actions/registration?session_code=gwZdUeO7pbYpFTRxiIxRg_QtzMbtFTKrNu6XW_f8asM&execution=12146ce0-b139-4bbd-b25b-0eccfee6577e&client_id=account&tab_id=uS8lYfebLa0"
|
253
265
|
},
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
266
|
+
isAppInitiatedAction: false,
|
267
|
+
passwordRequired: true,
|
268
|
+
recaptchaRequired: false,
|
269
|
+
pageId: "register.ftl",
|
270
|
+
profile: {
|
259
271
|
attributes,
|
260
272
|
attributesByName
|
261
273
|
},
|
262
|
-
|
274
|
+
scripts: [
|
263
275
|
//"https://www.google.com/recaptcha/api.js"
|
264
276
|
]
|
265
277
|
}),
|
266
278
|
id<KcContext.Info>({
|
267
279
|
...kcContextCommonMock,
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
280
|
+
pageId: "info.ftl",
|
281
|
+
messageHeader: "<Message header>",
|
282
|
+
requiredActions: undefined,
|
283
|
+
skipLink: false,
|
284
|
+
actionUri: "#",
|
285
|
+
client: {
|
286
|
+
clientId: "myApp",
|
287
|
+
baseUrl: "#",
|
288
|
+
attributes: {}
|
277
289
|
}
|
278
290
|
}),
|
279
291
|
id<KcContext.Error>({
|
280
292
|
...kcContextCommonMock,
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
293
|
+
pageId: "error.ftl",
|
294
|
+
client: {
|
295
|
+
clientId: "myApp",
|
296
|
+
baseUrl: "#",
|
297
|
+
attributes: {}
|
286
298
|
},
|
287
|
-
|
288
|
-
|
289
|
-
|
299
|
+
message: {
|
300
|
+
type: "error",
|
301
|
+
summary: "This is the error message"
|
290
302
|
}
|
291
303
|
}),
|
292
304
|
id<KcContext.LoginResetPassword>({
|
293
305
|
...kcContextCommonMock,
|
294
|
-
|
295
|
-
|
306
|
+
pageId: "login-reset-password.ftl",
|
307
|
+
realm: {
|
296
308
|
...kcContextCommonMock.realm,
|
297
|
-
|
298
|
-
|
309
|
+
loginWithEmailAllowed: false,
|
310
|
+
duplicateEmailsAllowed: false
|
299
311
|
},
|
300
|
-
|
301
|
-
|
312
|
+
url: loginUrl,
|
313
|
+
auth: {}
|
302
314
|
}),
|
303
315
|
id<KcContext.LoginVerifyEmail>({
|
304
316
|
...kcContextCommonMock,
|
305
|
-
|
306
|
-
|
307
|
-
|
317
|
+
pageId: "login-verify-email.ftl",
|
318
|
+
user: {
|
319
|
+
email: "john.doe@gmail.com"
|
308
320
|
}
|
309
321
|
}),
|
310
322
|
id<KcContext.Terms>({
|
311
323
|
...kcContextCommonMock,
|
312
|
-
|
324
|
+
pageId: "terms.ftl"
|
313
325
|
}),
|
314
326
|
id<KcContext.LoginDeviceVerifyUserCode>({
|
315
327
|
...kcContextCommonMock,
|
316
|
-
|
328
|
+
pageId: "login-oauth2-device-verify-user-code.ftl",
|
317
329
|
url: loginUrl
|
318
330
|
}),
|
319
331
|
id<KcContext.LoginOauthGrant>({
|
320
332
|
...kcContextCommonMock,
|
321
|
-
|
333
|
+
pageId: "login-oauth-grant.ftl",
|
322
334
|
oauth: {
|
323
335
|
code: "5-1N4CIzfi1aprIQjmylI-9e3spLCWW9i5d-GDcs-Sw",
|
324
336
|
clientScopesRequested: [
|
@@ -332,150 +344,152 @@ export const kcContextMocks = [
|
|
332
344
|
}),
|
333
345
|
id<KcContext.LoginOtp>({
|
334
346
|
...kcContextCommonMock,
|
335
|
-
|
336
|
-
|
337
|
-
|
347
|
+
pageId: "login-otp.ftl",
|
348
|
+
otpLogin: {
|
349
|
+
userOtpCredentials: [
|
338
350
|
{
|
339
|
-
|
340
|
-
|
351
|
+
id: "id1",
|
352
|
+
userLabel: "label1"
|
341
353
|
},
|
342
354
|
{
|
343
|
-
|
344
|
-
|
355
|
+
id: "id2",
|
356
|
+
userLabel: "label2"
|
345
357
|
}
|
346
358
|
]
|
347
359
|
}
|
348
360
|
}),
|
349
361
|
id<KcContext.LoginUsername>({
|
350
362
|
...kcContextCommonMock,
|
351
|
-
|
352
|
-
|
353
|
-
|
363
|
+
pageId: "login-username.ftl",
|
364
|
+
url: loginUrl,
|
365
|
+
realm: {
|
354
366
|
...kcContextCommonMock.realm,
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
367
|
+
loginWithEmailAllowed: true,
|
368
|
+
rememberMe: true,
|
369
|
+
password: true,
|
370
|
+
resetPasswordAllowed: true,
|
371
|
+
registrationAllowed: true
|
360
372
|
},
|
361
|
-
|
362
|
-
|
373
|
+
social: {
|
374
|
+
displayInfo: true
|
363
375
|
},
|
364
|
-
|
365
|
-
|
366
|
-
|
376
|
+
usernameHidden: false,
|
377
|
+
login: {},
|
378
|
+
registrationDisabled: false
|
367
379
|
}),
|
368
380
|
id<KcContext.LoginPassword>({
|
369
381
|
...kcContextCommonMock,
|
370
|
-
|
371
|
-
|
372
|
-
|
382
|
+
pageId: "login-password.ftl",
|
383
|
+
url: loginUrl,
|
384
|
+
realm: {
|
373
385
|
...kcContextCommonMock.realm,
|
374
|
-
|
386
|
+
resetPasswordAllowed: true
|
375
387
|
},
|
376
|
-
|
377
|
-
|
388
|
+
social: {
|
389
|
+
displayInfo: false
|
378
390
|
}
|
379
391
|
}),
|
380
392
|
id<KcContext.WebauthnAuthenticate>({
|
381
393
|
...kcContextCommonMock,
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
394
|
+
pageId: "webauthn-authenticate.ftl",
|
395
|
+
url: loginUrl,
|
396
|
+
authenticators: {
|
397
|
+
authenticators: []
|
386
398
|
},
|
387
|
-
|
399
|
+
realm: {
|
388
400
|
...kcContextCommonMock.realm,
|
389
|
-
|
390
|
-
|
401
|
+
password: true,
|
402
|
+
registrationAllowed: true
|
391
403
|
},
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
404
|
+
challenge: "",
|
405
|
+
userVerification: "not specified",
|
406
|
+
rpId: "",
|
407
|
+
createTimeout: "0",
|
408
|
+
isUserIdentified: "false",
|
409
|
+
shouldDisplayAuthenticators: false,
|
410
|
+
social: {
|
411
|
+
displayInfo: false
|
400
412
|
},
|
401
|
-
|
413
|
+
login: {}
|
402
414
|
}),
|
403
415
|
id<KcContext.LoginUpdatePassword>({
|
404
416
|
...kcContextCommonMock,
|
405
|
-
|
417
|
+
pageId: "login-update-password.ftl"
|
406
418
|
}),
|
407
419
|
id<KcContext.LoginUpdateProfile>({
|
408
420
|
...kcContextCommonMock,
|
409
|
-
|
410
|
-
|
421
|
+
pageId: "login-update-profile.ftl",
|
422
|
+
profile: {
|
411
423
|
attributes,
|
412
424
|
attributesByName
|
413
425
|
}
|
414
426
|
}),
|
415
427
|
id<KcContext.LoginIdpLinkConfirm>({
|
416
428
|
...kcContextCommonMock,
|
417
|
-
|
418
|
-
|
429
|
+
pageId: "login-idp-link-confirm.ftl",
|
430
|
+
idpAlias: "FranceConnect"
|
419
431
|
}),
|
420
432
|
id<KcContext.LoginIdpLinkEmail>({
|
421
433
|
...kcContextCommonMock,
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
434
|
+
pageId: "login-idp-link-email.ftl",
|
435
|
+
idpAlias: "FranceConnect",
|
436
|
+
brokerContext: {
|
437
|
+
username: "anUsername"
|
426
438
|
}
|
427
439
|
}),
|
428
440
|
id<KcContext.LoginConfigTotp>({
|
429
441
|
...kcContextCommonMock,
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
442
|
+
pageId: "login-config-totp.ftl",
|
443
|
+
totp: {
|
444
|
+
totpSecretEncoded: "KVVF G2BY N4YX S6LB IUYT K2LH IFYE 4SBV",
|
445
|
+
qrUrl: "#",
|
446
|
+
totpSecretQrCode:
|
435
447
|
"iVBORw0KGgoAAAANSUhEUgAAAPYAAAD2AQAAAADNaUdlAAACM0lEQVR4Xu3OIZJgOQwDUDFd2UxiurLAVnnbHw4YGDKtSiWOn4Gxf81//7r/+q8b4HfLGBZDK9d85NmNR+sB42sXvOYrN5P1DcgYYFTGfOlbzE8gzwy3euweGizw7cfdl34/GRhlkxjKNV+5AebPXPORX1JuB9x8ZfbyyD2y1krWAKsbMq1HnqQDaLfa77p4+MqvzEGSqvSAD/2IHW2yHaigR9tX3m8dDIYGcNf3f+gDpVBZbZU77zyJ6Rlcy+qoTMG887KAPD9hsh6a1Sv3gJUHGHUAxSMzj7zqDDe7Phmt2eG+8UsMxjRGm816MAO+8VMl1R1jGHOrZB/5Zo/WXAPgxixm9Mo96vDGrM1eOto8c4Ax4wF437mifOXlpiPzCnN7Y9l95NnEMxgMY9AAGA8fucH14Y1aVb6N/cqrmyh0BVht7k1e+bU8LK0Cg5vmVq9c5vHIjOfqxDIfeTraNVTwewa4wVe+SW5N+uP1qACeudUZbqGOfA6VZV750Noq2Xx3kpveV44ZelSV1V7KFHzkWyVrrlUwG0Pl9pWnoy3vsQoME6vKI69i5osVgwWzHT7zjmJtMcNUSVn1oYMd7ZodbgowZl45VG0uVuLPUr1yc79uaQBag/mqR34xhlWyHm1prplHboCWdZ4TeZjsK8+dI+jbz1C5hl65mcpgB5dhcj8+dGO+0Ko68+lD37JDD83dpDLzzK+TrQyaVwGj6pUboGV+7+AyN8An/pf84/7rv/4/1l4OCc/1BYMAAAAASUVORK5CYII=",
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
448
|
+
manualUrl: "#",
|
449
|
+
totpSecret: "G4nsI8lQagRMUchH8jEG",
|
450
|
+
otpCredentials: [],
|
451
|
+
supportedApplications: ["FreeOTP", "Google Authenticator"],
|
452
|
+
policy: {
|
453
|
+
algorithm: "HmacSHA1",
|
454
|
+
digits: 6,
|
455
|
+
lookAheadWindow: 1,
|
456
|
+
type: "totp",
|
457
|
+
period: 30,
|
458
|
+
getAlgorithmKey: () => "SHA1"
|
447
459
|
}
|
448
460
|
}
|
449
461
|
}),
|
450
462
|
id<KcContext.LogoutConfirm>({
|
451
463
|
...kcContextCommonMock,
|
452
|
-
|
453
|
-
|
464
|
+
pageId: "logout-confirm.ftl",
|
465
|
+
url: {
|
454
466
|
...kcContextCommonMock.url,
|
455
|
-
|
467
|
+
logoutConfirmAction: "Continuer?"
|
456
468
|
},
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
469
|
+
client: {
|
470
|
+
clientId: "myApp",
|
471
|
+
baseUrl: "#",
|
472
|
+
attributes: {}
|
461
473
|
},
|
462
|
-
|
474
|
+
logoutConfirm: { code: "123", skipLink: false }
|
463
475
|
}),
|
464
476
|
id<KcContext.IdpReviewUserProfile>({
|
465
477
|
...kcContextCommonMock,
|
466
|
-
|
467
|
-
|
478
|
+
pageId: "idp-review-user-profile.ftl",
|
479
|
+
profile: {
|
468
480
|
attributes,
|
469
481
|
attributesByName
|
470
482
|
}
|
471
483
|
}),
|
472
484
|
id<KcContext.UpdateEmail>({
|
473
485
|
...kcContextCommonMock,
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
attributes
|
486
|
+
pageId: "update-email.ftl",
|
487
|
+
profile: {
|
488
|
+
attributes: attributes.filter(attribute => attribute.name === "email"),
|
489
|
+
attributesByName: Object.fromEntries(
|
490
|
+
attributes
|
491
|
+
.filter(attribute => attribute.name === "email")
|
492
|
+
.map(attribute => [attribute.name, attribute])
|
479
493
|
)
|
480
494
|
}
|
481
495
|
}),
|
@@ -502,8 +516,8 @@ export const kcContextMocks = [
|
|
502
516
|
id<KcContext.SamlPostForm>({
|
503
517
|
...kcContextCommonMock,
|
504
518
|
pageId: "saml-post-form.ftl",
|
505
|
-
|
506
|
-
|
519
|
+
samlPost: {
|
520
|
+
url: ""
|
507
521
|
}
|
508
522
|
}),
|
509
523
|
id<KcContext.LoginPageExpired>({
|
@@ -514,107 +528,107 @@ export const kcContextMocks = [
|
|
514
528
|
id<KcContext.FrontchannelLogout>({
|
515
529
|
...kcContextCommonMock,
|
516
530
|
pageId: "frontchannel-logout.ftl",
|
517
|
-
|
518
|
-
|
531
|
+
logout: {
|
532
|
+
clients: [
|
519
533
|
{
|
520
|
-
|
521
|
-
|
534
|
+
name: "myApp",
|
535
|
+
frontChannelLogoutUrl: "#"
|
522
536
|
},
|
523
537
|
{
|
524
|
-
|
525
|
-
|
538
|
+
name: "myApp2",
|
539
|
+
frontChannelLogoutUrl: "#"
|
526
540
|
}
|
527
541
|
]
|
528
542
|
}
|
529
543
|
}),
|
530
544
|
id<KcContext.WebauthnRegister>({
|
531
|
-
|
532
|
-
...kcContextCommonMock,
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
545
|
+
pageId: "webauthn-register.ftl",
|
546
|
+
...kcContextCommonMock,
|
547
|
+
challenge: "random-challenge-string",
|
548
|
+
userid: "user123",
|
549
|
+
username: "johndoe",
|
550
|
+
signatureAlgorithms: ["ES256", "RS256"],
|
551
|
+
rpEntityName: "Example Corp",
|
552
|
+
rpId: "example.com",
|
553
|
+
attestationConveyancePreference: "direct",
|
554
|
+
authenticatorAttachment: "platform",
|
555
|
+
requireResidentKey: "required",
|
556
|
+
userVerificationRequirement: "preferred",
|
557
|
+
createTimeout: 60000,
|
558
|
+
excludeCredentialIds: "credId123,credId456",
|
559
|
+
isSetRetry: false,
|
560
|
+
isAppInitiatedAction: true
|
547
561
|
}),
|
548
562
|
id<KcContext.DeleteCredential>({
|
549
|
-
|
563
|
+
pageId: "delete-credential.ftl",
|
550
564
|
...kcContextCommonMock,
|
551
|
-
|
565
|
+
credentialLabel: "myCredential"
|
552
566
|
}),
|
553
567
|
id<KcContext.Code>({
|
554
|
-
|
568
|
+
pageId: "code.ftl",
|
555
569
|
...kcContextCommonMock,
|
556
|
-
|
557
|
-
|
558
|
-
|
570
|
+
code: {
|
571
|
+
success: true,
|
572
|
+
code: "123456"
|
559
573
|
}
|
560
574
|
}),
|
561
575
|
id<KcContext.DeleteAccountConfirm>({
|
562
|
-
|
576
|
+
pageId: "delete-account-confirm.ftl",
|
563
577
|
...kcContextCommonMock,
|
564
|
-
|
578
|
+
triggered_from_aia: true
|
565
579
|
}),
|
566
580
|
id<KcContext.LoginRecoveryAuthnCodeConfig>({
|
567
|
-
|
581
|
+
pageId: "login-recovery-authn-code-config.ftl",
|
568
582
|
...kcContextCommonMock,
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
583
|
+
recoveryAuthnCodesConfigBean: {
|
584
|
+
generatedRecoveryAuthnCodesList: ["code123", "code456", "code789"],
|
585
|
+
generatedRecoveryAuthnCodesAsString: "code123, code456, code789",
|
586
|
+
generatedAt: new Date().getTime()
|
573
587
|
}
|
574
588
|
}),
|
575
589
|
id<KcContext.LoginRecoveryAuthnCodeInput>({
|
576
|
-
|
590
|
+
pageId: "login-recovery-authn-code-input.ftl",
|
577
591
|
...kcContextCommonMock,
|
578
|
-
|
579
|
-
|
592
|
+
recoveryAuthnCodesInputBean: {
|
593
|
+
codeNumber: 1234
|
580
594
|
}
|
581
595
|
}),
|
582
596
|
id<KcContext.LoginResetOtp>({
|
583
|
-
|
597
|
+
pageId: "login-reset-otp.ftl",
|
584
598
|
...kcContextCommonMock,
|
585
|
-
|
586
|
-
|
599
|
+
configuredOtpCredentials: {
|
600
|
+
userOtpCredentials: [
|
587
601
|
{
|
588
|
-
|
589
|
-
|
602
|
+
id: "otpId1",
|
603
|
+
userLabel: "OTP Device 1"
|
590
604
|
},
|
591
605
|
{
|
592
|
-
|
593
|
-
|
606
|
+
id: "otpId2",
|
607
|
+
userLabel: "OTP Device 2"
|
594
608
|
},
|
595
609
|
{
|
596
|
-
|
597
|
-
|
610
|
+
id: "otpId3",
|
611
|
+
userLabel: "Backup OTP"
|
598
612
|
}
|
599
613
|
],
|
600
|
-
|
614
|
+
selectedCredentialId: "otpId2"
|
601
615
|
}
|
602
616
|
}),
|
603
617
|
id<KcContext.LoginX509Info>({
|
604
|
-
|
618
|
+
pageId: "login-x509-info.ftl",
|
605
619
|
...kcContextCommonMock,
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
620
|
+
x509: {
|
621
|
+
formData: {
|
622
|
+
subjectDN: "CN=John Doe, O=Example Corp, C=US",
|
623
|
+
isUserEnabled: true,
|
624
|
+
username: "johndoe"
|
611
625
|
}
|
612
626
|
}
|
613
627
|
}),
|
614
628
|
id<KcContext.WebauthnError>({
|
615
|
-
|
629
|
+
pageId: "webauthn-error.ftl",
|
616
630
|
...kcContextCommonMock,
|
617
|
-
|
631
|
+
isAppInitiatedAction: true
|
618
632
|
})
|
619
633
|
];
|
620
634
|
|