Beispiel #1
0
        private string Create(string url, string[] thumbprintList, string[] audiences, ILambdaContext context)
        {
            var client = new AmazonIdentityManagementServiceClient();

            var request = new CreateOpenIDConnectProviderRequest();

            request.Url            = url;// "test.accounts.google.com";
            request.ThumbprintList = new List <string>(thumbprintList);

            var result = client.CreateOpenIDConnectProviderAsync(request).Result;

            var providerArn = result.OpenIDConnectProviderArn;

            foreach (var audience in audiences)
            {
                AddAudience(providerArn, audience, context);
            }

            return(providerArn);
        }