Create Identity Provider
cognitoidentityprovider_create_identity_provider | R Documentation |
Adds a configuration and trust relationship between a third-party identity provider (IdP) and a user pool¶
Description¶
Adds a configuration and trust relationship between a third-party identity provider (IdP) and a user pool. Amazon Cognito accepts sign-in with third-party identity providers through managed login and OIDC relying-party libraries. For more information, see Third-party IdP sign-in.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Usage¶
cognitoidentityprovider_create_identity_provider(UserPoolId,
ProviderName, ProviderType, ProviderDetails, AttributeMapping,
IdpIdentifiers)
Arguments¶
UserPoolId |
[required] The Id of the user pool where you want to create an IdP. |
ProviderName |
[required] The name that you want to assign to the IdP. You can
pass the identity provider name in the |
ProviderType |
[required] The type of IdP that you want to add. Amazon Cognito supports OIDC, SAML 2.0, Login With Amazon, Sign In With Apple, Google, and Facebook IdPs. |
ProviderDetails |
[required] The scopes, URLs, and identifiers for your external
identity provider. The following examples describe the provider detail
keys for each IdP type. These values and their schema are subject to
change. Social IdP OpenID Connect (OIDC) Amazon Cognito accepts the following elements when it can't discover
endpoint URLs from Create or update request: Describe response: SAML Create or update request with Metadata URL: Create or update request with Metadata file: The value of Describe response: LoginWithAmazon Create or update request: Describe response: Create or update request: Describe response: SignInWithApple Create or update request: Describe response: Create or update request: Describe response: |
AttributeMapping |
A mapping of IdP attributes to standard and custom user pool attributes. Specify a user pool attribute as the key of the key-value pair, and the IdP attribute claim name as the value. |
IdpIdentifiers |
An array of IdP identifiers, for example |
Value¶
A list with the following syntax:
list(
IdentityProvider = list(
UserPoolId = "string",
ProviderName = "string",
ProviderType = "SAML"|"Facebook"|"Google"|"LoginWithAmazon"|"SignInWithApple"|"OIDC",
ProviderDetails = list(
"string"
),
AttributeMapping = list(
"string"
),
IdpIdentifiers = list(
"string"
),
LastModifiedDate = as.POSIXct(
"2015-01-01"
),
CreationDate = as.POSIXct(
"2015-01-01"
)
)
)
Request syntax¶
svc$create_identity_provider(
UserPoolId = "string",
ProviderName = "string",
ProviderType = "SAML"|"Facebook"|"Google"|"LoginWithAmazon"|"SignInWithApple"|"OIDC",
ProviderDetails = list(
"string"
),
AttributeMapping = list(
"string"
),
IdpIdentifiers = list(
"string"
)
)