Represents an identity provider that integrates with OpenID Connect.
import { UserPoolIdentityProviderOidc } from 'aws-cdk-lib/aws-cognito';Or use the module namespace:
import * as cognito from 'aws-cdk-lib/aws-cognito';
// cognito.UserPoolIdentityProviderOidcConfiguration passed to the constructor as UserPoolIdentityProviderOidcProps.
clientIdRequiredstringThe client id.
clientSecretRequiredstringThe client secret.
issuerUrlRequiredstringIssuer URL.
attributeRequestMethodOptionalOidcAttributeRequestMethodThe method to use to request attributes.
Default: OidcAttributeRequestMethod.GET
endpointsOptionalOidcEndpointsOpenID connect endpoints.
Default: - auto discovered with issuer URL
identifiersOptionalstring[]Identifiers. Identifiers can be used to redirect users to the correct IdP in multitenant apps.
Default: - no identifiers used
nameOptionalstringThe name of the provider.
Default: - the unique ID of the construct
scopesOptionalstring[]The OAuth 2.0 scopes that you will request from OpenID Connect. Scopes are groups of OpenID Connect user attributes to exchange with your app.
Default: ['openid']
UserPoolIdentityProviderPropsuserPoolRequiredinherited from UserPoolIdentityProviderPropsIUserPoolThe user pool to which this construct provides identities.
attributeMappingOptionalinherited from UserPoolIdentityProviderPropsAttributeMappingMapping attributes from the identity provider to standard and custom attributes of the user pool.
Default: - no attribute mapping
Everything you need to know about Amazon Cognito on one page. HD quality, print-friendly.
Download Free Infographicaws-cognito