Interface UserPoolIdentityProviderOidcProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,UserPoolIdentityProviderProps
- All Known Implementing Classes:
UserPoolIdentityProviderOidcProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:06.442Z")
@Stability(Stable)
public interface UserPoolIdentityProviderOidcProps
extends software.amazon.jsii.JsiiSerializable, UserPoolIdentityProviderProps
Properties to initialize UserPoolIdentityProviderOidc.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cognito.*; ProviderAttribute providerAttribute; UserPool userPool; UserPoolIdentityProviderOidcProps userPoolIdentityProviderOidcProps = UserPoolIdentityProviderOidcProps.builder() .clientId("clientId") .clientSecret("clientSecret") .issuerUrl("issuerUrl") .userPool(userPool) // the properties below are optional .attributeMapping(AttributeMapping.builder() .address(providerAttribute) .birthdate(providerAttribute) .custom(Map.of( "customKey", providerAttribute)) .email(providerAttribute) .emailVerified(providerAttribute) .familyName(providerAttribute) .fullname(providerAttribute) .gender(providerAttribute) .givenName(providerAttribute) .lastUpdateTime(providerAttribute) .locale(providerAttribute) .middleName(providerAttribute) .nickname(providerAttribute) .phoneNumber(providerAttribute) .preferredUsername(providerAttribute) .profilePage(providerAttribute) .profilePicture(providerAttribute) .timezone(providerAttribute) .website(providerAttribute) .build()) .attributeRequestMethod(OidcAttributeRequestMethod.GET) .endpoints(OidcEndpoints.builder() .authorization("authorization") .jwksUri("jwksUri") .token("token") .userInfo("userInfo") .build()) .identifiers(List.of("identifiers")) .name("name") .scopes(List.of("scopes")) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forUserPoolIdentityProviderOidcProps
static final class
An implementation forUserPoolIdentityProviderOidcProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default OidcAttributeRequestMethod
The method to use to request attributes.The client id.The client secret.default OidcEndpoints
OpenID connect endpoints.Identifiers.Issuer URL.default String
getName()
The name of the provider.The OAuth 2.0 scopes that you will request from OpenID Connect.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.cognito.UserPoolIdentityProviderProps
getAttributeMapping, getUserPool
-
Method Details
-
getClientId
The client id. -
getClientSecret
The client secret. -
getIssuerUrl
Issuer URL. -
getAttributeRequestMethod
The method to use to request attributes.Default: OidcAttributeRequestMethod.GET
-
getEndpoints
OpenID connect endpoints.Default: - auto discovered with issuer URL
-
getIdentifiers
Identifiers.Identifiers can be used to redirect users to the correct IdP in multitenant apps.
Default: - no identifiers used
-
getName
The name of the provider.Default: - the unique ID of the construct
-
getScopes
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']
-
builder
-