I have a problem with OWIN
Authentication. I always receive null value from GetExternalLoginInfoAsync()
when I trying log in using Facebook or Google.
BUT there is some mystical case.. When I open Fiddler. I get correct data using this method.
I can't get the reason
var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync();
Thanks in advance!!
You have to clear the Session before ExternalLoginCallback.
I have solved my problem by adding this code
in the class:
It fixed my problem with returning
NULL
.Notice: don't use fiddler when logging with twitter authorization. You will receive error.