Table of Contents

Interface IUserPoolIdentityProviderAmazonProps

Namespace
Amazon.CDK.AWS.Cognito
Assembly
Amazon.CDK.AWS.Cognito.dll

Properties to initialize UserPoolAmazonIdentityProvider.

public interface IUserPoolIdentityProviderAmazonProps : IUserPoolIdentityProviderProps
Inherited Members

Examples

var pool = new UserPool(this, "Pool");
            var provider = new UserPoolIdentityProviderAmazon(this, "Amazon", new UserPoolIdentityProviderAmazonProps {
                UserPool = pool,
                ClientId = "amzn-client-id",
                ClientSecret = "amzn-client-secret"
            });

            var client = pool.AddClient("app-client", new UserPoolClientOptions {
                // ...
                SupportedIdentityProviders = new [] { UserPoolClientIdentityProvider.AMAZON }
            });

            client.Node.AddDependency(provider);

Remarks

ExampleMetadata: infused

Properties

ClientId

The client id recognized by 'Login with Amazon' APIs.

string ClientId { get; }

Property Value

string

Remarks

ClientSecret

The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client.

string ClientSecret { get; }

Property Value

string

Remarks

Scopes

The types of user profile data to obtain for the Amazon profile.

string[]? Scopes { get; }

Property Value

string[]

Remarks