Skip to content

Commit

Permalink
Major updates to accounts theme to support Keycloak 22 (#23)
Browse files Browse the repository at this point in the history
Custom react based page for accounts

* Disable signing page to avoid users thinking they can change their password
* Make all form fields read-only for the personal information page

Update paths for logos and favicon to match what Keycloak v2 theme does by default for account pages
Remove gofly as that has been gone for ages
  • Loading branch information
treydock authored Jul 18, 2023
1 parent 51a2801 commit 00ad2b8
Show file tree
Hide file tree
Showing 24 changed files with 391 additions and 171 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,16 @@ awesim/

## Maintaining

The template.ftl and login.ftl templates have been modified from the originals in base/login/template.ftl and base/login/login.ftl.
When upgrading to a new version of KeyCloak, verify that this base template did not change.
To get the upstream themes:

```
$ diff /opt/keycloak-4.2.1.Final/themes/base/login/template.ftl /opt/keycloak-4.3.0.Final/themes/base/login/template.ftl
$ diff /opt/keycloak-4.2.1.Final/themes/base/login/login.ftl /opt/keycloak-4.3.0.Final/themes/base/login/login.ftl
cd /opt/keycloak/themes/ood-keycloak
unzip ../../lib/lib/main/org.keycloak.keycloak-themes-22.0.0.jar
```

The template.ftl and login.ftl templates have been modified from the originals in base/login/template.ftl and base/login/login.ftl.
When upgrading to a new version of KeyCloak, verify that this base template did not change.

## LICENSE

- Code licensed under MIT License
Expand Down
70 changes: 0 additions & 70 deletions account/account.ftl

This file was deleted.

3 changes: 3 additions & 0 deletions account/messages/messages_en.properties
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
allFieldsRequired=
personalInfoIntroMessage=
personalSubMessage=
editAccountHtmlTitle=Account
71 changes: 71 additions & 0 deletions account/resources/content.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[
{
"id": "personal-info",
"path": "personal-info",
"icon": "pf-icon-user",
"label": "personalInfoSidebarTitle",
"descriptionLabel": "personalInfoIntroMessage",
"modulePath": "/content/account-page/AccountPage.js",
"componentName": "AccountPage"
},
{
"id": "security",
"icon": "pf-icon-security",
"label": "accountSecuritySidebarTitle",
"descriptionLabel": "accountSecurityIntroMessage",
"content": [
{
"id": "signingin",
"path": "security/signingin",
"label": "signingInSidebarTitle",
"modulePath": "/content/signingin-page/SigningInPage.js",
"componentName": "SigningInPage",
"hidden": "true"
},
{
"id": "device-activity",
"path": "security/device-activity",
"label": "deviceActivitySidebarTitle",
"modulePath": "/content/device-activity-page/DeviceActivityPage.js",
"componentName": "DeviceActivityPage"
},
{
"id": "linked-accounts",
"path": "security/linked-accounts",
"label": "linkedAccountsSidebarTitle",
"modulePath": "/content/linked-accounts-page/LinkedAccountsPage.js",
"componentName": "LinkedAccountsPage",
"hidden": "!features.isLinkedAccountsEnabled"
}
]
},
{
"id": "applications",
"icon": "pf-icon-applications",
"path": "applications",
"label": "applications",
"descriptionLabel": "applicationsIntroMessage",
"modulePath": "/content/applications-page/ApplicationsPage.js",
"componentName": "ApplicationsPage"
},
{
"id": "groups",
"path": "groups",
"icon": "pf-icon-server-group",
"label": "groupLabel",
"descriptionLabel": "groupDescriptionLabel",
"modulePath": "/content/group-page/GroupsPage.js",
"componentName": "GroupsPage",
"hidden": "!features.isViewGroupsEnabled"
},
{
"id": "resources",
"icon": "pf-icon-repository",
"path": "resources",
"label": "resources",
"descriptionLabel": "resourceIntroMessage",
"modulePath": "/content/my-resources-page/MyResourcesPage.js",
"componentName": "MyResourcesPage",
"hidden": "!features.isMyResourcesEnabled"
}
]
Loading

0 comments on commit 00ad2b8

Please sign in to comment.