Пример #1
0
        public static async Task <ClaimsIdentity> GetIdentityFromExternalSignIn(this IOwinContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            return(await context.GetIdentityFrom(Constants.ExternalAuthenticationType));
        }
Пример #2
0
 internal static async Task <ClaimsIdentity> GetIdentityFromExternalSignIn(this IOwinContext context)
 {
     return(await context.GetIdentityFrom(Constants.ExternalAuthenticationType));
 }