Created
December 6, 2017 16:01
-
-
Save HamidMosalla/c95f9729fcae1a135704691cc951c4fd to your computer and use it in GitHub Desktop.
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 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