RESTLoginHelper.js revision c7782a3a12f6c0555141ca8a0ffab05b5d8ba67f
/**
* 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-2015 ForgeRock AS.
*/
/*global define */
"jquery",
"underscore",
"UserDelegate",
], function ($, _, AbstractConfigurationAware, AuthNDelegate, CookieHelper, Configuration, Constants, Router,
var obj = new AbstractConfigurationAware();
var self = this;
// populate the current set of requirements with the values we have from params
// used in auto login from self registration
} else {
}
});
}
});
}, errorCallback);
// re-render login form for next set of required inputs
} else {
// TODO: If using a module chain with autologin the user is
// currently routed to the first login screen.
var href = "#login",
if (realm) {
}
}
}
},
function (failedStage, errorMsg) {
if (failedStage > 1) {
// re-render login form, sending back to the start of the process.
}
});
});
};
try {
// keep track of the current realm as a future default value, following logout:
errorCallback("loggedIn");
} else {
}
}, function () {
// Try to remove any cookie that is lingering, as it is apparently no longer valid
} catch (e) {
}
};
obj.getLoginUrlParams = function () {
};
context = "";
}
}, function () {
});
} else {
}
}
}
}
return promise;
};
var paramsToSave = ["arg","authIndexType","authIndexValue","goto","gotoOnFail","ForceAuth","locale"],
filteredParams = {};
_.each(paramsToSave, function (p) {
if (params[p]) {
filteredParams[p] = params[p];
}
});
};
return true;
}, obj.removeSessionCookie);
} else {
if (errorCallback) {
}
}
}, function () {
if (errorCallback) {
}
});
};
obj.removeSession = function () {
});
}
});
};
obj.removeSessionCookie = function () {
});
} else {
}
};
return obj;
});