Class UserPoolIdentityProviderAmazonProps
Properties to initialize UserPoolAmazonIdentityProvider.
Inheritance
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public class UserPoolIdentityProviderAmazonProps : Object, IUserPoolIdentityProviderAmazonProps, IUserPoolIdentityProviderProps
Syntax (vb)
Public Class UserPoolIdentityProviderAmazonProps
Inherits Object
Implements IUserPoolIdentityProviderAmazonProps, IUserPoolIdentityProviderProps
Remarks
ExampleMetadata: infused
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);
Synopsis
Constructors
UserPoolIdentityProviderAmazonProps() |
Properties
AttributeMapping | Mapping attributes from the identity provider to standard and custom attributes of the user pool. |
ClientId | The client id recognized by 'Login with Amazon' APIs. |
ClientSecret | The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client. |
Scopes | The types of user profile data to obtain for the Amazon profile. |
UserPool | The user pool to which this construct provides identities. |
Constructors
UserPoolIdentityProviderAmazonProps()
public UserPoolIdentityProviderAmazonProps()
Properties
AttributeMapping
Mapping attributes from the identity provider to standard and custom attributes of the user pool.
public IAttributeMapping AttributeMapping { get; set; }
Property Value
Remarks
Default: - no attribute mapping
ClientId
The client id recognized by 'Login with Amazon' APIs.
public string ClientId { get; set; }
Property Value
System.String
Remarks
ClientSecret
The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client.
public string ClientSecret { get; set; }
Property Value
System.String
Remarks
Scopes
The types of user profile data to obtain for the Amazon profile.
public string[] Scopes { get; set; }
Property Value
System.String[]
Remarks
Default: [ profile ]
See: https://developer.amazon.com/docs/login-with-amazon/customer-profile.html
UserPool
The user pool to which this construct provides identities.
public IUserPool UserPool { get; set; }
Property Value