ThemeConfiguration.js revision 692a3ba4c94e1b157797c47cb7bd8cb1c5f6004e
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg/**
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * The contents of this file are subject to the terms of the Common Development and
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * Distribution License (the License). You may not use this file except in compliance with the
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * License.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg *
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * specific language governing permission and limitations under the License.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg *
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * When distributing Covered Software, include this CDDL Header Notice in each file and include
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * Header, with the fields enclosed by brackets [] replaced by your own identifying
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * information: "Portions copyright [year] [name of copyright owner]".
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg *
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg * Copyright 2015 ForgeRock AS.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg */
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburgdefine("config/ThemeConfiguration", {
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg themes: {
d23440965b8b1f106d9264b99cb9dd1427ec51a9Phil Ostler // There must be a theme named "default".
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg "default": {
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // An ordered list of URLs to stylesheets that will be applied to every page.
8e4852c36d7dda230310402d7caf3c78db77ab04Joe Bandenburg stylesheets: ["css/bootstrap-3.3.5-custom.css", "css/theme.css", "css/structure.css"],
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // A path that is prepended to every relative URL when fetching resources (including images, stylesheets and
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // HTML template files).
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg path: "",
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // A URL to a favicon icon
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg icon: "favicon.ico",
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg settings: {
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // This logo is displayed on user profile pages.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg logo: {
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // The URL of the image.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg src: "images/logo-horizontal.png",
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // The title attribute used on <img> tags.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg title: "ForgeRock",
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // The alt attribute used on <img> tags.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg alt: "ForgeRock"
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg },
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // This logo is displayed on login pages.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg loginLogo: {
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // The URL of the image.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg src: "images/login-logo.png",
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // The title attribute used on <img> tags.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg title: "ForgeRock",
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // The alt attribute used on <img> tags.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg alt: "ForgeRock",
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // The height of the logo as a CSS length.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg height: "104px",
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // The width of the logo as a CSS length.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg width: "210px"
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg },
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // The footer is displayed on every page.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg footer: {
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // A contact email address.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg mailto: "info@forgerock.com",
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // A contact phone number. If empty, it will not be displayed.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg phone: ""
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg }
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg }
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg }
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg },
d23440965b8b1f106d9264b99cb9dd1427ec51a9Phil Ostler // Each mapping will be tested in order. The theme from the first matching mapping will be used. If no mapping
d23440965b8b1f106d9264b99cb9dd1427ec51a9Phil Ostler // matches then the theme "default" will be used.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg mappings: [
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // Use the theme with the key "my-theme" if the realm is either /my-realm or /my/sub-realm.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg //{ theme: "my-theme", realms: ["/my-realm", "/my/sub-realm"] }
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg // Use the theme "my-second-theme" if the realm starts with /a. e.g. /ab or /a/c.
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg //{ theme: "my-second-theme", realms: [/^\/a/] }
d23440965b8b1f106d9264b99cb9dd1427ec51a9Phil Ostler // Use the theme "my-third-theme" if the realm is /a and the authentication chain is auth-chain-1.
d23440965b8b1f106d9264b99cb9dd1427ec51a9Phil Ostler //{ theme: "my-third-theme", realms: ["/a"], authenticationChains: ["auth-chain-1"] }
d23440965b8b1f106d9264b99cb9dd1427ec51a9Phil Ostler // Use the theme "my-fourth-theme" if the default authentication chain is in use.
d23440965b8b1f106d9264b99cb9dd1427ec51a9Phil Ostler //{ theme: "my-fourth-theme", authenticationChains: [""] }
bcda16a6eb9f6e84279238f9be660b2d85b5ce55Joe Bandenburg ]
692a3ba4c94e1b157797c47cb7bd8cb1c5f6004eJoe Bandenburg});