You must be logged in to view saved presets
This template creates the OIDC identity provider 'YourOIDCProviderName' in the referenced user pool. It specifies the user pool ID, provider name, provider details including client ID, client secret, attributes request method, OIDC issuer, and authorize scopes, provider type, attribute mapping, and IDP identifiers.
AWSTemplateFormatVersion: '2010-09-09'
Description: OIDC Identity Provider for a Cognito User Pool
Parameters:
UserPoolId:
Type: String
Resources:
UserPoolIdentityProvider:
Type: 'AWS::Cognito::UserPoolIdentityProvider'
Properties:
UserPoolId:
Ref: "UserPoolId"
ProviderName: "YourOIDCProviderName"
ProviderDetails:
client_id: "YourOIDCClientId"
client_secret: "YourOIDCClientSecret"
attributes_request_method: "GET"
oidc_issuer: "YourOIDCIssuerURL"
authorize_scopes: "email profile openid"
ProviderType: "OIDC"
AttributeMapping:
email: "email"
IdpIdentifiers:
- "IdpIdentifier"