@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.647Z") @Stability(value=Stable) public interface UserPoolIdentityProviderOidcProps extends software.amazon.jsii.JsiiSerializable, UserPoolIdentityProviderProps
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)
.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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserPoolIdentityProviderOidcProps.Builder
A builder for
UserPoolIdentityProviderOidcProps |
static class |
UserPoolIdentityProviderOidcProps.Jsii$Proxy
An implementation for
UserPoolIdentityProviderOidcProps |
| Modifier and Type | Method and Description |
|---|---|
static UserPoolIdentityProviderOidcProps.Builder |
builder() |
default OidcAttributeRequestMethod |
getAttributeRequestMethod()
The method to use to request attributes.
|
String |
getClientId()
The client id.
|
String |
getClientSecret()
The client secret.
|
default OidcEndpoints |
getEndpoints()
OpenID connect endpoints.
|
default List<String> |
getIdentifiers()
Identifiers.
|
String |
getIssuerUrl()
Issuer URL.
|
default String |
getName()
The name of the provider.
|
default List<String> |
getScopes()
The OAuth 2.0 scopes that you will request from OpenID Connect.
|
getAttributeMapping, getUserPool@Stability(value=Stable) @NotNull String getClientId()
@Stability(value=Stable) @NotNull String getClientSecret()
@Stability(value=Stable) @NotNull String getIssuerUrl()
@Stability(value=Stable) @Nullable default OidcAttributeRequestMethod getAttributeRequestMethod()
Default: OidcAttributeRequestMethod.GET
@Stability(value=Stable) @Nullable default OidcEndpoints getEndpoints()
Default: - auto discovered with issuer URL
@Stability(value=Stable) @Nullable default List<String> getIdentifiers()
Identifiers can be used to redirect users to the correct IdP in multitenant apps.
Default: - no identifiers used
@Stability(value=Stable) @Nullable default String getName()
Default: - the unique ID of the construct
@Stability(value=Stable) @Nullable default List<String> getScopes()
Default: ['openid']
@Stability(value=Stable) static UserPoolIdentityProviderOidcProps.Builder builder()
builder in interface UserPoolIdentityProviderPropsUserPoolIdentityProviderOidcProps.Builder of UserPoolIdentityProviderOidcPropsCopyright © 2022. All rights reserved.