Just getting started with angularjs and I have a logincallback function that is used for external login. This function returns the returnUrl, closes the externallogin pop up, and redirects back to the main page.
function loginCallback(success, returnUrl) {
if (returnUrl) {
window.location.href = returnUrl;
} else {
$.ajax({
url: '@Url.Action("Index", "Home")',
success: function (result) {
$('/home/Login').html(result);
}
});
}
}
After identifying the returnUrl, I want to call my injected authService from my app.js file within the login callback so I can update my main page with updated boolean authentications.
var _authExternalProvider = function () {
_authentication.isAuth = true;
_authentication.userName = "";
};
I've been researching how to proceed with this but I'm still unsure. Any assistance would be greatly appreciated.