Builder
Properties
The access token time limit. After this limit expires, your user can't use their access token. To specify the time unit for AccessTokenValidity
as seconds
, minutes
, hours
, or days
, set a TokenValidityUnits
value in your API request.
The OAuth grant types that you want your app client to generate. To create an app client that generates client credentials grants, you must add client_credentials
as the only allowed OAuth flow.
Set to true
to use OAuth 2.0 authorization server features in your app client.
The OAuth 2.0 scopes that you want your app client to support. Can include standard OAuth scopes like phone
, email
, openid
, and profile
. Can also include the aws.cognito.signin.user.admin
scope that authorizes user profile self-service operations and custom scopes from resource servers.
The user pool analytics configuration for collecting metrics and sending them to your Amazon Pinpoint campaign.
Amazon Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity
is the duration, in minutes, of that session token. Your user pool native user must respond to each authentication challenge before the session expires.
A list of allowed redirect (callback) URLs for the IdPs.
The name of the app client.
The app client secret.
The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
The default redirect URI. Must be in the CallbackURLs
list.
When EnablePropagateAdditionalUserContextData
is true, Amazon Cognito accepts an IpAddress
value that you send in the UserContextData
parameter. The UserContextData
parameter sends information to Amazon Cognito threat protection for risk analysis. You can send UserContextData
when you sign in Amazon Cognito native users with the InitiateAuth
and RespondToAuthChallenge
API operations.
Indicates whether token revocation is activated for the user pool client. When you create a new user pool client, token revocation is activated by default.
The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in your users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and password, or a custom authentication process that you define with Lambda functions.
The ID token time limit. After this limit expires, your user can't use their ID token. To specify the time unit for IdTokenValidity
as seconds
, minutes
, hours
, or days
, set a TokenValidityUnits
value in your API request.
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
A list of allowed logout URLs for the IdPs.
When ENABLED
, suppresses messages that might indicate a valid user exists when someone attempts sign-in. This parameters sets your preference for the errors and responses that you want Amazon Cognito APIs to return during authentication, account confirmation, and password recovery when the user doesn't exist in the user pool. When set to ENABLED
and the user doesn't exist, authentication returns an error indicating either the username or password was incorrect. Account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to LEGACY
, those APIs return a UserNotFoundException
exception if the user doesn't exist in the user pool.
The list of user attributes that you want your app client to have read access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list.
The configuration of your app client for refresh token rotation. When enabled, your app client issues new ID, access, and refresh tokens when users renew their sessions with refresh tokens. When disabled, token refresh issues only ID and access tokens.
The refresh token time limit. After this limit expires, your user can't use their refresh token. To specify the time unit for RefreshTokenValidity
as seconds
, minutes
, hours
, or days
, set a TokenValidityUnits
value in your API request.
A list of provider names for the identity providers (IdPs) that are supported on this client. The following are supported: COGNITO
, Facebook
, Google
, SignInWithApple
, and LoginWithAmazon
. You can also specify the names that you configured for the SAML and OIDC IdPs in your user pool, for example MySAMLIdP
or MyOIDCIdP
.
The time units that, with IdTokenValidity
, AccessTokenValidity
, and RefreshTokenValidity
, set and display the duration of ID, access, and refresh tokens for an app client. You can assign a separate token validity unit to each type of token.
The ID of the user pool associated with the app client.
The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list.
Functions
construct an aws.sdk.kotlin.services.cognitoidentityprovider.model.AnalyticsConfigurationType inside the given block
construct an aws.sdk.kotlin.services.cognitoidentityprovider.model.RefreshTokenRotationType inside the given block
construct an aws.sdk.kotlin.services.cognitoidentityprovider.model.TokenValidityUnitsType inside the given block