@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.685Z") @Stability(value=Stable) public interface UserPoolClientOptions extends software.amazon.jsii.JsiiSerializable
Example:
UserPool pool = new UserPool(this, "Pool");
pool.addClient("app-client", UserPoolClientOptions.builder()
.oAuth(OAuthSettings.builder()
.flows(OAuthFlows.builder()
.authorizationCodeGrant(true)
.build())
.scopes(List.of(OAuthScope.OPENID))
.callbackUrls(List.of("https://my-app-domain.com/welcome"))
.logoutUrls(List.of("https://my-app-domain.com/signin"))
.build())
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserPoolClientOptions.Builder
A builder for
UserPoolClientOptions |
static class |
UserPoolClientOptions.Jsii$Proxy
An implementation for
UserPoolClientOptions |
| Modifier and Type | Method and Description |
|---|---|
static UserPoolClientOptions.Builder |
builder() |
default Duration |
getAccessTokenValidity()
Validity of the access token.
|
default AuthFlow |
getAuthFlows()
The set of OAuth authentication flows to enable on the client.
|
default Boolean |
getDisableOAuth()
Turns off all OAuth interactions for this client.
|
default Boolean |
getEnableTokenRevocation()
Enable token revocation for this client.
|
default Boolean |
getGenerateSecret()
Whether to generate a client secret.
|
default Duration |
getIdTokenValidity()
Validity of the ID token.
|
default OAuthSettings |
getOAuth()
OAuth settings for this client to interact with the app.
|
default Boolean |
getPreventUserExistenceErrors()
Whether Cognito returns a UserNotFoundException exception when the user does not exist in the user pool (false), or whether it returns another type of error that doesn't reveal the user's absence.
|
default ClientAttributes |
getReadAttributes()
The set of attributes this client will be able to read.
|
default Duration |
getRefreshTokenValidity()
Validity of the refresh token.
|
default List<UserPoolClientIdentityProvider> |
getSupportedIdentityProviders()
The list of identity providers that users should be able to use to sign in using this client.
|
default String |
getUserPoolClientName()
Name of the application client.
|
default ClientAttributes |
getWriteAttributes()
The set of attributes this client will be able to write.
|
@Stability(value=Stable) @Nullable default Duration getAccessTokenValidity()
Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity.
Default: Duration.minutes(60)
@Stability(value=Stable) @Nullable default AuthFlow getAuthFlows()
Default: - all auth flows disabled
@Stability(value=Stable) @Nullable default Boolean getDisableOAuth()
Default: false
@Stability(value=Stable) @Nullable default Boolean getEnableTokenRevocation()
Default: true for new user pool clients
@Stability(value=Stable) @Nullable default Boolean getGenerateSecret()
Default: false
@Stability(value=Stable) @Nullable default Duration getIdTokenValidity()
Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity.
Default: Duration.minutes(60)
@Stability(value=Stable) @Nullable default OAuthSettings getOAuth()
An error is thrown when this is specified and disableOAuth is set.
Default: - see defaults in `OAuthSettings`. meaningless if `disableOAuth` is set.
@Stability(value=Stable) @Nullable default Boolean getPreventUserExistenceErrors()
Default: false
@Stability(value=Stable) @Nullable default ClientAttributes getReadAttributes()
Default: - all standard and custom attributes
@Stability(value=Stable) @Nullable default Duration getRefreshTokenValidity()
Values between 60 minutes and 10 years are valid.
Default: Duration.days(30)
@Stability(value=Stable) @Nullable default List<UserPoolClientIdentityProvider> getSupportedIdentityProviders()
Default: - supports all identity providers that are registered with the user pool. If the user pool and/or identity providers are imported, either specify this option explicitly or ensure that the identity providers are registered with the user pool using the `UserPool.registerIdentityProvider()` API.
@Stability(value=Stable) @Nullable default String getUserPoolClientName()
Default: - cloudformation generated name
@Stability(value=Stable) @Nullable default ClientAttributes getWriteAttributes()
Default: - all standard and custom attributes
@Stability(value=Stable) static UserPoolClientOptions.Builder builder()
UserPoolClientOptions.Builder of UserPoolClientOptionsCopyright © 2022. All rights reserved.