Пример #1
0
        public async Task GetClientProviderAsync(string realm, string clientId)
        {
            var clients = await ClientsClient.GetClientsAsync(realm);

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

            if (clientsId != null)
            {
                var providerInstances = await IdentityProvidersClient.GetIdentityProviderInstancesAsync(realm);

                string providerInstanceId = providerInstances.FirstOrDefault()?.ProviderId;
                if (providerInstanceId != null)
                {
                    string result = await ClientsClient.GetClientProviderAsync(realm, clientsId, providerInstanceId);

                    Assert.NotNull(result);
                }
            }
        }