HI,
We have oAuth login for Facebook and google on our login page and it is defined in the application with all the necessary settings for callback and other functions with Challenge result in the External Login function.
My method calls this function
public ActionResult ExternalLogin(string provider, string returnUrl, string ctype, string tId, string ianaTimeZone, string latitude, string longitude) {
Session.RemoveAll();
// Request a redirect to the external login provider
return new ChallengeResult(provider,
Url.Action("ExternalLoginCallback", "Account", new {
ReturnUrl = returnUrl,
ctype,
tid = tId,
ianaTimeZone = ianaTimeZone,
latitude = latitude,
longitude = longitude
}));
}
Now with new requirement we want to shift this login button on the website that is created in Wordpress, we want to keep the code same and just redirect user from word press to the application method with required paramenters.
But we are getting 401 error when calling ExternalLogin method from fiddler or ajax in word press.
Please let me know the solution to this issue.
Thanks in advance for Quick response as this is show stopper for us.
What I have tried:
tried calling ajax from wordpress website on button click