Closed eramosr16 closed 4 years ago
Sorry I should create a PR for this but I can't at this moment, just create a method under RealmsAdmin/KeycloakClient.cs:
public async Task<IEnumerable<Realm>> GetRealmsAsync(string realm) => await GetBaseUrl(realm) .AppendPathSegment($"/admin/realms") .GetJsonAsync<IEnumerable<Realm>>() .ConfigureAwait(false);
Test method:
[Theory] [InlineData("master")] public async Task GetRealmsAsync(string realm) { var result = await _client.GetRealmsAsync(realm); Assert.NotNull(result); }
It's in release 1.0.13
Sorry I should create a PR for this but I can't at this moment, just create a method under RealmsAdmin/KeycloakClient.cs:
public async Task<IEnumerable<Realm>> GetRealmsAsync(string realm) => await GetBaseUrl(realm) .AppendPathSegment($"/admin/realms") .GetJsonAsync<IEnumerable<Realm>>() .ConfigureAwait(false);
Test method:
[Theory] [InlineData("master")] public async Task GetRealmsAsync(string realm) { var result = await _client.GetRealmsAsync(realm); Assert.NotNull(result); }