I have written a generic owin middleware using oauth-2.0. I have added reference of that in asp.net web forms.The middleware is returning user identity once the user is authenticated and am trying to access in RegisterExternalLogin.aspx.cs using
var loginInfo = Context.GetOwinContext().Authentication.GetExternalLoginInfo();
which is coming as null. Please share if anyone has pointer on this issue.