Skip to content

Instantly share code, notes, and snippets.

@HamidMosalla
Created December 6, 2017 16:01
Show Gist options
  • Save HamidMosalla/c95f9729fcae1a135704691cc951c4fd to your computer and use it in GitHub Desktop.
Save HamidMosalla/c95f9729fcae1a135704691cc951c4fd to your computer and use it in GitHub Desktop.
public class ProfileService : IProfileService
{
private readonly UserManager<ApplicationUser> _userManager;
public ProfileService(UserManager<ApplicationUser> userManager)
{
_userManager = userManager;
}
public Task GetProfileDataAsync(ProfileDataRequestContext context)
{
context.IssuedClaims.AddRange(context.Subject.Claims);
return Task.FromResult(0);
}
public Task IsActiveAsync(IsActiveContext context)
{
return Task.FromResult(0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment