AppConfiguration.js revision 125a7fd4d15562551dd22877affb523068dee49a
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2011-2012 ForgeRock AS. All rights reserved.
*
* 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
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
/*global define*/
/**
* @author yaromin
*/
define("config/AppConfiguration", [
], function(constants, eventManager) {
var obj = {
{
showCredentialFields: true,
hideLoginButton: false,
}
},
{
passwordParameterName: "IDToken2",
userNameParameterName: "IDToken1",
logoutTestOnly: false,
loginTestOnly: false,
ajaxLogout: false
}
},
{
routes: {
"": {
role: "openidm-authorized",
url: ""
},
"profile": {
role: "openidm-authorized",
excludedRole: "openidm-admin",
url: "profile/"
},
"siteIdentification": {
base: "profile",
role: "openidm-authorized",
excludedRole: "openidm-admin"
},
"adminUsers": {
url: "users/",
role: "admin"
},
"adminUsersAdd" : {
role: "admin",
},
"adminUserProfile" : {
role: "admin",
pattern: "users/?/"
},
"adminUserChangePassword" : {
base: "adminUserProfile",
pattern: "users/?/change_password/",
role: "admin"
},
"register": {
url: "register/"
},
"termsOfUse": {
base: "register",
url: "register/terms_of_use/"
},
"login" : {
url: "login/"
},
"forgottenPassword" : {
base: "login",
},
"enterOldPassword": {
base: "profile",
role: "openidm-authorized",
url: "profile/old_password/",
excludedRoles: "openidm-admin"
},
"changeSecurityData": {
base: "profile",
role: "openidm-authorized",
excludedRole: "openidm-admin"
},
"addMoreAppsView": {
role: "openidm-authorized",
excludedRole: "openidm-admin",
url: "applications/addmore/"
},
"allApps": {
role: "openidm-authorized",
excludedRole: "openidm-admin",
url: "applications/all/"
},
"apps": {
role: "openidm-authorized",
excludedRole: "openidm-admin",
url: "applications/"
},
"tasks": {
role: "openidm-admin",
url: "tasks/"
},
"taskDetails": {
role: "openidm-admin",
url: "tasks/:id"
},
"tasksWithMenu": {
role: "openidm-admin",
url: "tasksmenu/"
}
}
}
},
{
]
}
},
{
}
}
},
{
"unauthorized": {
status: "401",
},
"serverError": {
status: "503",
}
}
}
},
{
links: {
"admin" : {
"role": "admin",
"urls": {
"users": {
"url": "#users/",
"name": "Users"
},
"groups": {
"url": "#groups/",
"name": "Groups"
},
"tasks": {
"url": "#tasks/",
"name": "Tasks"
}
/*"tasksMenu": {
"baseUrl": "#tasksmenu/",
"url": "#tasksmenu/",
"name": "Tasks with menu",
"urls": {
"myTasks": {
"url": "#tasksmenu/",
"name": "My tasks (4)"
},
"groupsTasks": {
"name": "Groups queue"
},
"usersTasks": {
"name": "Users queue"
}
}
}*/
}
},
"user" : {
"urls": {
"apps": {
"baseUrl": "#applications/",
"url": "#applications/all/",
"name": "Applications",
"urls": {
"allApps": {
"url": "#applications/all/",
"name": "All applications"
},
"addMore": {
"url": "#applications/addmore/",
"name": "Add more apps"
}
}
},
"groups": {
"url": "#groups/",
"name": "Groups"
}
}
}
}
}
},
{
"1": "images/notifications/pending.png",
"2": "images/notifications/group_added.png",
"3": "images/notifications/approved.png",
"4": "images/notifications/removed.png"
}
}
},
{
forms: {
}
}
},
{
templateUrls: [
]
}
},
{
messages: {
"invalidCredentials": {
type: "error"
},
"serviceUnavailable": {
msg: "Service unavailable",
type: "error"
},
"changedPassword": {
msg: "Password has been changed",
type: "info"
},
"userAlreadyExists": {
msg: "User already exists",
type: "error"
},
"unknown": {
msg: "Unknown error. Please contact with administrator",
type: "error"
},
"profileUpdateFailed": {
msg: "Problem during profile update",
type: "error"
},
"profileUpdateSuccessful": {
msg: "Profile has been updated",
type: "info"
},
"userNameUpdated": {
msg: "Username has been modified succesfully.",
type: "info"
},
"afterRegistration": {
msg: "User has been registered successfully",
type: "info"
},
"loggedIn": {
msg: "You have been successfully logged in.",
type: "info"
},
"errorFetchingData": {
msg: "Error fetching user data",
type: "error"
},
"loggedOut": {
msg: "You have been logged out.",
type: "info"
},
"cannotDeleteYourself": {
msg: "You can't delete yourself",
type: "error"
},
"userDeleted": {
msg: "User has been deleted",
type: "info"
},
"userDeleteError": {
msg: "Error when deleting user",
type: "error"
},
"siteIdentificationChanged": {
msg: "Site identification image has been changed",
type: "info"
},
"securityDataChanged": {
msg: "Security data has been changed",
type: "info"
},
"unauthorized": {
msg: "Unauthorized access",
type: "error"
},
"userApplicationsUpdate": {
msg: "Application settings have been changed.",
type: "info"
},
"completedTask": {
msg: "Task has been completed.",
type: "info"
}
}
}
}
],
loggerLevel: 'debug'
};
return obj;
});