AMConfig.js revision 9c2075452fc489bae07e83a34369e12f4a81a144
/**
* 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]".
*
* Portions copyright 2011-2016 ForgeRock AS.
*/
"jquery",
"underscore",
return [{
description: "used to override common logout event",
override: true,
dependencies: [
],
}
if (gotoURL) {
} else {
});
}
}, function () {
if (gotoURL) {
} else {
});
}
});
}
}, {
override: true,
dependencies: [
],
if (conf.baseTemplate) {
} else {
}
}
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
}
}, {
description: "",
dependencies: [
],
if (!Configuration.loggedUser) {
args: [],
trigger: true
});
} else {
}
}
}, {
description: "",
dependencies: [
"Footer",
],
}
}, {
description: "",
dependencies: [
],
processDescription: function (event, Configuration, CookieHelper, SMSGlobalService, SessionValidator,
}
}
}
}, {
description: "",
override: true,
dependencies: [
],
// Multiple rest calls that all return authz failures will cause this event to be called multiple times
return;
}
function sessionTimeout () {
/**
* User may have sensative information on-screen so we exit them from the system when thier session
* has expired with a message telling them as such
*/
return RouteTo.sessionExpired();
} else {
/**
* Admins are more likely to have work in-progress so they are presented with a login dialog to give
* them the opportunity to continue their work
*/
return RouteTo.loginDialog();
}
}
if (!loggedIn) {
// 401 no session
// 401 session timeout
return sessionTimeout();
// 403 route change
return RouteTo.forbiddenPage();
} else {
// 403 rest call
return RouteTo.forbiddenError();
}
}
}];
});