- Root
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
- /POST
/
POST
/
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
"UserPoolId": "string",
"ClientId": "string"
}'
Response Response Example
200 - Example 1
{
"UserPoolClient": {
"UserPoolId": "string",
"ClientName": "string",
"ClientId": "string",
"ClientSecret": "string",
"LastModifiedDate": "string",
"CreationDate": "string",
"RefreshTokenValidity": 0,
"AccessTokenValidity": 0,
"IdTokenValidity": 0,
"TokenValidityUnits": {
"AccessToken": "seconds",
"IdToken": "seconds",
"RefreshToken": "seconds"
},
"ReadAttributes": [],
"WriteAttributes": [],
"ExplicitAuthFlows": [],
"SupportedIdentityProviders": [],
"CallbackURLs": [],
"LogoutURLs": [],
"DefaultRedirectURI": "string",
"AllowedOAuthFlows": [],
"AllowedOAuthScopes": [],
"AllowedOAuthFlowsUserPoolClient": true,
"AnalyticsConfiguration": {
"ApplicationId": "string",
"ApplicationArn": "string",
"RoleArn": "string",
"ExternalId": "string",
"UserDataShared": true
},
"PreventUserExistenceErrors": "LEGACY",
"EnableTokenRevocation": true,
"EnablePropagateAdditionalUserContextData": true,
"AuthSessionValidity": 0
}
}
Request
Header Params
X-Amz-Target
stringÂ
required
Body Params application/json
Represents the request to describe a user pool client.
UserPoolId
stringÂ
required
>= 1 characters<= 55 characters
Match pattern:
[\w-]+_[0-9a-zA-Z]+
ClientId
string <password>
required
>= 1 characters<= 128 characters
Match pattern:
[\w+]+
Examples
Responses
🟢200Success
application/json
Body
Represents the response from the server from a request to describe the user pool client.
UserPoolClient
objectÂ
optional
UserPoolId
stringÂ
optional
>= 1 characters<= 55 characters
Match pattern:
[\w-]+_[0-9a-zA-Z]+
ClientName
stringÂ
optional
>= 1 characters<= 128 characters
Match pattern:
[\w\s+=,.@-]+
ClientId
string <password>
optional
>= 1 characters<= 128 characters
Match pattern:
[\w+]+
ClientSecret
string <password>
optional
>= 1 characters<= 64 characters
Match pattern:
[\w+]+
LastModifiedDate
string <date-time>
optional
CreationDate
string <date-time>
optional
RefreshTokenValidity
integerÂ
optional
RefreshTokenValidity
as seconds
, minutes
, hours
, or days
, set a TokenValidityUnits
value in your API request.RefreshTokenValidity
as 10
and TokenValidityUnits
as days
, your user can refresh their session and retrieve new access and ID tokens for 10 days.RefreshTokenValidity
in an API request is days. You can't set RefreshTokenValidity
to 0. If you do, Amazon Cognito overrides the value with the default value of 30 days. Valid range is displayed below in seconds.>= 0<= 315360000
AccessTokenValidity
integerÂ
optional
AccessTokenValidity
as seconds
, minutes
, hours
, or days
, set a TokenValidityUnits
value in your API request.AccessTokenValidity
to 10
and TokenValidityUnits
to hours
, your user can authorize access with their access token for 10 hours.AccessTokenValidity
in an API request is hours. Valid range is displayed below in seconds.>= 1<= 86400
IdTokenValidity
integerÂ
optional
IdTokenValidity
as seconds
, minutes
, hours
, or days
, set a TokenValidityUnits
value in your API request.IdTokenValidity
as 10
and TokenValidityUnits
as hours
, your user can authenticate their session with their ID token for 10 hours.AccessTokenValidity
in an API request is hours. Valid range is displayed below in seconds.>= 1<= 86400
TokenValidityUnits
objectÂ
optional
ReadAttributes
array[string]
optional
WriteAttributes
array[string]
optional
ExplicitAuthFlows
array[string]
optional
-
ALLOW_ADMIN_USER_PASSWORD_AUTH
: Enable admin based user password authentication flowADMIN_USER_PASSWORD_AUTH
. This setting replaces theADMIN_NO_SRP_AUTH
setting. With this authentication flow, your app passes a user name and password to Amazon Cognito in the request, instead of using the Secure Remote Password (SRP) protocol to securely transmit the password. -
ALLOW_CUSTOM_AUTH
: Enable Lambda trigger based authentication. -
ALLOW_USER_PASSWORD_AUTH
: Enable user password-based authentication. In this flow, Amazon Cognito receives the password in the request instead of using the SRP protocol to verify passwords. -
ALLOW_USER_SRP_AUTH
: Enable SRP-based authentication. -
ALLOW_REFRESH_TOKEN_AUTH
: Enable authflow to refresh tokens.
ADMIN_NO_SRP_AUTH
, CUSTOM_AUTH_FLOW_ONLY
, or USER_PASSWORD_AUTH
. You can't assign these legacy ExplicitAuthFlows
values to user pool clients at the same time as values that begin with ALLOW_
, like ALLOW_USER_SRP_AUTH
.Allowed values:
ADMIN_NO_SRP_AUTHCUSTOM_AUTH_FLOW_ONLYUSER_PASSWORD_AUTHALLOW_ADMIN_USER_PASSWORD_AUTHALLOW_CUSTOM_AUTHALLOW_USER_PASSWORD_AUTHALLOW_USER_SRP_AUTHALLOW_REFRESH_TOKEN_AUTH
SupportedIdentityProviders
array[string]
optional
COGNITO
, Facebook
, Google
, SignInWithApple
, LoginWithAmazon
, and the names of your own SAML and OIDC providers.CallbackURLs
array[string]
optional
-
Be an absolute URI. -
Be registered with the authorization server. -
Not include a fragment component.
>= 0 items<= 100 items
LogoutURLs
array[string]
optional
>= 0 items<= 100 items
DefaultRedirectURI
stringÂ
optional
CallbackURLs
list.-
Be an absolute URI. -
Be registered with the authorization server. -
Not include a fragment component.
>= 1 characters<= 1024 characters
Match pattern:
[\p{L}\p{M}\p{S}\p{N}\p{P}]+
AllowedOAuthFlows
array[string]
optional
- code
-
Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the /oauth2/token
endpoint. - implicit
-
Issue the access token (and, optionally, ID token, based on scopes) directly to your user. - client_credentials
-
Issue the access token from the /oauth2/token
endpoint directly to a non-person user using a combination of the client ID and client secret.
>= 0 items<= 3 items
Allowed values:
codeimplicitclient_credentials
AllowedOAuthScopes
array[string]
optional
phone
, email
, openid
, and profile
. Possible values that Amazon Web Services provides are aws.cognito.signin.user.admin
. Amazon Cognito also supports custom scopes that you create in Resource Servers.<= 50 items
AllowedOAuthFlowsUserPoolClient
booleanÂ
optional
AnalyticsConfiguration
objectÂ
optional
PreventUserExistenceErrors
enum<string>Â
optional
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.-
ENABLED
- This prevents user existence-related errors. -
LEGACY
- This represents the old behavior of Amazon Cognito where user existence related errors aren't prevented.
Allowed values:
LEGACYENABLED
EnableTokenRevocation
booleanÂ
optional
EnablePropagateAdditionalUserContextData
booleanÂ
optional
EnablePropagateAdditionalUserContextData
is true, Amazon Cognito accepts an IpAddress
value that you send in the UserContextData
parameter. The UserContextData
parameter sends information to Amazon Cognito advanced security for risk analysis. You can send UserContextData
when you sign in Amazon Cognito native users with the InitiateAuth
and RespondToAuthChallenge
API operations.EnablePropagateAdditionalUserContextData
is false, you can't send your user's source IP address to Amazon Cognito advanced security with unauthenticated API operations. EnablePropagateAdditionalUserContextData
doesn't affect whether you can send a source IP address in a ContextData
parameter with the authenticated API operations AdminInitiateAuth
and AdminRespondToAuthChallenge
.EnablePropagateAdditionalUserContextData
in an app client that has a client secret. For more information about propagation of user context data, see Adding user device and session data to API requests.AuthSessionValidity
integerÂ
optional
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.>= 3<= 15
🟠480ResourceNotFoundException
🟠481InvalidParameterException
🟠482TooManyRequestsException
🟠483NotAuthorizedException
🟠484InternalErrorException
Modified at 2023-08-15 07:11:07