GlobalRoutes.js revision b32c0dd7785e18532eafc88e1b7a305198489d46
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2016 ForgeRock AS.
*/
define([
"lodash"
], (_) => {
const routes = {
role: "ui-global-admin",
navGroup: "admin"
},
view: "org/forgerock/openam/ui/admin/views/configuration/authentication/EditGlobalAuthenticationView",
pattern: "configure/authentication/?",
role: "ui-global-admin",
navGroup: "admin"
},
role: "ui-global-admin",
navGroup: "admin"
},
pattern: "configure/global-services/?",
role: "ui-global-admin",
navGroup: "admin"
},
pattern: "configure/global-services/?/?/new",
role: "ui-realm-admin",
navGroup: "admin",
forceUpdate: true
},
pattern: "configure/global-services/?/?/edit/?",
role: "ui-realm-admin",
navGroup: "admin",
forceUpdate: true
},
pattern: "configure/global-services/?/?/edit/?/?/edit/?",
role: "ui-realm-admin",
navGroup: "admin",
forceUpdate: true
},
listSites: {
pattern: "deployment/sites",
role: "ui-global-admin",
navGroup: "admin"
},
editSite: {
pattern: "deployment/sites/edit/?",
role: "ui-global-admin",
navGroup: "admin"
},
newSite: {
pattern: "deployment/sites/new",
role: "ui-global-admin",
navGroup: "admin"
},
listServers: {
pattern: "deployment/servers",
role: "ui-global-admin",
navGroup: "admin"
},
newServer: {
pattern: "deployment/servers/new",
role: "ui-global-admin",
navGroup: "admin"
},
cloneServer: {
pattern: "deployment/servers/clone/?",
role: "ui-global-admin",
navGroup: "admin"
}
};
// Add routes for "Server Edit" tree navigation
_.each(["general", "security", "session", "sdk", "cts", "uma", "advanced", "directoryConfiguration"], (suffix) => {
role: "ui-global-admin",
navGroup: "admin",
forceUpdate: true
};
});
// Add routes for "Server Defaults" tree navigation
view: "org/forgerock/openam/ui/admin/views/configuration/server/EditServerDefaultsTreeNavigationView",
role: "ui-global-admin",
navGroup: "admin",
forceUpdate: true
};
});
return routes;
});