1
Answer

GetExternalLoginInfoAsync error method

Photo of Guest User

Guest User

5y
865
1
Hi Team
 
I have this method and its running an error, i did have an assembly to it
  1. using Microsoft.Owin.Security;  
  2. [AllowAnonymous]  
  3. public async Task ExternalLoginCallback(string returnUrl)  
  4. {  
  5. var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync(); // IAuthenticationManager does not contain of this method, no accessible method for it  
  6. if (loginInfo == null)  
  7. {  
  8. return RedirectToAction("Login");  
  9. }  
  10. private IAuthenticationManager AuthenticationManager  
  11. {  
  12. get  
  13. {  
  14. return HttpContext.GetOwinContext().Authentication;  
  15. }  
  16. }  
How can i fix this error mates, please help its on my Controller.

Answers (1)