{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-cognito/refs/heads/main/json-schema/user-pools-initiate-auth-response-schema.json", "title": "InitiateAuthResponse", "description": "Initiates the authentication response.", "type": "object", "properties": { "ChallengeName": { "allOf": [ { "$ref": "#/components/schemas/ChallengeNameType" }, { "description": "

The name of the challenge that you're responding to with this call. This name is returned in the AdminInitiateAuth response if you must pass another challenge.

Valid values include the following:

All of the following challenges require USERNAME and SECRET_HASH (if applicable) in the parameters.

" } ] }, "Session": { "allOf": [ { "$ref": "#/components/schemas/SessionType" }, { "description": "The session that should pass both ways in challenge-response calls to the service. If the caller must pass another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next RespondToAuthChallenge API call." } ] }, "ChallengeParameters": { "allOf": [ { "$ref": "#/components/schemas/ChallengeParametersType" }, { "description": "

The challenge parameters. These are returned in the InitiateAuth response if you must pass another challenge. The responses in this parameter should be used to compute inputs to the next call (RespondToAuthChallenge).

All challenges require USERNAME and SECRET_HASH (if applicable).

" } ] }, "AuthenticationResult": { "allOf": [ { "$ref": "#/components/schemas/AuthenticationResultType" }, { "description": "The result of the authentication response. This result is only returned if the caller doesn't need to pass another challenge. If the caller does need to pass another challenge before it gets tokens, ChallengeName, ChallengeParameters, and Session are returned." } ] } } }