AppConfiguration.js revision ad920a5855b8eda16e20b7299c1f8b5f6771166d
449N/A/**
797N/A * The contents of this file are subject to the terms of the Common Development and
449N/A * Distribution License (the License). You may not use this file except in compliance with the
449N/A * License.
449N/A *
449N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
553N/A * specific language governing permission and limitations under the License.
449N/A *
553N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include
449N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
449N/A * Header, with the fields enclosed by brackets [] replaced by your own identifying
449N/A * information: "Portions copyright [year] [name of copyright owner]".
449N/A *
449N/A * Portions copyright 2011-2015 ForgeRock AS.
449N/A */
449N/A
449N/Adefine("config/AppConfiguration", [
449N/A "org/forgerock/openam/ui/common/util/Constants"
449N/A], function (Constants) {
449N/A var obj = {
553N/A moduleDefinition: [{
553N/A moduleClass: "org/forgerock/commons/ui/common/main/SessionManager",
553N/A configuration: {
449N/A loginHelperClass: "org/forgerock/openam/ui/user/login/RESTLoginHelper"
449N/A }
449N/A }, {
449N/A moduleClass: "org/forgerock/commons/ui/common/main/Router",
449N/A configuration: {
449N/A routes: {},
449N/A loader: [
449N/A { "routes": "config/routes/AMRoutesConfig" },
449N/A { "routes": "config/routes/CommonRoutesConfig" },
449N/A { "routes": "config/routes/UserRoutesConfig" },
449N/A { "routes": "config/routes/admin/AdminRoutes" },
449N/A { "routes": "config/routes/admin/RealmsRoutes" },
449N/A { "routes": "config/routes/user/UMARoutes" }
449N/A ]
449N/A }
449N/A }, {
958N/A moduleClass: "org/forgerock/commons/ui/common/SiteConfigurator",
449N/A configuration: {
449N/A selfRegistration: false,
449N/A enterprise: false,
449N/A remoteConfig: true,
449N/A delegate: "org/forgerock/openam/ui/common/delegates/SiteConfigurationDelegate"
449N/A }
449N/A }, {
449N/A moduleClass: "org/forgerock/commons/ui/common/main/ProcessConfiguration",
449N/A configuration: {
449N/A processConfigurationFiles: [
449N/A "config/process/AMConfig",
449N/A "config/process/CommonConfig"
449N/A ]
449N/A }
449N/A }, {
449N/A moduleClass: "org/forgerock/commons/ui/common/main/ServiceInvoker",
449N/A configuration: {
449N/A defaultHeaders: {
580N/A }
580N/A }
449N/A }, {
449N/A moduleClass: "org/forgerock/commons/ui/common/main/ErrorsHandler",
449N/A configuration: {
449N/A defaultHandlers: {
449N/A },
449N/A loader: [
449N/A { "defaultHandlers": "config/errorhandlers/CommonErrorHandlers" }
449N/A ]
449N/A }
449N/A }, {
449N/A moduleClass: "org/forgerock/commons/ui/common/util/UIUtils",
449N/A configuration: {
449N/A templateUrls: [
449N/A ],
449N/A partialUrls: [
449N/A "partials/form/_JSONSchemaFooter.html",
449N/A "partials/headers/_Title.html",
449N/A "partials/headers/_TitleWithSubAndIcon.html",
449N/A "partials/login/_Choice.html",
449N/A "partials/login/_Confirmation.html",
449N/A "partials/login/_Default.html",
449N/A "partials/login/_HiddenValue.html",
449N/A "partials/login/_Password.html",
449N/A "partials/login/_Redirect.html",
449N/A "partials/login/_ScriptTextOutput.html",
449N/A "partials/login/_TextInput.html",
449N/A "partials/login/_TextOutput.html"
449N/A ]
449N/A }
449N/A }, {
449N/A moduleClass: "org/forgerock/commons/ui/common/components/Messages",
449N/A configuration: {
449N/A messages: {
449N/A },
449N/A loader: [
449N/A { "messages": "config/messages/CommonMessages" },
449N/A { "messages": "config/messages/UserMessages" },
449N/A { "messages": "config/AppMessages" }
449N/A ]
449N/A }
449N/A }, {
449N/A moduleClass: "org/forgerock/commons/ui/common/main/ValidatorsManager",
449N/A configuration: {
449N/A policyDelegate: "org/forgerock/openam/ui/common/delegates/PolicyDelegate",
449N/A validators: { },
449N/A loader: [
449N/A { "validators": "config/validators/CommonValidators" }
449N/A ]
449N/A }
449N/A }, {
449N/A moduleClass: "org/forgerock/commons/ui/common/components/Navigation",
449N/A configuration: {
449N/A userBar: [
449N/A {
449N/A "id": "profileLink",
449N/A "href": "#profile/details",
449N/A "i18nKey": "common.user.profile"
449N/A }, {
449N/A "id": "changePasswordLink",
449N/A "href": "#profile/password",
449N/A "i18nKey": "common.user.changePassword"
449N/A }, {
449N/A "id": "logoutLink",
449N/A "href": "#logout/",
449N/A "i18nKey": "common.form.logout"
449N/A }
449N/A ],
449N/A links: {
449N/A "admin": {
449N/A "role": "ui-admin",
449N/A "urls": {
449N/A "realms": {
449N/A "url": "#realms",
449N/A "name": "config.AppConfiguration.Navigation.links.realms.title",
449N/A "icon": "fa fa-cloud",
449N/A "dropdown" : true,
449N/A "urls": [{
449N/A "url": "#realms",
449N/A "name": "config.AppConfiguration.Navigation.links.realms.showAll",
449N/A "icon": "fa fa-th"
449N/A }, {
449N/A "event": Constants.EVENT_ADD_NEW_REALM_DIALOG,
449N/A "name": "config.AppConfiguration.Navigation.links.realms.newRealm",
449N/A "icon": "fa fa-plus"
449N/A }, {
449N/A divider: true
449N/A }]
449N/A },
449N/A "federation": {
449N/A "url": "#federation",
449N/A "name": "config.AppConfiguration.Navigation.links.federation",
449N/A "icon": "fa fa-building-o"
449N/A },
449N/A "configuration": {
449N/A "url": "#configuration",
846N/A "name": "config.AppConfiguration.Navigation.links.configuration",
449N/A "icon": "fa fa-cog"
449N/A },
449N/A "sessions": {
449N/A "url": "#sessions",
449N/A "name": "config.AppConfiguration.Navigation.links.sessions",
449N/A "icon": "fa fa-users"
449N/A }
449N/A }
449N/A },
449N/A "user" : {
846N/A "urls": {
449N/A "dashboard": {
449N/A "url": "#dashboard/",
449N/A "name": "config.AppConfiguration.Navigation.links.dashboard",
449N/A "icon": "fa fa-dashboard"
449N/A },
449N/A "uma": {
958N/A "icon": "fa fa-user",
449N/A "name": "config.AppConfiguration.Navigation.links.uma",
449N/A "dropdown" : true,
449N/A "urls": {
449N/A "listResource": {
449N/A "url": "#uma/resources/",
449N/A "name": "config.AppConfiguration.Navigation.links.umaLinks.resources"
449N/A },
449N/A "listHistory": {
449N/A "url": "#uma/history/",
449N/A "name": "config.AppConfiguration.Navigation.links.umaLinks.history"
449N/A },
449N/A "listRequests": {
449N/A "url": "#uma/requests/",
449N/A "name": "config.AppConfiguration.Navigation.links.umaLinks.requests"
449N/A }
449N/A }
449N/A }
449N/A }
449N/A }
449N/A }
449N/A }
449N/A }],
449N/A loggerLevel: "debug"
449N/A };
449N/A return obj;
449N/A});
449N/A