-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HAWKULAR-68 - Added skeleton for Hawkular Theme for Keycloak
- Loading branch information
1 parent
4625236
commit 9f83757
Showing
20 changed files
with
372 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
distribution/src/main/resources/modules/org/hawkular/keycloak/theme/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" ?> | ||
<!-- | ||
Copyright 2015 Red Hat, Inc. and/or its affiliates | ||
and other contributors as indicated by the @author tags. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<module xmlns="urn:jboss:module:1.1" name="org.hawkular.keycloak.theme"> | ||
<resources> | ||
<resource-root path="hawkular-accounts-keycloak-theme.jar"/> | ||
</resources> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
distribution/src/main/resources/standalone/configuration/keycloak-server.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"providers": [ | ||
"classpath:${jboss.server.config.dir}/providers/*" | ||
], | ||
|
||
"admin": { | ||
"realm": "master" | ||
}, | ||
|
||
"eventsStore": { | ||
"provider": "jpa", | ||
"jpa": { | ||
"exclude-events": [ "REFRESH_TOKEN" ] | ||
} | ||
}, | ||
|
||
"realm": { | ||
"provider": "jpa" | ||
}, | ||
|
||
"user": { | ||
"provider": "jpa" | ||
}, | ||
|
||
"userSessions": { | ||
"provider" : "mem" | ||
}, | ||
|
||
"realmCache": { | ||
"provider": "mem" | ||
}, | ||
|
||
"userCache": { | ||
"provider": "mem", | ||
"mem": { | ||
"maxSize": 20000 | ||
} | ||
}, | ||
|
||
"timer": { | ||
"provider": "basic" | ||
}, | ||
|
||
"theme": { | ||
"default": "keycloak", | ||
"staticMaxAge": 2592000, | ||
"cacheTemplates": true, | ||
"cacheThemes": true, | ||
"folder": { | ||
"dir": "${jboss.server.config.dir}/themes" | ||
}, | ||
"module": { | ||
"modules": [ "org.hawkular.keycloak.theme" ] | ||
} | ||
}, | ||
|
||
"login": { | ||
"provider": "freemarker" | ||
}, | ||
|
||
"account": { | ||
"provider": "freemarker" | ||
}, | ||
|
||
"email": { | ||
"provider": "freemarker" | ||
}, | ||
|
||
"scheduled": { | ||
"interval": 900 | ||
}, | ||
|
||
"connectionsJpa": { | ||
"default": { | ||
"dataSource": "java:jboss/datasources/KeycloakDS", | ||
"databaseSchema": "update" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2015 Red Hat, Inc. and/or its affiliates | ||
and other contributors as indicated by the @author tags. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.hawkular.accounts</groupId> | ||
<artifactId>hawkular-accounts-parent</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<name>Hawkular - Accounts - Keycloak Theme</name> | ||
<artifactId>hawkular-accounts-keycloak-theme</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<description> | ||
Required files for the Hawkular Theme for Keyclaok | ||
</description> | ||
|
||
</project> | ||
|
6 changes: 6 additions & 0 deletions
6
keycloak-theme/src/main/resources/META-INF/keycloak-themes.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"themes": [{ | ||
"name" : "hawkular", | ||
"types": [ "admin", "account", "login", "welcome" ] | ||
}] | ||
} |
24 changes: 24 additions & 0 deletions
24
keycloak-theme/src/main/resources/theme/hawkular/account/resources/css/account.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Copyright 2015 Red Hat, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
.navbar-title { | ||
background-image: url('../img/red-hat-logo.png'); | ||
height: 65px; | ||
background-repeat: no-repeat; | ||
width: 203px; | ||
margin: 3px 10px 5px; | ||
text-indent: -99999px; | ||
} |
Binary file added
BIN
+2.94 KB
...-theme/src/main/resources/theme/hawkular/account/resources/img/red-hat-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
keycloak-theme/src/main/resources/theme/hawkular/account/theme.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Copyright 2015 Red Hat, Inc. and/or its affiliates | ||
# and other contributors as indicated by the @author tags. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
parent=keycloak | ||
import=common/keycloak | ||
|
||
styles= ../patternfly/lib/patternfly/css/patternfly.css ../patternfly/css/account.css ../keycloak/css/account.css css/account.css |
24 changes: 24 additions & 0 deletions
24
keycloak-theme/src/main/resources/theme/hawkular/admin/resources/css/overrides.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Copyright 2015 Red Hat, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
.navbar-title { | ||
background-image: url('../img/red-hat-logo.png'); | ||
height: 65px; | ||
background-repeat: no-repeat; | ||
width: 203px; | ||
margin: 3px 10px 5px; | ||
text-indent: -99999px; | ||
} |
Binary file added
BIN
+2.94 KB
...ak-theme/src/main/resources/theme/hawkular/admin/resources/img/red-hat-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
keycloak-theme/src/main/resources/theme/hawkular/admin/theme.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Copyright 2015 Red Hat, Inc. and/or its affiliates | ||
# and other contributors as indicated by the @author tags. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
parent=keycloak | ||
import=common/keycloak |
25 changes: 25 additions & 0 deletions
25
keycloak-theme/src/main/resources/theme/hawkular/login/resources/css/login.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright 2015 Red Hat, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#kc-logo-wrapper { | ||
background-image: url("../img/red-hat-logo.png"); | ||
background-repeat: no-repeat; | ||
background-position: top right; | ||
|
||
height: 65px; | ||
|
||
margin: 100px; | ||
} |
Binary file added
BIN
+2.94 KB
...ak-theme/src/main/resources/theme/hawkular/login/resources/img/red-hat-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
keycloak-theme/src/main/resources/theme/hawkular/login/theme.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Copyright 2015 Red Hat, Inc. and/or its affiliates | ||
# and other contributors as indicated by the @author tags. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
parent=keycloak | ||
import=common/keycloak | ||
|
||
styles= ../patternfly/lib/patternfly/css/patternfly.css ../patternfly/css/login.css ../patternfly/lib/zocial/zocial.css ../keycloak/css/login.css css/login.css |
50 changes: 50 additions & 0 deletions
50
keycloak-theme/src/main/resources/theme/hawkular/welcome/resources/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!-- | ||
~ JBoss, Home of Professional Open Source. | ||
~ Copyright (c) 2011, Red Hat, Inc., and individual contributors | ||
~ as indicated by the @author tags. See the copyright.txt file in the | ||
~ distribution for a full listing of individual contributors. | ||
~ | ||
~ This is free software; you can redistribute it and/or modify it | ||
~ under the terms of the GNU Lesser General Public License as | ||
~ published by the Free Software Foundation; either version 2.1 of | ||
~ the License, or (at your option) any later version. | ||
~ | ||
~ This software is distributed in the hope that it will be useful, | ||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
~ Lesser General Public License for more details. | ||
~ | ||
~ You should have received a copy of the GNU Lesser General Public | ||
~ License along with this software; if not, write to the Free | ||
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. | ||
--> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
|
||
<html> | ||
<head> | ||
<title>Welcome to Keycloak</title> | ||
<link rel="shortcut icon" href="welcome-content/favicon.ico" type="image/x-icon"> | ||
<link rel="StyleSheet" href="welcome-content/keycloak.css" type="text/css"> | ||
</head> | ||
|
||
<body> | ||
<div class="wrapper"> | ||
<div class="content"> | ||
<div class="logo"> | ||
<img src="welcome-content/red-hat-logo.png" alt="Red Hat" border="0" /> | ||
</div> | ||
<h1>Welcome to Keycloak</h1> | ||
|
||
<h3>Your Keycloak is running.</h3> | ||
|
||
<p><a href="http://www.keycloak.org/docs">Documentation</a> | <a href="admin/">Administration Console</a> </p> | ||
|
||
<p><a href="http://www.keycloak.org">Keycloak Project</a> | | ||
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user">Mailing List</a> | | ||
<a href="https://issues.jboss.org/browse/KEYCLOAK">Report an issue</a></p> | ||
<p class="logos"><a href="http://www.jboss.org"><img src="welcome-content/jboss_community.png" alt="JBoss and JBoss Community" width="254" height="31" border="0"></a></p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Binary file added
BIN
+2.94 KB
...loak-theme/src/main/resources/theme/hawkular/welcome/resources/red-hat-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.