Example #1
0
        /// <summary>
        /// Gets the client secret for Cognito App Client.
        /// </summary>
        /// <param name="cognitoClientSecretData">The Cognito Client Secret Data.</param>
        /// <returns>The Client Secret.</returns>
        public async Task <string> GetClientSecretForAppClientAsync(CognitoClient cognitoClientSecretData)
        {
            var request = new DescribeUserPoolClientRequest
            {
                ClientId   = cognitoClientSecretData.ClientId,
                UserPoolId = cognitoClientSecretData.UserPoolId
            };
            var response = await this._amazonCognitoIdentityProvider.DescribeUserPoolClientAsync(request).ConfigureAwait(false);

            return(response.UserPoolClient.ClientSecret);
        }
 public void DescribeUserPoolClientAsync(DescribeUserPoolClientRequest request, AmazonServiceCallback <DescribeUserPoolClientRequest, DescribeUserPoolClientResponse> callback, AsyncOptions options = null)
 {
     throw new System.NotImplementedException();
 }