keycloakify 6.7.2 → 6.8.0
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/README.md +6 -0
- package/lib/components/Error.d.ts +6 -3
- package/lib/components/Error.js +4 -4
- package/lib/components/Error.js.map +1 -1
- package/lib/components/IdpReviewUserProfile.d.ts +6 -3
- package/lib/components/IdpReviewUserProfile.js +10 -10
- package/lib/components/IdpReviewUserProfile.js.map +1 -1
- package/lib/components/Info.d.ts +6 -3
- package/lib/components/Info.js +4 -4
- package/lib/components/Info.js.map +1 -1
- package/lib/components/KcApp.d.ts +7 -4
- package/lib/components/KcApp.js +25 -24
- package/lib/components/KcApp.js.map +1 -1
- package/lib/components/Login.d.ts +6 -3
- package/lib/components/Login.js +17 -17
- package/lib/components/Login.js.map +1 -1
- package/lib/components/LoginConfigTotp.d.ts +6 -3
- package/lib/components/LoginConfigTotp.js +25 -25
- package/lib/components/LoginConfigTotp.js.map +1 -1
- package/lib/components/LoginIdpLinkConfirm.d.ts +6 -3
- package/lib/components/LoginIdpLinkConfirm.js +7 -7
- package/lib/components/LoginIdpLinkConfirm.js.map +1 -1
- package/lib/components/LoginIdpLinkEmail.d.ts +6 -3
- package/lib/components/LoginIdpLinkEmail.js +4 -4
- package/lib/components/LoginIdpLinkEmail.js.map +1 -1
- package/lib/components/LoginOtp.d.ts +6 -3
- package/lib/components/LoginOtp.js +19 -19
- package/lib/components/LoginOtp.js.map +1 -1
- package/lib/components/LoginPageExpired.d.ts +6 -3
- package/lib/components/LoginPageExpired.js +4 -4
- package/lib/components/LoginPageExpired.js.map +1 -1
- package/lib/components/LoginPassword.d.ts +6 -3
- package/lib/components/LoginPassword.js +12 -12
- package/lib/components/LoginPassword.js.map +1 -1
- package/lib/components/LoginResetPassword.d.ts +6 -3
- package/lib/components/LoginResetPassword.js +14 -14
- package/lib/components/LoginResetPassword.js.map +1 -1
- package/lib/components/LoginUpdatePassword.d.ts +6 -3
- package/lib/components/LoginUpdatePassword.js +20 -20
- package/lib/components/LoginUpdatePassword.js.map +1 -1
- package/lib/components/LoginUpdateProfile.d.ts +6 -3
- package/lib/components/LoginUpdateProfile.js +31 -31
- package/lib/components/LoginUpdateProfile.js.map +1 -1
- package/lib/components/LoginUsername.d.ts +6 -3
- package/lib/components/LoginUsername.js +13 -13
- package/lib/components/LoginUsername.js.map +1 -1
- package/lib/components/LoginVerifyEmail.d.ts +6 -3
- package/lib/components/LoginVerifyEmail.js +4 -4
- package/lib/components/LoginVerifyEmail.js.map +1 -1
- package/lib/components/LogoutConfirm.d.ts +6 -3
- package/lib/components/LogoutConfirm.js +8 -8
- package/lib/components/LogoutConfirm.js.map +1 -1
- package/lib/components/Register.d.ts +6 -3
- package/lib/components/Register.js +41 -41
- package/lib/components/Register.js.map +1 -1
- package/lib/components/RegisterUserProfile.d.ts +6 -3
- package/lib/components/RegisterUserProfile.js +12 -12
- package/lib/components/RegisterUserProfile.js.map +1 -1
- package/lib/components/Terms.d.ts +6 -3
- package/lib/components/Terms.js +6 -6
- package/lib/components/Terms.js.map +1 -1
- package/lib/components/UpdateUserProfile.d.ts +6 -3
- package/lib/components/UpdateUserProfile.js +11 -11
- package/lib/components/UpdateUserProfile.js.map +1 -1
- package/lib/components/WebauthnAuthenticate.d.ts +6 -3
- package/lib/components/WebauthnAuthenticate.js +18 -18
- package/lib/components/WebauthnAuthenticate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/lib/components/Error.tsx +34 -31
- package/src/lib/components/IdpReviewUserProfile.tsx +50 -47
- package/src/lib/components/Info.tsx +49 -46
- package/src/lib/components/KcApp.tsx +74 -69
- package/src/lib/components/Login.tsx +178 -175
- package/src/lib/components/LoginConfigTotp.tsx +163 -160
- package/src/lib/components/LoginIdpLinkConfirm.tsx +56 -43
- package/src/lib/components/LoginIdpLinkEmail.tsx +34 -31
- package/src/lib/components/LoginOtp.tsx +86 -83
- package/src/lib/components/LoginPageExpired.tsx +38 -35
- package/src/lib/components/LoginPassword.tsx +79 -76
- package/src/lib/components/LoginResetPassword.tsx +67 -64
- package/src/lib/components/LoginUpdatePassword.tsx +105 -102
- package/src/lib/components/LoginUpdateProfile.tsx +108 -105
- package/src/lib/components/LoginUsername.tsx +145 -142
- package/src/lib/components/LoginVerifyEmail.tsx +34 -31
- package/src/lib/components/LogoutConfirm.tsx +57 -54
- package/src/lib/components/Register.tsx +137 -134
- package/src/lib/components/RegisterUserProfile.tsx +63 -60
- package/src/lib/components/Terms.tsx +56 -52
- package/src/lib/components/UpdateUserProfile.tsx +61 -58
- package/src/lib/components/WebauthnAuthenticate.tsx +179 -178
package/README.md
CHANGED
@@ -49,6 +49,12 @@
|
|
49
49
|
|
50
50
|
# Changelog highlights
|
51
51
|
|
52
|
+
## 6.8.0
|
53
|
+
|
54
|
+
- It is now possible to pass a custom `<Template />` component as a prop to `<KcApp />` and every
|
55
|
+
individual page (`<Login />`, `<RegisterUserProfile />`, ...) it enables to customize only the header and footer for
|
56
|
+
example without having to switch to a full-component level customization. [See issue](https://github.com/InseeFrLab/keycloakify/issues/191).
|
57
|
+
|
52
58
|
## 6.7.0
|
53
59
|
|
54
60
|
- Add support for `webauthn-authenticate.ftl` thanks to [@mstrodl](https://github.com/Mstrodl)'s hacktoberfest [PR](https://github.com/InseeFrLab/keycloakify/pull/185).
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import React from "react";
|
2
|
+
import type { TemplateProps } from "./Template";
|
2
3
|
import type { KcProps } from "./KcProps";
|
3
4
|
import type { KcContextBase } from "../getKcContext/KcContextBase";
|
4
5
|
import type { I18n } from "../i18n";
|
5
|
-
declare
|
6
|
+
export declare type ErrorProps = KcProps & {
|
6
7
|
kcContext: KcContextBase.Error;
|
7
8
|
i18n: I18n;
|
8
|
-
doFetchDefaultThemeResources?: boolean
|
9
|
-
|
9
|
+
doFetchDefaultThemeResources?: boolean;
|
10
|
+
Template?: (props: TemplateProps) => JSX.Element | null;
|
11
|
+
};
|
12
|
+
declare const Error: React.MemoExoticComponent<(props: ErrorProps) => JSX.Element>;
|
10
13
|
export default Error;
|
package/lib/components/Error.js
CHANGED
@@ -10,12 +10,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
return t;
|
11
11
|
};
|
12
12
|
import React, { memo } from "react";
|
13
|
-
import
|
14
|
-
const Error = memo((
|
15
|
-
|
13
|
+
import DefaultTemplate from "./Template";
|
14
|
+
const Error = memo((props) => {
|
15
|
+
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template = DefaultTemplate } = props, kcProps = __rest(props, ["kcContext", "i18n", "doFetchDefaultThemeResources", "Template"]);
|
16
16
|
const { message, client } = kcContext;
|
17
17
|
const { msg } = i18n;
|
18
|
-
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources },
|
18
|
+
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources }, kcProps), { displayMessage: false, headerNode: msg("errorTitle"), formNode: React.createElement("div", { id: "kc-error-message" },
|
19
19
|
React.createElement("p", { className: "instruction" }, message.summary),
|
20
20
|
client !== undefined && client.baseUrl !== undefined && (React.createElement("p", null,
|
21
21
|
React.createElement("a", { id: "backToApplication", href: client.baseUrl }, msg("backToApplication"))))) })));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../src/lib/components/Error.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,
|
1
|
+
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../src/lib/components/Error.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,eAAe,MAAM,YAAY,CAAC;AAazC,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,KAAiB,EAAE,EAAE;IACrC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,4BAA4B,GAAG,IAAI,EAAE,QAAQ,GAAG,eAAe,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAAxG,iEAAgG,CAAQ,CAAC;IAE/G,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAEtC,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAErB,OAAO,CACH,oBAAC,QAAQ,oCACC,SAAS,EAAE,IAAI,EAAE,4BAA4B,IAAK,OAAO,KAC/D,cAAc,EAAE,KAAK,EACrB,UAAU,EAAE,GAAG,CAAC,YAAY,CAAC,EAC7B,QAAQ,EACJ,6BAAK,EAAE,EAAC,kBAAkB;YACtB,2BAAG,SAAS,EAAC,aAAa,IAAE,OAAO,CAAC,OAAO,CAAK;YAC/C,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,IAAI,CACrD;gBACI,2BAAG,EAAE,EAAC,mBAAmB,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,IACzC,GAAG,CAAC,mBAAmB,CAAC,CACzB,CACJ,CACP,CACC,IAEZ,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import React from "react";
|
2
|
+
import type { TemplateProps } from "./Template";
|
2
3
|
import type { KcProps } from "./KcProps";
|
3
4
|
import type { KcContextBase } from "../getKcContext/KcContextBase";
|
4
5
|
import type { I18n } from "../i18n";
|
5
|
-
declare
|
6
|
+
export declare type IdpReviewUserProfileProps = KcProps & {
|
6
7
|
kcContext: KcContextBase.IdpReviewUserProfile;
|
7
8
|
i18n: I18n;
|
8
|
-
doFetchDefaultThemeResources?: boolean
|
9
|
-
|
9
|
+
doFetchDefaultThemeResources?: boolean;
|
10
|
+
Template?: (props: TemplateProps) => JSX.Element | null;
|
11
|
+
};
|
12
|
+
declare const IdpReviewUserProfile: React.MemoExoticComponent<(props: IdpReviewUserProfileProps) => JSX.Element>;
|
10
13
|
export default IdpReviewUserProfile;
|
@@ -10,22 +10,22 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
return t;
|
11
11
|
};
|
12
12
|
import React, { useState, memo } from "react";
|
13
|
-
import
|
13
|
+
import DefaultTemplate from "./Template";
|
14
14
|
import { useCssAndCx } from "../tools/useCssAndCx";
|
15
15
|
import { UserProfileFormFields } from "./shared/UserProfileCommons";
|
16
|
-
const IdpReviewUserProfile = memo((
|
17
|
-
|
16
|
+
const IdpReviewUserProfile = memo((props) => {
|
17
|
+
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template = DefaultTemplate } = props, kcProps = __rest(props, ["kcContext", "i18n", "doFetchDefaultThemeResources", "Template"]);
|
18
18
|
const { cx } = useCssAndCx();
|
19
19
|
const { msg, msgStr } = i18n;
|
20
20
|
const { url } = kcContext;
|
21
21
|
const [isFomSubmittable, setIsFomSubmittable] = useState(false);
|
22
|
-
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources },
|
23
|
-
React.createElement(UserProfileFormFields, Object.assign({ kcContext: kcContext, onIsFormSubmittableValueChange: setIsFomSubmittable, i18n: i18n },
|
24
|
-
React.createElement("div", { className: cx(
|
25
|
-
React.createElement("div", { id: "kc-form-options", className: cx(
|
26
|
-
React.createElement("div", { className: cx(
|
27
|
-
React.createElement("div", { id: "kc-form-buttons", className: cx(
|
28
|
-
React.createElement("input", { className: cx(
|
22
|
+
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources }, kcProps), { headerNode: msg("loginIdpReviewProfileTitle"), formNode: React.createElement("form", { id: "kc-idp-review-profile-form", className: cx(kcProps.kcFormClass), action: url.loginAction, method: "post" },
|
23
|
+
React.createElement(UserProfileFormFields, Object.assign({ kcContext: kcContext, onIsFormSubmittableValueChange: setIsFomSubmittable, i18n: i18n }, kcProps)),
|
24
|
+
React.createElement("div", { className: cx(kcProps.kcFormGroupClass) },
|
25
|
+
React.createElement("div", { id: "kc-form-options", className: cx(kcProps.kcFormOptionsClass) },
|
26
|
+
React.createElement("div", { className: cx(kcProps.kcFormOptionsWrapperClass) })),
|
27
|
+
React.createElement("div", { id: "kc-form-buttons", className: cx(kcProps.kcFormButtonsClass) },
|
28
|
+
React.createElement("input", { className: cx(kcProps.kcButtonClass, kcProps.kcButtonPrimaryClass, kcProps.kcButtonBlockClass, kcProps.kcButtonLargeClass), type: "submit", value: msgStr("doSubmit"), disabled: !isFomSubmittable })))) })));
|
29
29
|
});
|
30
30
|
export default IdpReviewUserProfile;
|
31
31
|
//# sourceMappingURL=IdpReviewUserProfile.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IdpReviewUserProfile.js","sourceRoot":"","sources":["../../src/lib/components/IdpReviewUserProfile.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,
|
1
|
+
{"version":3,"file":"IdpReviewUserProfile.js","sourceRoot":"","sources":["../../src/lib/components/IdpReviewUserProfile.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,eAAe,MAAM,YAAY,CAAC;AAIzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AASpE,MAAM,oBAAoB,GAAG,IAAI,CAAC,CAAC,KAAgC,EAAE,EAAE;IACnE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,4BAA4B,GAAG,IAAI,EAAE,QAAQ,GAAG,eAAe,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAAxG,iEAAgG,CAAQ,CAAC;IAE/G,MAAM,EAAE,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,IAEb,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
|
package/lib/components/Info.d.ts
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
import React from "react";
|
2
|
+
import type { TemplateProps } from "./Template";
|
2
3
|
import type { KcProps } from "./KcProps";
|
3
4
|
import type { KcContextBase } from "../getKcContext/KcContextBase";
|
4
5
|
import type { I18n } from "../i18n";
|
5
|
-
declare
|
6
|
+
export declare type InfoProps = KcProps & {
|
6
7
|
kcContext: KcContextBase.Info;
|
7
8
|
i18n: I18n;
|
8
|
-
doFetchDefaultThemeResources?: boolean
|
9
|
-
|
9
|
+
doFetchDefaultThemeResources?: boolean;
|
10
|
+
Template?: (props: TemplateProps) => JSX.Element | null;
|
11
|
+
};
|
12
|
+
declare const Info: React.MemoExoticComponent<(props: InfoProps) => JSX.Element>;
|
10
13
|
export default Info;
|
package/lib/components/Info.js
CHANGED
@@ -10,14 +10,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
return t;
|
11
11
|
};
|
12
12
|
import React, { memo } from "react";
|
13
|
-
import
|
13
|
+
import DefaultTemplate from "./Template";
|
14
14
|
import { assert } from "../tools/assert";
|
15
|
-
const Info = memo((
|
16
|
-
|
15
|
+
const Info = memo((props) => {
|
16
|
+
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template = DefaultTemplate } = props, kcProps = __rest(props, ["kcContext", "i18n", "doFetchDefaultThemeResources", "Template"]);
|
17
17
|
const { msgStr, msg } = i18n;
|
18
18
|
assert(kcContext.message !== undefined);
|
19
19
|
const { messageHeader, message, requiredActions, skipLink, pageRedirectUri, actionUri, client } = kcContext;
|
20
|
-
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources },
|
20
|
+
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources }, kcProps), { displayMessage: false, headerNode: messageHeader !== undefined ? React.createElement(React.Fragment, null, messageHeader) : React.createElement(React.Fragment, null, message.summary), formNode: React.createElement("div", { id: "kc-info-message" },
|
21
21
|
React.createElement("p", { className: "instruction" },
|
22
22
|
message.summary,
|
23
23
|
requiredActions !== undefined && (React.createElement("b", null, requiredActions.map(requiredAction => msgStr(`requiredAction.${requiredAction}`)).join(",")))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../../src/lib/components/Info.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,
|
1
|
+
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../../src/lib/components/Info.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,eAAe,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAWzC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,KAAgB,EAAE,EAAE;IACnC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,4BAA4B,GAAG,IAAI,EAAE,QAAQ,GAAG,eAAe,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAAxG,iEAAgG,CAAQ,CAAC;IAE/G,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAE7B,MAAM,CAAC,SAAS,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC;IAExC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAE5G,OAAO,CACH,oBAAC,QAAQ,oCACC,SAAS,EAAE,IAAI,EAAE,4BAA4B,IAAK,OAAO,KAC/D,cAAc,EAAE,KAAK,EACrB,UAAU,EAAE,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,0CAAG,aAAa,CAAI,CAAC,CAAC,CAAC,0CAAG,OAAO,CAAC,OAAO,CAAI,EACvF,QAAQ,EACJ,6BAAK,EAAE,EAAC,iBAAiB;YACrB,2BAAG,SAAS,EAAC,aAAa;gBACrB,OAAO,CAAC,OAAO;gBAEf,eAAe,KAAK,SAAS,IAAI,CAC9B,+BAAI,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,kBAAkB,cAAc,EAAW,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAK,CAChH,CACD;YACH,CAAC,QAAQ,IAAI,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,CAC1C;gBACI,2BAAG,IAAI,EAAE,eAAe,IAAG,GAAG,CAAC,mBAAmB,CAAC,CAAK,CACxD,CACP,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CAC1B;gBACI,2BAAG,IAAI,EAAE,SAAS,IAAG,GAAG,CAAC,mBAAmB,CAAC,CAAK,CAClD,CACP,CAAC,CAAC,CAAC,CACA,MAAM,CAAC,OAAO,KAAK,SAAS,IAAI,CAC5B;gBACI,2BAAG,IAAI,EAAE,MAAM,CAAC,OAAO,IAAG,GAAG,CAAC,mBAAmB,CAAC,CAAK,CACvD,CACP,CACJ,CACC,IAEZ,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
@@ -2,9 +2,12 @@ import React from "react";
|
|
2
2
|
import type { KcContextBase } from "../getKcContext/KcContextBase";
|
3
3
|
import type { KcProps } from "./KcProps";
|
4
4
|
import type { I18n } from "../i18n";
|
5
|
-
|
5
|
+
import type { TemplateProps } from "./Template";
|
6
|
+
export declare type KcAppProps = KcProps & {
|
6
7
|
kcContext: KcContextBase;
|
7
|
-
i18n?: I18n
|
8
|
-
doFetchDefaultThemeResources?: boolean
|
9
|
-
|
8
|
+
i18n?: I18n;
|
9
|
+
doFetchDefaultThemeResources?: boolean;
|
10
|
+
Template: (props: TemplateProps) => JSX.Element | null;
|
11
|
+
};
|
12
|
+
declare const KcApp: React.MemoExoticComponent<(props_: KcAppProps) => JSX.Element | null>;
|
10
13
|
export default KcApp;
|
package/lib/components/KcApp.js
CHANGED
@@ -11,6 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
11
11
|
};
|
12
12
|
import React, { lazy, memo, Suspense } from "react";
|
13
13
|
import { __unsafe_useI18n as useI18n } from "../i18n";
|
14
|
+
import DefaultTemplate from "./Template";
|
14
15
|
const Login = lazy(() => import("./Login"));
|
15
16
|
const Register = lazy(() => import("./Register"));
|
16
17
|
const RegisterUserProfile = lazy(() => import("./RegisterUserProfile"));
|
@@ -32,8 +33,8 @@ const LoginConfigTotp = lazy(() => import("./LoginConfigTotp"));
|
|
32
33
|
const LogoutConfirm = lazy(() => import("./LogoutConfirm"));
|
33
34
|
const UpdateUserProfile = lazy(() => import("./UpdateUserProfile"));
|
34
35
|
const IdpReviewUserProfile = lazy(() => import("./IdpReviewUserProfile"));
|
35
|
-
const KcApp = memo((
|
36
|
-
|
36
|
+
const KcApp = memo((props_) => {
|
37
|
+
const { kcContext, i18n: userProvidedI18n, Template = DefaultTemplate } = props_, kcProps = __rest(props_, ["kcContext", "i18n", "Template"]);
|
37
38
|
const i18n = (function useClosure() {
|
38
39
|
const i18n = useI18n({
|
39
40
|
kcContext,
|
@@ -45,51 +46,51 @@ const KcApp = memo((_a) => {
|
|
45
46
|
if (i18n === null) {
|
46
47
|
return null;
|
47
48
|
}
|
48
|
-
const
|
49
|
+
const commonProps = Object.assign({ i18n, Template }, kcProps);
|
49
50
|
return (React.createElement(Suspense, null, (() => {
|
50
51
|
switch (kcContext.pageId) {
|
51
52
|
case "login.ftl":
|
52
|
-
return React.createElement(Login, Object.assign({}, Object.assign({ kcContext },
|
53
|
+
return React.createElement(Login, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
53
54
|
case "register.ftl":
|
54
|
-
return React.createElement(Register, Object.assign({}, Object.assign({ kcContext },
|
55
|
+
return React.createElement(Register, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
55
56
|
case "register-user-profile.ftl":
|
56
|
-
return React.createElement(RegisterUserProfile, Object.assign({}, Object.assign({ kcContext },
|
57
|
+
return React.createElement(RegisterUserProfile, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
57
58
|
case "info.ftl":
|
58
|
-
return React.createElement(Info, Object.assign({}, Object.assign({ kcContext },
|
59
|
+
return React.createElement(Info, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
59
60
|
case "error.ftl":
|
60
|
-
return React.createElement(Error, Object.assign({}, Object.assign({ kcContext },
|
61
|
+
return React.createElement(Error, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
61
62
|
case "login-reset-password.ftl":
|
62
|
-
return React.createElement(LoginResetPassword, Object.assign({}, Object.assign({ kcContext },
|
63
|
+
return React.createElement(LoginResetPassword, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
63
64
|
case "login-verify-email.ftl":
|
64
|
-
return React.createElement(LoginVerifyEmail, Object.assign({}, Object.assign({ kcContext },
|
65
|
+
return React.createElement(LoginVerifyEmail, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
65
66
|
case "terms.ftl":
|
66
|
-
return React.createElement(Terms, Object.assign({}, Object.assign({ kcContext },
|
67
|
+
return React.createElement(Terms, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
67
68
|
case "login-otp.ftl":
|
68
|
-
return React.createElement(LoginOtp, Object.assign({}, Object.assign({ kcContext },
|
69
|
+
return React.createElement(LoginOtp, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
69
70
|
case "login-username.ftl":
|
70
|
-
return React.createElement(LoginUsername, Object.assign({}, Object.assign({ kcContext },
|
71
|
+
return React.createElement(LoginUsername, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
71
72
|
case "login-password.ftl":
|
72
|
-
return React.createElement(LoginPassword, Object.assign({}, Object.assign({ kcContext },
|
73
|
+
return React.createElement(LoginPassword, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
73
74
|
case "webauthn-authenticate.ftl":
|
74
|
-
return React.createElement(WebauthnAuthenticate, Object.assign({}, Object.assign({ kcContext },
|
75
|
+
return React.createElement(WebauthnAuthenticate, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
75
76
|
case "login-update-password.ftl":
|
76
|
-
return React.createElement(LoginUpdatePassword, Object.assign({}, Object.assign({ kcContext },
|
77
|
+
return React.createElement(LoginUpdatePassword, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
77
78
|
case "login-update-profile.ftl":
|
78
|
-
return React.createElement(LoginUpdateProfile, Object.assign({}, Object.assign({ kcContext },
|
79
|
+
return React.createElement(LoginUpdateProfile, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
79
80
|
case "login-idp-link-confirm.ftl":
|
80
|
-
return React.createElement(LoginIdpLinkConfirm, Object.assign({}, Object.assign({ kcContext },
|
81
|
+
return React.createElement(LoginIdpLinkConfirm, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
81
82
|
case "login-idp-link-email.ftl":
|
82
|
-
return React.createElement(LoginIdpLinkEmail, Object.assign({}, Object.assign({ kcContext },
|
83
|
+
return React.createElement(LoginIdpLinkEmail, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
83
84
|
case "login-page-expired.ftl":
|
84
|
-
return React.createElement(LoginPageExpired, Object.assign({}, Object.assign({ kcContext },
|
85
|
+
return React.createElement(LoginPageExpired, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
85
86
|
case "login-config-totp.ftl":
|
86
|
-
return React.createElement(LoginConfigTotp, Object.assign({}, Object.assign({ kcContext },
|
87
|
+
return React.createElement(LoginConfigTotp, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
87
88
|
case "logout-confirm.ftl":
|
88
|
-
return React.createElement(LogoutConfirm, Object.assign({}, Object.assign({ kcContext },
|
89
|
+
return React.createElement(LogoutConfirm, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
89
90
|
case "update-user-profile.ftl":
|
90
|
-
return React.createElement(UpdateUserProfile, Object.assign({}, Object.assign({ kcContext },
|
91
|
+
return React.createElement(UpdateUserProfile, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
91
92
|
case "idp-review-user-profile.ftl":
|
92
|
-
return React.createElement(IdpReviewUserProfile, Object.assign({}, Object.assign({ kcContext },
|
93
|
+
return React.createElement(IdpReviewUserProfile, Object.assign({}, Object.assign({ kcContext }, commonProps)));
|
93
94
|
}
|
94
95
|
})()));
|
95
96
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"KcApp.js","sourceRoot":"","sources":["../../src/lib/components/KcApp.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"KcApp.js","sourceRoot":"","sources":["../../src/lib/components/KcApp.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,eAAe,MAAM,YAAY,CAAC;AAGzC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;AAClD,MAAM,mBAAmB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC;AACxE,MAAM,IAAI,GAAG,IAAI,CAAC,GA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IAAK,WAAW,GAAM,CAAC;YACpE,KAAK,wBAAwB;gBACzB,OAAO,oBAAC,gBAAgB,oCAAO,SAAS,IAAK,WAAW,GAAM,CAAC;YACnE,KAAK,uBAAuB;gBACxB,OAAO,oBAAC,eAAe,oCAAO,SAAS,IAAK,WAAW,GAAM,CAAC;YAClE,KAAK,oBAAoB;gBACrB,OAAO,oBAAC,aAAa,oCAAO,SAAS,IAAK,WAAW,GAAM,CAAC;YAChE,KAAK,yBAAyB;gBAC1B,OAAO,oBAAC,iBAAiB,oCAAO,SAAS,IAAK,WAAW,GAAM,CAAC;YACpE,KAAK,6BAA6B;gBAC9B,OAAO,oBAAC,oBAAoB,oCAAO,SAAS,IAAK,WAAW,GAAM,CAAC;SAC1E;IACL,CAAC,CAAC,EAAE,CACG,CACd,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import React from "react";
|
2
|
+
import type { TemplateProps } from "./Template";
|
2
3
|
import type { KcProps } from "./KcProps";
|
3
4
|
import type { KcContextBase } from "../getKcContext/KcContextBase";
|
4
5
|
import type { I18n } from "../i18n";
|
5
|
-
declare
|
6
|
+
export declare type LoginProps = KcProps & {
|
6
7
|
kcContext: KcContextBase.Login;
|
7
8
|
i18n: I18n;
|
8
|
-
doFetchDefaultThemeResources?: boolean
|
9
|
-
|
9
|
+
doFetchDefaultThemeResources?: boolean;
|
10
|
+
Template?: (props: TemplateProps) => JSX.Element | null;
|
11
|
+
};
|
12
|
+
declare const Login: React.MemoExoticComponent<(props: LoginProps) => JSX.Element>;
|
10
13
|
export default Login;
|
package/lib/components/Login.js
CHANGED
@@ -10,11 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
return t;
|
11
11
|
};
|
12
12
|
import React, { useState, memo } from "react";
|
13
|
-
import
|
13
|
+
import DefaultTemplate from "./Template";
|
14
14
|
import { useCssAndCx } from "../tools/useCssAndCx";
|
15
15
|
import { useConstCallback } from "powerhooks/useConstCallback";
|
16
|
-
const Login = memo((
|
17
|
-
|
16
|
+
const Login = memo((props) => {
|
17
|
+
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template = DefaultTemplate } = props, kcProps = __rest(props, ["kcContext", "i18n", "doFetchDefaultThemeResources", "Template"]);
|
18
18
|
const { social, realm, url, usernameEditDisabled, login, auth, registrationDisabled } = kcContext;
|
19
19
|
const { msg, msgStr } = i18n;
|
20
20
|
const { cx } = useCssAndCx();
|
@@ -29,9 +29,9 @@ const Login = memo((_a) => {
|
|
29
29
|
(_a = formElement.querySelector("input[name='email']")) === null || _a === void 0 ? void 0 : _a.setAttribute("name", "username");
|
30
30
|
formElement.submit();
|
31
31
|
});
|
32
|
-
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources },
|
33
|
-
React.createElement("div", { id: "kc-form-wrapper", className: cx(realm.password && social.providers && [
|
34
|
-
React.createElement("div", { className: cx(
|
32
|
+
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources }, kcProps), { displayInfo: social.displayInfo, displayWide: realm.password && social.providers !== undefined, headerNode: msg("doLogIn"), formNode: React.createElement("div", { id: "kc-form", className: cx(realm.password && social.providers !== undefined && kcProps.kcContentWrapperClass) },
|
33
|
+
React.createElement("div", { id: "kc-form-wrapper", className: cx(realm.password && social.providers && [kcProps.kcFormSocialAccountContentClass, kcProps.kcFormSocialAccountClass]) }, realm.password && (React.createElement("form", { id: "kc-form-login", onSubmit: onSubmit, action: url.loginAction, method: "post" },
|
34
|
+
React.createElement("div", { className: cx(kcProps.kcFormGroupClass) }, (() => {
|
35
35
|
var _a;
|
36
36
|
const label = !realm.loginWithEmailAllowed
|
37
37
|
? "username"
|
@@ -40,8 +40,8 @@ const Login = memo((_a) => {
|
|
40
40
|
: "usernameOrEmail";
|
41
41
|
const autoCompleteHelper = label === "usernameOrEmail" ? "username" : label;
|
42
42
|
return (React.createElement(React.Fragment, null,
|
43
|
-
React.createElement("label", { htmlFor: autoCompleteHelper, className: cx(
|
44
|
-
React.createElement("input", Object.assign({ tabIndex: 1, id: autoCompleteHelper, className: cx(
|
43
|
+
React.createElement("label", { htmlFor: autoCompleteHelper, className: cx(kcProps.kcLabelClass) }, msg(label)),
|
44
|
+
React.createElement("input", Object.assign({ tabIndex: 1, id: autoCompleteHelper, className: cx(kcProps.kcInputClass),
|
45
45
|
//NOTE: This is used by Google Chrome auto fill so we use it to tell
|
46
46
|
//the browser how to pre fill the form but before submit we put it back
|
47
47
|
//to username because it is what keycloak expects.
|
@@ -52,10 +52,10 @@ const Login = memo((_a) => {
|
|
52
52
|
"autoComplete": "off"
|
53
53
|
})))));
|
54
54
|
})()),
|
55
|
-
React.createElement("div", { className: cx(
|
56
|
-
React.createElement("label", { htmlFor: "password", className: cx(
|
57
|
-
React.createElement("input", { tabIndex: 2, id: "password", className: cx(
|
58
|
-
React.createElement("div", { className: cx(
|
55
|
+
React.createElement("div", { className: cx(kcProps.kcFormGroupClass) },
|
56
|
+
React.createElement("label", { htmlFor: "password", className: cx(kcProps.kcLabelClass) }, msg("password")),
|
57
|
+
React.createElement("input", { tabIndex: 2, id: "password", className: cx(kcProps.kcInputClass), name: "password", type: "password", autoComplete: "off" })),
|
58
|
+
React.createElement("div", { className: cx(kcProps.kcFormGroupClass, kcProps.kcFormSettingClass) },
|
59
59
|
React.createElement("div", { id: "kc-form-options" }, realm.rememberMe && !usernameEditDisabled && (React.createElement("div", { className: "checkbox" },
|
60
60
|
React.createElement("label", null,
|
61
61
|
React.createElement("input", Object.assign({ tabIndex: 3, id: "rememberMe", name: "rememberMe", type: "checkbox" }, (login.rememberMe
|
@@ -64,17 +64,17 @@ const Login = memo((_a) => {
|
|
64
64
|
}
|
65
65
|
: {}))),
|
66
66
|
msg("rememberMe"))))),
|
67
|
-
React.createElement("div", { className: cx(
|
67
|
+
React.createElement("div", { className: cx(kcProps.kcFormOptionsWrapperClass) }, realm.resetPasswordAllowed && (React.createElement("span", null,
|
68
68
|
React.createElement("a", { tabIndex: 5, href: url.loginResetCredentialsUrl }, msg("doForgotPassword")))))),
|
69
|
-
React.createElement("div", { id: "kc-form-buttons", className: cx(
|
69
|
+
React.createElement("div", { id: "kc-form-buttons", className: cx(kcProps.kcFormGroupClass) },
|
70
70
|
React.createElement("input", Object.assign({ type: "hidden", id: "id-hidden-input", name: "credentialId" }, ((auth === null || auth === void 0 ? void 0 : auth.selectedCredential) !== undefined
|
71
71
|
? {
|
72
72
|
"value": auth.selectedCredential
|
73
73
|
}
|
74
74
|
: {}))),
|
75
|
-
React.createElement("input", { tabIndex: 4, className: cx(
|
76
|
-
realm.password && social.providers !== undefined && (React.createElement("div", { id: "kc-social-providers", className: cx(
|
77
|
-
React.createElement("ul", { className: cx(
|
75
|
+
React.createElement("input", { tabIndex: 4, className: cx(kcProps.kcButtonClass, kcProps.kcButtonPrimaryClass, kcProps.kcButtonBlockClass, kcProps.kcButtonLargeClass), name: "login", id: "kc-login", type: "submit", value: msgStr("doLogIn"), disabled: isLoginButtonDisabled }))))),
|
76
|
+
realm.password && social.providers !== undefined && (React.createElement("div", { id: "kc-social-providers", className: cx(kcProps.kcFormSocialAccountContentClass, kcProps.kcFormSocialAccountClass) },
|
77
|
+
React.createElement("ul", { className: cx(kcProps.kcFormSocialAccountListClass, social.providers.length > 4 && kcProps.kcFormSocialAccountDoubleListClass) }, social.providers.map(p => (React.createElement("li", { key: p.providerId, className: cx(kcProps.kcFormSocialAccountListLinkClass) },
|
78
78
|
React.createElement("a", { href: p.loginUrl, id: `zocial-${p.alias}`, className: cx("zocial", p.providerId) },
|
79
79
|
React.createElement("span", null, p.displayName))))))))), infoNode: realm.password &&
|
80
80
|
realm.registrationAllowed &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Login.js","sourceRoot":"","sources":["../../src/lib/components/Login.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ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,CAAC;gBAClH,4BACI,SAAS,EAAE,EAAE,CACT,OAAO,CAAC,4BAA4B,EACpC,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,CAAC,kCAAkC,CAC5E,IAEA,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CACvB,4BAAI,GAAG,EAAE,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,gCAAgC,CAAC;oBAC1E,2BAAG,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC;wBAC/E,kCAAO,CAAC,CAAC,WAAW,CAAQ,CAC5B,CACH,CACR,CAAC,CACD,CACH,CACT,CACC,EAEV,QAAQ,EACJ,KAAK,CAAC,QAAQ;YACd,KAAK,CAAC,mBAAmB;YACzB,CAAC,oBAAoB,IAAI,CACrB,6BAAK,EAAE,EAAC,iBAAiB;YACrB;gBACK,GAAG,CAAC,WAAW,CAAC;gBACjB,2BAAG,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,eAAe,IACpC,GAAG,CAAC,YAAY,CAAC,CAClB,CACD,CACL,CACT,IAEP,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import React from "react";
|
2
|
+
import type { TemplateProps } from "./Template";
|
2
3
|
import type { KcProps } from "./KcProps";
|
3
4
|
import type { KcContextBase } from "../getKcContext/KcContextBase";
|
4
5
|
import type { I18n } from "../i18n";
|
5
|
-
declare
|
6
|
+
export declare type LoginConfigTotpProps = KcProps & {
|
6
7
|
kcContext: KcContextBase.LoginConfigTotp;
|
7
8
|
i18n: I18n;
|
8
|
-
doFetchDefaultThemeResources?: boolean
|
9
|
-
|
9
|
+
doFetchDefaultThemeResources?: boolean;
|
10
|
+
Template?: (props: TemplateProps) => JSX.Element | null;
|
11
|
+
};
|
12
|
+
declare const LoginConfigTotp: React.MemoExoticComponent<(props: LoginConfigTotpProps) => JSX.Element>;
|
10
13
|
export default LoginConfigTotp;
|
@@ -10,20 +10,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
return t;
|
11
11
|
};
|
12
12
|
import React, { memo } from "react";
|
13
|
-
import
|
13
|
+
import DefaultTemplate from "./Template";
|
14
14
|
import { useCssAndCx } from "../tools/useCssAndCx";
|
15
|
-
const LoginConfigTotp = memo((
|
16
|
-
var
|
17
|
-
|
15
|
+
const LoginConfigTotp = memo((props) => {
|
16
|
+
var _a;
|
17
|
+
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template = DefaultTemplate } = props, kcProps = __rest(props, ["kcContext", "i18n", "doFetchDefaultThemeResources", "Template"]);
|
18
18
|
const { url, isAppInitiatedAction, totp, mode, messagesPerField } = kcContext;
|
19
19
|
const { cx } = useCssAndCx();
|
20
20
|
const { msg, msgStr } = i18n;
|
21
21
|
const algToKeyUriAlg = {
|
22
|
-
HmacSHA1: "SHA1",
|
23
|
-
HmacSHA256: "SHA256",
|
24
|
-
HmacSHA512: "SHA512"
|
22
|
+
"HmacSHA1": "SHA1",
|
23
|
+
"HmacSHA256": "SHA256",
|
24
|
+
"HmacSHA512": "SHA512"
|
25
25
|
};
|
26
|
-
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources },
|
26
|
+
return (React.createElement(Template, Object.assign({}, Object.assign({ kcContext, i18n, doFetchDefaultThemeResources }, kcProps), { headerNode: msg("loginTotpTitle"), formNode: React.createElement(React.Fragment, null,
|
27
27
|
React.createElement("ol", { id: "kc-totp-settings" },
|
28
28
|
React.createElement("li", null,
|
29
29
|
React.createElement("p", null, msg("loginTotpStep1")),
|
@@ -45,7 +45,7 @@ const LoginConfigTotp = memo((_a) => {
|
|
45
45
|
msg(`loginTotp.${totp.policy.type}`)),
|
46
46
|
React.createElement("li", { id: "kc-totp-algorithm" },
|
47
47
|
msg("loginTotpAlgorithm"),
|
48
|
-
": ", (
|
48
|
+
": ", (_a = algToKeyUriAlg === null || algToKeyUriAlg === void 0 ? void 0 : algToKeyUriAlg[totp.policy.algorithm]) !== null && _a !== void 0 ? _a : totp.policy.algorithm),
|
49
49
|
React.createElement("li", { id: "kc-totp-digits" },
|
50
50
|
msg("loginTotpDigits"),
|
51
51
|
": ",
|
@@ -65,30 +65,30 @@ const LoginConfigTotp = memo((_a) => {
|
|
65
65
|
React.createElement("li", null,
|
66
66
|
React.createElement("p", null, msg("loginTotpStep3")),
|
67
67
|
React.createElement("p", null, msg("loginTotpStep3DeviceName")))),
|
68
|
-
React.createElement("form", { action: url.loginAction, className: cx(
|
69
|
-
React.createElement("div", { className: cx(
|
70
|
-
React.createElement("div", { className: cx(
|
71
|
-
React.createElement("label", { htmlFor: "totp", className: cx(
|
68
|
+
React.createElement("form", { action: url.loginAction, className: cx(kcProps.kcFormClass), id: "kc-totp-settings-form", method: "post" },
|
69
|
+
React.createElement("div", { className: cx(kcProps.kcFormGroupClass) },
|
70
|
+
React.createElement("div", { className: cx(kcProps.kcInputWrapperClass) },
|
71
|
+
React.createElement("label", { htmlFor: "totp", className: cx(kcProps.kcLabelClass) }, msg("authenticatorCode")),
|
72
72
|
" ",
|
73
73
|
React.createElement("span", { className: "required" }, "*")),
|
74
|
-
React.createElement("div", { className: cx(
|
75
|
-
React.createElement("input", { type: "text", id: "totp", name: "totp", autoComplete: "off", className: cx(
|
76
|
-
messagesPerField.existsError("totp") && (React.createElement("span", { id: "input-error-otp-code", className: cx(
|
74
|
+
React.createElement("div", { className: cx(kcProps.kcInputWrapperClass) },
|
75
|
+
React.createElement("input", { type: "text", id: "totp", name: "totp", autoComplete: "off", className: cx(kcProps.kcInputClass), "aria-invalid": messagesPerField.existsError("totp") }),
|
76
|
+
messagesPerField.existsError("totp") && (React.createElement("span", { id: "input-error-otp-code", className: cx(kcProps.kcInputErrorMessageClass), "aria-live": "polite" }, messagesPerField.get("totp")))),
|
77
77
|
React.createElement("input", { type: "hidden", id: "totpSecret", name: "totpSecret", value: totp.totpSecret }),
|
78
78
|
mode && React.createElement("input", { type: "hidden", id: "mode", value: mode })),
|
79
|
-
React.createElement("div", { className: cx(
|
80
|
-
React.createElement("div", { className: cx(
|
81
|
-
React.createElement("label", { htmlFor: "userLabel", className: cx(
|
79
|
+
React.createElement("div", { className: cx(kcProps.kcFormGroupClass) },
|
80
|
+
React.createElement("div", { className: cx(kcProps.kcInputWrapperClass) },
|
81
|
+
React.createElement("label", { htmlFor: "userLabel", className: cx(kcProps.kcLabelClass) }, msg("loginTotpDeviceName")),
|
82
82
|
" ",
|
83
83
|
totp.otpCredentials.length >= 1 && React.createElement("span", { className: "required" }, "*")),
|
84
|
-
React.createElement("div", { className: cx(
|
85
|
-
React.createElement("input", { type: "text", id: "userLabel", name: "userLabel", autoComplete: "off", className: cx(
|
86
|
-
messagesPerField.existsError("userLabel") && (React.createElement("span", { id: "input-error-otp-label", className: cx(
|
84
|
+
React.createElement("div", { className: cx(kcProps.kcInputWrapperClass) },
|
85
|
+
React.createElement("input", { type: "text", id: "userLabel", name: "userLabel", autoComplete: "off", className: cx(kcProps.kcInputClass), "aria-invalid": messagesPerField.existsError("userLabel") }),
|
86
|
+
messagesPerField.existsError("userLabel") && (React.createElement("span", { id: "input-error-otp-label", className: cx(kcProps.kcInputErrorMessageClass), "aria-live": "polite" }, messagesPerField.get("userLabel"))))),
|
87
87
|
isAppInitiatedAction ? (React.createElement(React.Fragment, null,
|
88
|
-
React.createElement("input", { type: "submit", className: cx(
|
89
|
-
React.createElement("button", { type: "submit", className: cx(
|
88
|
+
React.createElement("input", { type: "submit", className: cx(kcProps.kcButtonClass, kcProps.kcButtonPrimaryClass, kcProps.kcButtonLargeClass), id: "saveTOTPBtn", value: msgStr("doSubmit") }),
|
89
|
+
React.createElement("button", { type: "submit", className: cx(kcProps.kcButtonClass, kcProps.kcButtonDefaultClass, kcProps.kcButtonLargeClass, kcProps.kcButtonLargeClass), id: "cancelTOTPBtn", name: "cancel-aia", value: "true" },
|
90
90
|
"$",
|
91
|
-
msg("doCancel")))) : (React.createElement("input", { type: "submit", className: cx(
|
91
|
+
msg("doCancel")))) : (React.createElement("input", { type: "submit", className: cx(kcProps.kcButtonClass, kcProps.kcButtonPrimaryClass, kcProps.kcButtonLargeClass), id: "saveTOTPBtn", value: msgStr("doSubmit") })))) })));
|
92
92
|
});
|
93
93
|
export default LoginConfigTotp;
|
94
94
|
//# sourceMappingURL=LoginConfigTotp.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LoginConfigTotp.js","sourceRoot":"","sources":["../../src/lib/components/LoginConfigTotp.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,
|
1
|
+
{"version":3,"file":"LoginConfigTotp.js","sourceRoot":"","sources":["../../src/lib/components/LoginConfigTotp.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,eAAe,MAAM,YAAY,CAAC;AAIzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAUnD,MAAM,eAAe,GAAG,IAAI,CAAC,CAAC,KAA2B,EAAE,EAAE;;IACzD,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,4BAA4B,GAAG,IAAI,EAAE,QAAQ,GAAG,eAAe,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAAxG,iEAAgG,CAAQ,CAAC;IAE/G,MAAM,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,SAAS,CAAC;IAE9E,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,EAAE,CAA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