AMRoutesConfig.js revision 862a31119ccc38b9e7836a2366c6040ec8b02591
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major/**
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major *
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * Copyright 2011-2015 ForgeRock AS.
1bad1b69167cb45dd69ec6863eedcaf795df19d7Peter Major *
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * The contents of this file are subject to the terms
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * of the Common Development and Distribution License
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * (the License). You may not use this file except in
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * compliance with the License.
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major *
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * You can obtain a copy of the License at
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * http://forgerock.org/license/CDDLv1.0.html
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * See the License for the specific language governing
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * permission and limitations under the License.
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major *
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * When distributing Covered Code, include this CDDL
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * Header Notice in each file and include the License file
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * at http://forgerock.org/license/CDDLv1.0.html
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * If applicable, add the following below the CDDL Header,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * with the fields enclosed by brackets [] replaced by
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * your own identifying information:
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * "Portions Copyrighted [year] [name of copyright owner]"
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major */
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major/**
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * "Portions Copyrighted 2011-2013 ForgeRock Inc"
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major */
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major/*global define*/
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major/*jslint regexp:false */
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major/**
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major * @author jfeasel
1bad1b69167cb45dd69ec6863eedcaf795df19d7Peter Major */
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Majordefine("config/routes/AMRoutesConfig", [
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major], function() {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major var obj = {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "forgotPassword": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/user/profile/ForgotPasswordView",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: /forgotPassword(\/[^\&]*)(\&.+)?/,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major pattern: "forgotPassword??",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major forceUpdate: true,
d7acdbdfb47e51f588dbf7bafc4706000a44aca5Jonathan Scudder defaults: ["/",""],
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major argumentNames: ["realm", "additionalParameters"]
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "forgotPasswordChange": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/user/profile/ForgotPasswordView",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: /forgotPasswordChange(\/[^\&]*)(\&.+)?/,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major pattern: "forgotPasswordChange??",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major forceUpdate: true,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major defaults: ["/",""],
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major argumentNames: ["realm", "additionalParameters"]
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "continueSelfRegister": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/user/profile/RegisterView",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: /continueRegister(\/[^\&]*)(\&.+)?/,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major pattern: "continueRegister??",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major forceUpdate: true,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major defaults: ["/",""],
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major argumentNames: ["realm", "additionalParameters"]
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "confirmLogin": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/user/login/RESTConfirmLoginView",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major role: "ui-user",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: "confirmLogin/" ,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major forceUpdate: true
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "dashboard": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/dashboard/DashboardView",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major role: "ui-user",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: "dashboard/",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major forceUpdate: true
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "oauth2Tokens": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/user/oauth2/TokensView",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major role: "ui-user",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: "oauth2/tokens",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major forceUpdate: true
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "loggedOut" : {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/user/logout/RESTLogoutView",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: /loggedOut([^\&]+)?(&.+)?/,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major pattern: "loggedOut??",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major defaults: ["/",""],
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major argumentNames: ["realm","additionalParameters"]
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "uma": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/uma/views/resource/ListResource",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: /^uma/,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major pattern: "uma/resources/",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major role: "ui-user"
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "dialogShare": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major base: "editResource",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major dialog: "org/forgerock/openam/ui/uma/views/share/DialogShare",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major role: "ui-user",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: /^uma\/resources\/$/,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major pattern: "uma/resources/"
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "editResource": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/uma/views/resource/EditResource",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major url: /^uma\/resources\/(.*?)(?:\/){0,1}$/,
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major role: "ui-user",
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major pattern: "uma/resources/?"
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major },
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major "listResource": {
bb3c4ce56e9a932b502869e499389b6c467e1f9ePeter Major view: "org/forgerock/openam/ui/uma/views/resource/ListResource",
url: /^uma\/resources\/$/,
defaults: [""],
role: "ui-user",
pattern: "uma/resources/"
},/*
"listSubject": {
view: "org/forgerock/openam/ui/uma/views/subject/SubjectListView",
url: /^uma\/resources\/(.+?)\/(users)\//,
role: "ui-user",
pattern: "uma/resources/?/users/"
},*/
"baseShare": {
view: "org/forgerock/openam/ui/uma/views/share/BaseShare",
url: /^uma\/share\/(.*?)(?:\/){0,1}$/,
pattern: "uma/share/?",
defaults: [""],
role: "ui-user"
},
"listHistory": {
view: "org/forgerock/openam/ui/uma/views/history/ListHistory",
role: "ui-user",
url: /^uma\/history\/$/,
pattern: "uma/history/"
},
"listSubject": {
view: "org/forgerock/openam/ui/uma/views/subjects/ListSubject",
role: "ui-user",
url: /^uma\/users\/$/,
pattern: "uma/users/"
},
"listApplication": {
view: "org/forgerock/openam/ui/uma/views/application/ListApplication",
role: "ui-user",
defaults: [""],
url: /^uma\/apps\/(.*?)(?:\/){0,1}$/,
pattern: "uma/apps/?"
}
};
return obj;
});