Skip to content
v2.275.0

IdentityPoolTwitterLoginProvider Struct ​

Login Provider for identity federation using Twitter credentials.

Example ​

ts
new IdentityPool(this, 'myidentitypool', {
  identityPoolName: 'myidentitypool',
  authenticationProviders: {
    amazon: {
      appId: 'amzn1.application.12312k3j234j13rjiwuenf',
    },
    facebook: {
      appId: '1234567890123',
    },
    google: {
      clientId: '12345678012.apps.googleusercontent.com',
    },
    apple: {
      servicesId: 'com.myappleapp.auth',
    },
    twitter: {
      consumerKey: 'my-twitter-id',
      consumerSecret: 'my-twitter-secret',
    },
  },
});

Properties ​

consumerKeystringconsumer_keystrconsumerKeyStringConsumerKeystringConsumerKey*stringrequired#
Consumer key for Twitter identity federation.
consumerSecretstringconsumer_secretstrconsumerSecretStringConsumerSecretstringConsumerSecret*stringrequired#
Consumer secret for identity federation.