public Task GetProfileDataAsync(ProfileDataRequestContext context) { try { var subjectId = context.Subject.GetSubjectId(); var user = DbContext.GetUserByID(subjectId); context.IssuedClaims = DbContext .GetUserClaimsByUserID(user.UserID) .Select(item => new Claim(item.ClaimType, item.ClaimValue)) .ToList(); } catch { // todo: Log exception } return(Task.FromResult(0)); }