コード例 #1
0
        public async Task GetClientNotGrantedScopeMappingsAsync(string realm, string clientId)
        {
            var clients = await ClientsClient.GetClientsAsync(realm);

            string clientsId = clients.FirstOrDefault(x => x.ClientId == clientId)?.Id;

            if (clientsId != null)
            {
                var result = await ClientsClient.GetClientNotGrantedScopeMappingsAsync(realm, clientsId, realm);

                Assert.NotNull(result);
                result = await ClientsClient.GetClientNotGrantedScopeMappingsAsync(realm, clientsId, clientsId);

                Assert.NotNull(result);
            }
        }