I'm in the middle of an implementation of Thinktecture IdentityServer and am adding the capacity for mobile apps to provide natively obtained Facebook access tokens to the server, which will respond by locally authenticating the user.
IdentityServer uses Microsoft's Owin middleware to do the Facebook authentication. This is how it gets added to the app:
var fb = new FacebookAuthenticationOptions
{
AuthenticationType = "Facebook",
SignInAsAuthenticationType = signInAsType,
AppId = "...",
AppSecret = "..."
};
What I want to do, off in another class, is call this:
await [FacebookAuthenticationProvider instance].Authenticated(context);
But I can't figure out how to get the FacebookAuthenticationProvider
instance that I need. Or is that even necessary? Can I just new
one up?