Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: logout other sessions and style update-email.ftl #63

Closed
wants to merge 73 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
e8fcdd9
Update dependencies
lukin Aug 17, 2021
5dad1e2
Added IDP extension
ifeelcream Sep 6, 2021
6079295
Prettier
lukin Sep 6, 2021
b3c3e3c
Merge pull request #1
lukin Sep 6, 2021
69dc820
Update dependencies
lukin Nov 21, 2021
bf38ae6
Update configuration files
lukin Nov 21, 2021
9d13778
Build resources
lukin Nov 21, 2021
8db0ead
Update README.md
lukin Nov 21, 2021
5a07825
Fix username validation
lukin Dec 9, 2021
766a38b
Update dependencies
lukin Dec 13, 2021
3b44fd2
Update target
lukin Dec 13, 2021
4e3f17b
Build resources
lukin Dec 13, 2021
2622c84
Rollback target
lukin Jan 2, 2022
295f5fc
Update dependencies
lukin Jan 2, 2022
54e9c33
Build resources
lukin Jan 2, 2022
4cff8b3
ui(totp): configure and login otp
ronmrcdo Apr 2, 2022
6067b8f
Prettier
lukin Apr 5, 2022
8781594
Merge pull request #9
lukin Apr 5, 2022
fef457a
[link] Remove extra styles
lukin Apr 5, 2022
a195d30
Update alerts.ftl
tombrouwer Apr 20, 2022
4f79746
Update locales.ftl
tombrouwer Apr 20, 2022
b86e947
[alerts] Use break in switch (#11)
lukin Apr 20, 2022
224d737
[locales] Fix HTML tag (#12)
lukin Apr 20, 2022
118d107
Migrate from Snowpack to Vite
lukin Sep 3, 2022
52f9892
Update register.ftl
YoanSimco Sep 18, 2022
f319a25
Merge pull request #19
lukin Sep 25, 2022
2c92c52
[pages] Add Logout Confirm
lukin Sep 25, 2022
5bef95c
Update logout-confirm.ftl
YoanSimco Oct 1, 2022
ad9e375
Apply suggestions to 1 file
YoanSimco Oct 2, 2022
f5490bd
Merge pull request #21
lukin Oct 2, 2022
79b24d2
[icon] Add all providers
lukin Oct 16, 2022
0b16820
implement webauthn and recovery codes from keycloak base
cwildfoerster Nov 8, 2022
8ce6c30
implement missing authenticator selector
cwildfoerster Nov 8, 2022
613f4ff
fix otp setup error due to change in upstream
cwildfoerster Nov 10, 2022
c382739
Merge pull request #24
lukin Nov 13, 2022
1063773
create secondary-small button component
cwildfoerster Nov 16, 2022
55c1704
create secondary-small button component
cwildfoerster Nov 16, 2022
1d93e03
fix missing closing statement
cwildfoerster Nov 16, 2022
c1bbb2b
improve list and image layout
cwildfoerster Nov 16, 2022
2c5c3f0
fix retry error due to missing form id
cwildfoerster Nov 18, 2022
60f8cbc
remove jquery dependency, use vanilla js
cwildfoerster Nov 18, 2022
d8494ca
remove jquery dependency, use vanilla js
cwildfoerster Nov 18, 2022
1af2b22
center align image
cwildfoerster Nov 18, 2022
040a0ce
increase bottom margin on oauth logo
cwildfoerster Nov 18, 2022
2ac06e9
Feat: add slack icon
dorianim Dec 4, 2022
3750aeb
Feat: slack icon
dorianim Dec 4, 2022
9c14af1
Prettier
lukin Dec 17, 2022
ba8d2da
Merge pull request #25
lukin Dec 17, 2022
3d46e76
Update dependencies
lukin Dec 17, 2022
544023b
Update components
lukin Jan 14, 2023
13d205b
Merge branch 'master' into pr/23
lukin Jan 14, 2023
61935f6
[pages] Update Recovery Authn Code
lukin Jan 14, 2023
55f5c25
fix a typo
tobinibot Jan 23, 2023
4825fc2
Merge pull request #33
lukin Jan 28, 2023
ff2280b
Merge branch 'master' into feat/slack-icon
dorianim Feb 2, 2023
4592b02
[providers] Add Slack
lukin Feb 2, 2023
b14d964
Merge pull request #26
lukin Feb 2, 2023
fb53d98
[pages] Update WebAuthn
lukin Feb 4, 2023
475a9ba
Merge branch 'master' into pr/23
lukin Feb 4, 2023
233267b
Merge pull request #23
lukin Feb 9, 2023
c5ab06d
Fix favicon
lukin Mar 3, 2023
f1df034
Add script to create JAR archive
lukin Mar 10, 2023
b622a6d
[pages] Add Error, Login Page Expired, and Terms (#34)
dschemp Mar 19, 2023
d3836c0
[data] Fix WebAuthn Authenticate (#36)
horus Mar 19, 2023
e7d2854
[pages] Add Login Password and Login Username (#38)
Kalissaac Mar 25, 2023
f7d5b2d
[providers] Add Discord (#40)
ATechAdventurer Mar 26, 2023
3663acd
[providers] Apple (#50)
martmalo Sep 10, 2023
5189c9c
Add tests
lukin Sep 23, 2023
7b0d297
initial commit
Sep 30, 2023
daa41cf
style update-email.ftl + fixes
Sep 30, 2023
9beadbe
Add HTML lang attribute (#53)
paulwer Oct 4, 2023
41c6e23
Merge branch 'master' into patch-7-passwordCommons
paulwer Oct 5, 2023
56346bb
Merge branch 'master' into pr/63
lukin Oct 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Keywind is a component-based Keycloak Login Theme built with [Tailwind CSS](http
- Register
- Select Authenticator
- Terms and Conditions
- Update E-Mail
- WebAuthn Authenticate
- WebAuthn Error
- WebAuthn Register
Expand Down
10 changes: 10 additions & 0 deletions theme/keywind/login/components/molecules/password-commons.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<#import "../atoms/checkbox.ftl" as checkbox>

<#macro logoutOtherSessions>
<@checkbox.kw
name="logout-sessions"
label=msg("logoutOtherSessions")
checked=true
value="on"
/>
</#macro>
4 changes: 4 additions & 0 deletions theme/keywind/login/login-config-totp.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<#import "components/atoms/link.ftl" as link>
<#import "features/labels/totp.ftl" as totpLabel>
<#import "features/labels/totp-device.ftl" as totpDeviceLabel>
<#import "components/molecules/password-commons.ftl" as passwordCommons>

<#assign totpLabel><@totpLabel.kw /></#assign>
<#assign totpDeviceLabel><@totpDeviceLabel.kw /></#assign>
Expand Down Expand Up @@ -91,6 +92,9 @@
required=false
type="text"
/>

<@passwordCommons.logoutOtherSessions/>

<@buttonGroup.kw>
<#if isAppInitiatedAction??>
<@button.kw color="primary" type="submit">
Expand Down
2 changes: 2 additions & 0 deletions theme/keywind/login/login-recovery-authn-code-config.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<#import "components/atoms/button-group.ftl" as buttonGroup>
<#import "components/atoms/checkbox.ftl" as checkbox>
<#import "components/atoms/form.ftl" as form>
<#import "components/molecules/password-commons.ftl" as passwordCommons>

<@layout.registrationLayout script="dist/recoveryCodes.js"; section>
<#if section="header">
Expand Down Expand Up @@ -54,6 +55,7 @@
required="required"
x\-ref="confirmationCheck"
/>
<@passwordCommons.logoutOtherSessions/>
<@buttonGroup.kw>
<#if isAppInitiatedAction??>
<@button.kw color="primary" type="submit">
Expand Down
2 changes: 2 additions & 0 deletions theme/keywind/login/login-update-password.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<#import "components/atoms/checkbox.ftl" as checkbox>
<#import "components/atoms/form.ftl" as form>
<#import "components/atoms/input.ftl" as input>
<#import "components/molecules/password-commons.ftl" as passwordCommons>

<@layout.registrationLayout
displayMessage=!messagesPerField.existsError("password", "password-confirm")
Expand Down Expand Up @@ -37,6 +38,7 @@
name="password-confirm"
type="password"
/>
<@passwordCommons.logoutOtherSessions/>
<#if isAppInitiatedAction??>
<@checkbox.kw
checked=true
Expand Down
43 changes: 43 additions & 0 deletions theme/keywind/login/update-email.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<#import "template.ftl" as layout>
<#import "components/atoms/button.ftl" as button>
<#import "components/atoms/button-group.ftl" as buttonGroup>
<#import "components/atoms/form.ftl" as form>
<#import "components/atoms/input.ftl" as input>
<#import "components/molecules/password-commons.ftl" as passwordCommons>

<@layout.registrationLayout displayMessage=!messagesPerField.existsError('email'); section>
<#if section = "header">
${msg("updateEmailTitle")}
<#elseif section = "form">
<@form.kw action="${url.loginAction}" method="post">
<@input.kw
autocomplete="off"
autofocus=true
invalid=messagesPerField.existsError("email")
label=msg("email")
message=kcSanitize(messagesPerField.get("email"))?no_esc
name="email"
required=true
type="text"
value=email.value!''
/>

<@passwordCommons.logoutOtherSessions/>

<@buttonGroup.kw>
<#if isAppInitiatedAction??>
<@button.kw color="primary" type="submit">
${msg("doSubmit")}
</@button.kw>
<@button.kw color="secondary" name="cancel-aia" type="submit" value="true">
${msg("doCancel")}
</@button.kw>
<#else>
<@button.kw color="primary" type="submit">
${msg("doSubmit")}
</@button.kw>
</#if>
</@buttonGroup.kw>
</@form.kw>
</#if>
</@layout.registrationLayout>
2 changes: 2 additions & 0 deletions theme/keywind/login/webauthn-register.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<#import "template.ftl" as layout>
<#import "components/atoms/button.ftl" as button>
<#import "components/atoms/button-group.ftl" as buttonGroup>
<#import "components/molecules/password-commons.ftl" as passwordCommons>

<@layout.registrationLayout script="dist/webAuthnRegister.js"; section>
<#if section="title">
Expand All @@ -16,6 +17,7 @@
<input name="error" type="hidden" x-ref="errorInput" />
<input name="publicKeyCredentialId" type="hidden" x-ref="publicKeyCredentialIdInput" />
<input name="transports" type="hidden" x-ref="transportsInput" />
<@passwordCommons.logoutOtherSessions/>
</form>
<@buttonGroup.kw>
<@button.kw @click="registerSecurityKey" color="primary" type="submit">
Expand Down