public async Task GetRealmRolesForClientScopeAsync(string realm) { var clientScopes = await ClientScopesClient.GetClientScopesAsync(realm); string clientScopeId = clientScopes.FirstOrDefault()?.Id; if (clientScopeId != null) { var result = await ScopeMappingsClient.GetRealmRolesForClientScopeAsync(realm, clientScopeId); Assert.NotNull(result); } }
public async Task GetProtocolMappersAsync(string realm) { var clientScopes = await ClientScopesClient.GetClientScopesAsync(realm); string clientScopeId = clientScopes.FirstOrDefault(x => x.ProtocolMappers != null && x.ProtocolMappers.Any())?.Id; if (clientScopeId != null) { var result = await ProtocolMappersClient.GetProtocolMappersAsync(realm, clientScopeId); Assert.NotNull(result); } }
public async Task GetClientScopesAsync(string realm) { var result = await ClientScopesClient.GetClientScopesAsync(realm); Assert.NotNull(result); }