Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
        public async Task GetClientScopesAsync(string realm)
        {
            var result = await ClientScopesClient.GetClientScopesAsync(realm);

            Assert.NotNull(result);
        }