Auth0 Home Blog Docs

How to implement auth0 with social login in MVC

jwt
auth0

#1

I am trying to implement Auth0 with MVC but when i am trying to External Login method after that i redirected to “ChallengeResult” class there is one method “ExecuteResult” but in this method my page is not redirecting to “Google Authentication Page”
I have code like :-
public override void ExecuteResult(ControllerContext context)
{
var properties = new AuthenticationProperties() { RedirectUri = RedirectUri };
if (UserId != null)
{
properties.Dictionary[“XsrfId”] = UserId;
}

        context.HttpContext.GetOwinContext().Authentication.Challenge(properties, LoginProvider);
    }

please suggest me how to implement this or explain me step by step process of Auth0

Thank you in advance