Interface IUserPoolIdentityProviderAmazonProps
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
Remarks
ClientSecret
The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client.
string ClientSecret { get; }
Property Value
Remarks
Scopes
The types of user profile data to obtain for the Amazon profile.
string[]? Scopes { get; }
Property Value
- string[]
Remarks
Default: [ profile ]
See: https://developer.amazon.com/docs/login-with-amazon/customer-profile.html