Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Member 12517408 16-May-16 6:29am    
any update from anyone???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900