{ "$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-admin-initiate-auth-response-schema.json", "title": "AdminInitiateAuthResponse", "description": "Initiates the authentication response, as an administrator.", "type": "object", "properties": { "ChallengeName": { "allOf": [ { "$ref": "#/components/schemas/ChallengeNameType" }, { "description": "

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

" } ] }, "Session": { "allOf": [ { "$ref": "#/components/schemas/SessionType" }, { "description": "The session that should be passed both ways in challenge-response calls to the service. If AdminInitiateAuth or AdminRespondToAuthChallenge API call determines that 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 AdminRespondToAuthChallenge API call." } ] }, "ChallengeParameters": { "allOf": [ { "$ref": "#/components/schemas/ChallengeParametersType" }, { "description": "

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

All challenges require USERNAME and SECRET_HASH (if applicable).

The value of the USER_ID_FOR_SRP attribute is the user's actual username, not an alias (such as email address or phone number), even if you specified an alias in your call to AdminInitiateAuth. This happens because, in the AdminRespondToAuthChallenge API ChallengeResponses, the USERNAME attribute can't be an alias.

" } ] }, "AuthenticationResult": { "allOf": [ { "$ref": "#/components/schemas/AuthenticationResultType" }, { "description": "The result of the authentication response. This 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." } ] } } }