keycloakify 11.3.9-rc.0 → 11.3.9
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/login/lib/getUserProfileApi/getUserProfileApi.d.ts +0 -1
- package/login/lib/getUserProfileApi/getUserProfileApi.js +1 -1
- package/login/lib/getUserProfileApi/getUserProfileApi.js.map +1 -1
- package/package.json +1 -1
- package/src/login/lib/getUserProfileApi/getUserProfileApi.ts +1 -3
- package/stories/account/pages/Account.stories.tsx +102 -0
- package/stories/account/pages/Applications.stories.tsx +148 -0
- package/stories/account/pages/FederatedIdentity.stories.tsx +58 -0
- package/stories/account/pages/Log.stories.tsx +104 -0
- package/stories/account/pages/Password.stories.tsx +76 -0
- package/stories/account/pages/Sessions.stories.tsx +94 -0
- package/stories/account/pages/Totp.stories.tsx +61 -0
- package/stories/login/pages/LoginIdpLinkConfirm.stories.tsx +38 -1
- package/stories/login/pages/LoginIdpLinkEmail.stories.tsx +54 -11
- package/stories/login/pages/LoginOauth2DeviceVerifyUserCode.stories.tsx +44 -0
- package/stories/login/pages/LoginOauthGrant.stories.tsx +69 -1
- package/stories/login/pages/LoginOtp.stories.tsx +110 -0
- package/stories/login/pages/LoginPageExpired.stories.tsx +23 -0
- package/stories/login/pages/LoginPassword.stories.tsx +51 -0
- package/stories/login/pages/LoginRecoveryAuthnCodeConfig.stories.tsx +22 -0
- package/stories/login/pages/LoginResetOtp.stories.tsx +79 -0
- package/stories/login/pages/LoginResetPassword.stories.tsx +30 -0
- package/stories/login/pages/LoginUpdatePassword.stories.tsx +46 -0
- package/stories/login/pages/LoginUpdateProfile.stories.tsx +23 -0
- package/stories/login/pages/LoginVerifyEmail.stories.tsx +75 -0
- package/stories/login/pages/LoginX509Info.stories.tsx +25 -0
- package/stories/login/pages/LogoutConfirm.stories.tsx +29 -0
- package/stories/login/pages/SelectAuthenticator.stories.tsx +21 -0
- package/stories/login/pages/UpdateEmail.stories.tsx +22 -0
- package/stories/login/pages/WebauthnAuthenticate.stories.tsx +141 -0
- package/stories/login/pages/WebauthnError.stories.tsx +69 -0
- package/stories/login/pages/WebauthnRegister.stories.tsx +44 -0
@@ -16,3 +16,47 @@ type Story = StoryObj<typeof meta>;
|
|
16
16
|
export const Default: Story = {
|
17
17
|
render: () => <KcPageStory />
|
18
18
|
};
|
19
|
+
|
20
|
+
/**
|
21
|
+
* WithRetryAvailable:
|
22
|
+
* - Purpose: Tests when the user is allowed to retry WebAuthn registration after a failure.
|
23
|
+
* - Scenario: The component renders the form with a retry option.
|
24
|
+
* - Key Aspect: Ensures the retry functionality is available and the form allows the user to retry.
|
25
|
+
*/
|
26
|
+
export const WithRetryAvailable: Story = {
|
27
|
+
render: () => (
|
28
|
+
<KcPageStory
|
29
|
+
kcContext={{
|
30
|
+
url: {
|
31
|
+
loginAction: "/mock-login-action"
|
32
|
+
},
|
33
|
+
isSetRetry: true,
|
34
|
+
isAppInitiatedAction: false
|
35
|
+
}}
|
36
|
+
/>
|
37
|
+
)
|
38
|
+
};
|
39
|
+
|
40
|
+
/**
|
41
|
+
* WithErrorDuringRegistration:
|
42
|
+
* - Purpose: Tests when an error occurs during WebAuthn registration.
|
43
|
+
* - Scenario: The component displays an error message related to WebAuthn registration failure.
|
44
|
+
* - Key Aspect: Ensures the error message is displayed correctly, informing the user of the registration failure.
|
45
|
+
*/
|
46
|
+
export const WithErrorDuringRegistration: Story = {
|
47
|
+
render: () => (
|
48
|
+
<KcPageStory
|
49
|
+
kcContext={{
|
50
|
+
url: {
|
51
|
+
loginAction: "/mock-login-action"
|
52
|
+
},
|
53
|
+
isSetRetry: false,
|
54
|
+
isAppInitiatedAction: false,
|
55
|
+
message: {
|
56
|
+
summary: "An error occurred during WebAuthn registration. Please try again.",
|
57
|
+
type: "error"
|
58
|
+
}
|
59
|
+
}}
|
60
|
+
/>
|
61
|
+
)
|
62
|
+
};
|