+
    ^eòjg  ã                   ó¸  € R t ^ RIt^ RIHt ^ RIt^ RIHtHtH	t	H
t
Ht ^ RIHt ]P                  ]P                  ]P                   ]P"                  0tR.t]! ]R4      '       d(   ]P*                  ! 4       '       d   R]	P,                   2tMR]	P,                   2tR] R	2t]R
,           t]R,           t]R,           t]R,           t ! R R]
P:                  4      tR# )zÇTools for using the Google `Cloud Identity and Access Management (IAM)
API`_'s auth-related functionality.

.. _Cloud Identity and Access Management (IAM) API:
    https://cloud.google.com/iam/docs/
N)Ú_exponential_backoffÚ_helpersÚcredentialsÚcryptÚ
exceptions)Ú_mtls_helperz#https://www.googleapis.com/auth/iamÚcheck_use_client_certziamcredentials.mtls.ziamcredentials.zhttps://z!/v1/projects/-/serviceAccounts/{}z:generateAccessTokenz	:signBlobz:signJwtz:generateIdTokenc                   ó„   a € ] tR t^;t o RtR tR t]R 4       t]	P                  ! ]P                  4      R 4       tRtV tR# )ÚSignera  Signs messages using the IAM `signBlob API`_.

This is useful when you need to sign bytes but do not have access to the
credential's private key file.

.. _signBlob API:
    https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts
    /signBlob
c                ó*   € Wn         W n        W0n        R# )au  
Args:
    request (google.auth.transport.Request): The object used to make
        HTTP requests.
    credentials (google.auth.credentials.Credentials): The credentials
        that will be used to authenticate the request to the IAM API.
        The credentials must have of one the following scopes:

        - https://www.googleapis.com/auth/iam
        - https://www.googleapis.com/auth/cloud-platform
    service_account_email (str): The service account email identifying
        which service account to use to sign bytes. Often, this can
        be the same as the service account email in the given
        credentials.
N)Ú_requestÚ_credentialsÚ_service_account_email)ÚselfÚrequestr   Úservice_account_emails   &&&&Ú†/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/google/auth/iam.pyÚ__init__ÚSigner.__init__F   s   € ð   ŒØ'ÔØ&;Ö#ó    c                ót  € \         P                  ! V4      pRp\        P                  \        P
                  V P                  P                  4      P                  V P                  4      pRR/p\        P                  ! R\        P                  ! V4      P                  R4      /4      P                  R4      p\         P"                  ! 4       pV FÑ  pV P                  P%                  V P&                  W#V4       V P'                  W2WTR7      pVP(                  \*        9   d   KT  VP(                  \,        P.                  8w  d0   \0        P2                  ! RP                  VP4                  4      4      h\        P6                  ! VP4                  P                  R4      4      u # 	  \0        P2                  ! R4      h)	z(Makes a request to the API signBlob API.ÚPOSTzContent-Typezapplication/jsonÚpayloadzutf-8)ÚurlÚmethodÚbodyÚheadersz&Error calling the IAM signBlob API: {}z#exhausted signBlob endpoint retries)r   Úto_bytesÚ_IAM_SIGN_ENDPOINTÚreplacer   ÚDEFAULT_UNIVERSE_DOMAINr   Úuniverse_domainÚformatr   ÚjsonÚdumpsÚbase64Ú	b64encodeÚdecodeÚencoder   ÚExponentialBackoffÚbefore_requestr   ÚstatusÚIAM_RETRY_CODESÚhttp_clientÚOKr   ÚTransportErrorÚdataÚloads)	r   Úmessager   r   r   r   ÚretriesÚ_Úresponses	   &&       r   Ú_make_signing_requestÚSigner._make_signing_requestZ   sV  € ä×#Ò# GÓ,ˆàˆÜ ×(Ñ(Ü×/Ñ/°×1BÑ1B×1RÑ1Ró
ç
‰&�×,Ñ,Ó
-ð 	ð "Ð#5Ð6ˆÜ�zŠzØœ×(Ò(¨Ó1×8Ñ8¸ÓAÐBó
ç
‰&�‹/ð 	ô '×9Ò9Ó;ˆÛˆAØ×Ñ×,Ñ,¨T¯]©]¸FÈÔQà—}‘}¨À$�}ÓXˆHà�‰¤/Ô1Ùà�‰¤+§.¡.Ô0Ü ×/Ò/Ø<×CÑCÀHÇMÁMÓRóð ô —:’:˜hŸm™m×2Ñ2°7Ó;Ó<Ò<ñ ô ×'Ò'Ð(MÓNÐNr   c                ó   € R# )z¯Optional[str]: The key ID used to identify this private key.

.. warning::
   This is always ``None``. The key ID used by IAM can not
   be reliably determined ahead of time.
N© )r   s   &r   Úkey_idÚSigner.key_idx   s   € ñ r   c                ó^   € V P                  V4      p\        P                  ! VR ,          4      # )Ú
signedBlob)r6   r%   Ú	b64decode)r   r2   r5   s   && r   ÚsignÚSigner.sign‚   s(   € à×-Ñ-¨gÓ6ˆÜ×Ò ¨Õ 6Ó7Ð7r   )r   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r6   Úpropertyr:   r   Úcopy_docstringr   r
   r?   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r
   r
   ;   sL   ø‡ € ñò<ò(Oð< ñó ðð ×Ò˜UŸ\™\Ó*ñ8ó +ö8r   r
   )rE   r%   Úhttp.clientÚclientr-   r#   Úgoogle.authr   r   r   r   r   Úgoogle.auth.transportr   ÚINTERNAL_SERVER_ERRORÚBAD_GATEWAYÚSERVICE_UNAVAILABLEÚGATEWAY_TIMEOUTr,   Ú
_IAM_SCOPEÚhasattrr   r    Ú_IAM_DOMAINÚ_IAM_BASE_URLÚ_IAM_ENDPOINTr   Ú_IAM_SIGNJWT_ENDPOINTÚ_IAM_IDTOKEN_ENDPOINTr
   r9   r   r   Ú<module>rZ      sî   ðñó Ý !Û ç VÕ VÝ .ð ×%Ñ%Ø×ÑØ×#Ñ#Ø×Ñð	€ð 4Ð4€
ñ ˆLÐ1×2Ò2Ø×*Ò*×,Ò,ð )¨×)LÑ)LÐ(MÐN�Kà# K×$GÑ$GÐ#HÐI€Kð ˜;˜-Ð'JÐK€ð Ð 6Õ6€Ø" [Õ0Ð Ø%¨
Õ2Ð Ø%Ð(:Õ:Ð ôJ8ˆU�\‰\ö J8r   