// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Security.Claims; using System.Threading; using System.Threading.Tasks; namespace Microsoft.AspNet.Identity { /// /// Interface for creating a ClaimsIdentity from an user /// /// public interface IClaimsIdentityFactory where TUser : class { /// /// Create a ClaimsIdentity from an user using a UserManager /// /// /// /// /// /// Task CreateAsync(UserManager manager, TUser user, string authenticationType, CancellationToken cancellationToken = default(CancellationToken)); } }