Skip to content

Commit abea313

Browse files
Merge pull request #52 from endrit-gjocaj/feat/add-briefRepresentation-as-queryParam
added briefRepresentation in query params to show or not the role attributes
2 parents 74ac691 + 80eefbf commit abea313

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Keycloak.Net.Core/Roles/KeycloakClient.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,15 @@ public async Task<IEnumerable<Role>> GetRolesAsync(string realm,
195195
int? first = null,
196196
int? max = null,
197197
string? search = null,
198+
bool? briefRepresentation = null,
198199
CancellationToken cancellationToken = default)
199200
{
200201
var queryParams = new Dictionary<string, object?>
201202
{
202203
[nameof(first)] = first,
203204
[nameof(max)] = max,
204-
[nameof(search)] = search
205+
[nameof(search)] = search,
206+
[nameof(briefRepresentation)] = briefRepresentation
205207
};
206208

207209
return await GetBaseUrl(realm).AppendPathSegment($"/admin/realms/{realm}/roles")

0 commit comments

Comments
 (0)