AppConfiguration.js revision 27b2ac15d8015fcdd3a940b10e788f408903670e
/* @license
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright © 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",
url: "applications/addmore/"
},
"allApps": {
role: "openidm-authorized",
url: "applications/all/"
},
"apps": {
role: "openidm-authorized",
url: "applications/"
}
}
}
},
{
]
}
},
{
}
}
},
{
"unauthorized": {
status: "401",
},
"serverError": {
status: "503",
}
}
}
},
{
links: {
"admin" : {
"role": "admin",
"urls": {
"users": {
"url": "#users/",
"name": "User Management"
},
"groups": {
"url": "#groups/",
"name": "Groups Management"
}
}
},
"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"
}
}
},
{
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"
}
}
}
}
],
loggerLevel: 'debug'
};
return obj;
});