Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have this method GetExternalLoginInfoAsync error when i am assigning with AuthenticationManager its not accessible

What I have tried:

C#
<pre>  [AllowAnonymous]
        public async Task<ActionResult> ExternalLoginCallback(string returnUrl)
        {
            var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync();
            if (loginInfo == null)
            {
                return RedirectToAction("Login");
            }


private IAuthenticationManager AuthenticationManager
{
    get
    {
        return HttpContext.GetOwinContext().Authentication;
    }
}
Posted
Updated 3-Feb-20 3:09am
Comments
ZurdoDev 3-Feb-20 9:09am    
What exactly is the error message?
gcogco10 3-Feb-20 9:38am    
IAuthentication Manager does not contain this method, no accessible method for it. the on my nuget ran this command Install-Package Microsoft.AspNet.Identity.Owin -Version 2.2.3. But i dont think it fixed it. Now im running some load exception assembly.

1 solution

Hi Mates

I was missing some assembly that has this object name. On my Nuget command on Visual Studio ran this to get it working within my Controller class.

Install-Package Microsoft.AspNet.Identity.Owin -Version 2.2.3
 
Share this answer
 

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