IdentityPoolAppleLoginProvider Struct
Login Provider for identity federation using Apple credentials.
| Source | aws-cognito-identitypool/lib/identitypool.ts |
|---|---|
| Type last changed |
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',
},
},
});
python
from aws_cdk.aws_cognito_identitypool import IdentityPoolAuthenticationProviders, IdentityPoolAmazonLoginProvider, IdentityPoolFacebookLoginProvider, IdentityPoolGoogleLoginProvider, IdentityPoolAppleLoginProvider, IdentityPoolTwitterLoginProvider
IdentityPool(self, "myidentitypool",
identity_pool_name="myidentitypool",
authentication_providers=IdentityPoolAuthenticationProviders(
amazon=IdentityPoolAmazonLoginProvider(
app_id="amzn1.application.12312k3j234j13rjiwuenf"
),
facebook=IdentityPoolFacebookLoginProvider(
app_id="1234567890123"
),
google=IdentityPoolGoogleLoginProvider(
client_id="12345678012.apps.googleusercontent.com"
),
apple=IdentityPoolAppleLoginProvider(
services_id="com.myappleapp.auth"
),
twitter=IdentityPoolTwitterLoginProvider(
consumer_key="my-twitter-id",
consumer_secret="my-twitter-secret"
)
)
)
java
IdentityPool.Builder.create(this, "myidentitypool")
.identityPoolName("myidentitypool")
.authenticationProviders(IdentityPoolAuthenticationProviders.builder()
.amazon(IdentityPoolAmazonLoginProvider.builder()
.appId("amzn1.application.12312k3j234j13rjiwuenf")
.build())
.facebook(IdentityPoolFacebookLoginProvider.builder()
.appId("1234567890123")
.build())
.google(IdentityPoolGoogleLoginProvider.builder()
.clientId("12345678012.apps.googleusercontent.com")
.build())
.apple(IdentityPoolAppleLoginProvider.builder()
.servicesId("com.myappleapp.auth")
.build())
.twitter(IdentityPoolTwitterLoginProvider.builder()
.consumerKey("my-twitter-id")
.consumerSecret("my-twitter-secret")
.build())
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new IdentityPool(this, "myidentitypool", new IdentityPoolProps {
IdentityPoolName = "myidentitypool",
AuthenticationProviders = new IdentityPoolAuthenticationProviders {
Amazon = new IdentityPoolAmazonLoginProvider {
AppId = "amzn1.application.12312k3j234j13rjiwuenf"
},
Facebook = new IdentityPoolFacebookLoginProvider {
AppId = "1234567890123"
},
Google = new IdentityPoolGoogleLoginProvider {
ClientId = "12345678012.apps.googleusercontent.com"
},
Apple = new IdentityPoolAppleLoginProvider {
ServicesId = "com.myappleapp.auth"
},
Twitter = new IdentityPoolTwitterLoginProvider {
ConsumerKey = "my-twitter-id",
ConsumerSecret = "my-twitter-secret"
}
}
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
awscdk.NewIdentityPool(this, jsii.String("myidentitypool"), &IdentityPoolProps{
IdentityPoolName: jsii.String("myidentitypool"),
AuthenticationProviders: &IdentityPoolAuthenticationProviders{
Amazon: &IdentityPoolAmazonLoginProvider{
AppId: jsii.String("amzn1.application.12312k3j234j13rjiwuenf"),
},
Facebook: &IdentityPoolFacebookLoginProvider{
AppId: jsii.String("1234567890123"),
},
Google: &IdentityPoolGoogleLoginProvider{
ClientId: jsii.String("12345678012.apps.googleusercontent.com"),
},
Apple: &IdentityPoolAppleLoginProvider{
ServicesId: jsii.String("com.myappleapp.auth"),
},
Twitter: &IdentityPoolTwitterLoginProvider{
ConsumerKey: jsii.String("my-twitter-id"),
ConsumerSecret: jsii.String("my-twitter-secret"),
},
},
})
Properties
Services ID for Apple identity federation.