:doc:`CognitoIdentityProvider <../../cognito-idp>` / Client / complete_web_authn_registration

*******************************
complete_web_authn_registration
*******************************



.. py:method:: CognitoIdentityProvider.Client.complete_web_authn_registration(**kwargs)

  

  Completes registration of a passkey authenticator for the currently signed-in user.

   

  Authorize this action with a signed-in user's access token. It must include the scope ``aws.cognito.signin.user.admin``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CompleteWebAuthnRegistration>`_  


  **Request Syntax**
  ::

    response = client.complete_web_authn_registration(
        AccessToken='string',
        Credential={...}|[...]|123|123.4|'string'|True|None
    )
    
  :type AccessToken: string
  :param AccessToken: **[REQUIRED]** 

    A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for ``aws.cognito.signin.user.admin``.

    

  
  :type Credential: :ref:`document<document>`
  :param Credential: **[REQUIRED]** 

    A `RegistrationResponseJSON <https://www.w3.org/TR/WebAuthn-3/#dictdef-registrationresponsejson>`__ public-key credential response from the user's passkey provider.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.ForbiddenException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.InternalErrorException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.LimitExceededException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.NotAuthorizedException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.WebAuthnNotEnabledException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.WebAuthnChallengeNotFoundException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.WebAuthnRelyingPartyMismatchException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.WebAuthnClientMismatchException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.WebAuthnOriginNotAllowedException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.WebAuthnCredentialNotSupportedException`

  