View source: R/cognitoidentityprovider_operations.R
cognitoidentityprovider_create_identity_provider | R Documentation |
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.
See https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_identity_provider/ for full documentation.
cognitoidentityprovider_create_identity_provider(
UserPoolId,
ProviderName,
ProviderType,
ProviderDetails,
AttributeMapping = NULL,
IdpIdentifiers = NULL
)
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.