Interface IUserPoolIdentityProviderAmazonProps
Properties to initialize UserPoolAmazonIdentityProvider.
Inherited Members
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public interface IUserPoolIdentityProviderAmazonProps : IUserPoolIdentityProviderProps
Syntax (vb)
Public Interface IUserPoolIdentityProviderAmazonProps
Inherits 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
Properties
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. |
Properties
ClientId
The client id recognized by 'Login with Amazon' APIs.
string ClientId { get; }
Property Value
System.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
System.String
Remarks
Scopes
The types of user profile data to obtain for the Amazon profile.
virtual string[] Scopes { get; }
Property Value
System.String[]
Remarks
Default: [ profile ]
See: https://developer.amazon.com/docs/login-with-amazon/customer-profile.html