private async Task <List <Claim> > GetRoleClaimsAsync(IEnumerable <string> scopes, CancellationToken ct) { var roles = await _resourcesService.GetRolesByScopesAsync(scopes, ct); return(roles .Select(x => new Claim { Type = ClaimTypes.Role, Value = x }) .ToList()); }