-
-
Save trailmax/3d1c8fc56a04479d4ca3b8c226e07eb3 to your computer and use it in GitHub Desktop.
AuthenticationFactory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AuthenticationFactory | |
{ | |
public IAuthenticationManager GetManager() | |
{ | |
return HttpContext.Current.Request.GetOwinContext().Authentication; | |
} | |
} | |
// register it like this | |
container.RegisterType<AuthenticationFactory>(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment