+
    ^eòj‹(  ã                   óB  € R t ^ RIt^ RIt^ RIt^ RIt^ RIHtHt ^ RIH	t	 ^ RI
HtHtHt RtRtRtR t ! R	 R
]P$                  R7      t ! R R]4      t ! R R]4      t ! R R]4      t]! 4       ]! 4       ]! 4       3 U u/ uF  p V P.                  V bK  	  up tR# u up i )z Challenges for reauthentication.N)Ú_helpersÚ
exceptions)Úwebauthn_handler_factory)Ú$AuthenticationExtensionsClientInputsÚ
GetRequestÚPublicKeyCredentialDescriptorzhttps://accounts.google.comzFPlease run `gcloud auth login` to complete reauthentication with SAML.iÀÔ c                ó.   € \         P                   ! V 4      # )zÐGet password from user.

Override this function with a different logic if you are using this library
outside a CLI.

Args:
    text (str): message for the password prompt.

Returns:
    str: password string.
)Úgetpass)Útexts   &Ú�/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/google/oauth2/challenges.pyÚget_user_passwordr   %   s   € ô �?Š?˜4Ó Ð ó    c                   ó¤   a € ] tR t^4t o Rt]]P                  R 4       4       t]]P                  R 4       4       t	]P                  R 4       t
RtV tR# )ÚReauthChallengez!Base class for reauth challenges.c                ó   € \        R4      h)z"Returns the name of the challenge.z!name property must be implemented©ÚNotImplementedError©Úselfs   &r   ÚnameÚReauthChallenge.name7   s   € ô "Ð"EÓFÐFr   c                ó   € \        R4      h)zAReturns true if a challenge is supported locally on this machine.z0is_locally_eligible property must be implementedr   r   s   &r   Úis_locally_eligibleÚ#ReauthChallenge.is_locally_eligible=   s   € ô "Ð"TÓUÐUr   c                ó   € \        R4      h)a  Performs logic required to obtain credentials and returns it.

Args:
    metadata (Mapping): challenge metadata returned in the 'challenges' field in
        the initial reauth request. Includes the 'challengeType' field
        and other challenge-specific fields.

Returns:
    response that will be send to the reauth service as the content of
    the 'proposalResponse' field in the request body. Usually a dict
    with the keys specific to the challenge. For example,
    ``{'credential': password}`` for password challenge.
z1obtain_challenge_input method must be implementedr   ©r   Úmetadatas   &&r   Úobtain_challenge_inputÚ&ReauthChallenge.obtain_challenge_inputC   s   € ô "Ð"UÓVÐVr   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚpropertyÚabcÚabstractmethodr   r   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r   4   sj   ø‡ € Ù+àØ×ÑñGó ó ðGð Ø×ÑñVó ó ðVð 	×ÑñWó öWr   r   )Ú	metaclassc                   ót   a € ] tR t^Ut o Rt]R 4       t]R 4       t]P                  ! ]
4      R 4       tRtV tR# )ÚPasswordChallengez(Challenge that asks for user's password.c                ó   € R # )ÚPASSWORDr   r   s   &r   r   ÚPasswordChallenge.nameX   s   € ár   c                ó   € R # ©Tr   r   s   &r   r   Ú%PasswordChallenge.is_locally_eligible\   ó   € ár   c                ó4   € \        R 4      pV'       g   RpRV/# )zPlease enter your password:Ú Ú
credential)r   )r   Úunused_metadataÚpasswds   && r   r   Ú(PasswordChallenge.obtain_challenge_input`   s    € ä"Ð#@ÓAˆßØˆFØ˜fÐ%Ð%r   r   N)r    r!   r"   r#   r$   r%   r   r   r   Úcopy_docstringr   r   r(   r)   r*   s   @r   r.   r.   U   sM   ø‡ € Ù2àñó ðð ñó ðð ×Ò˜_Ó-ñ&ó .ö&r   r.   c                   ó€   a € ] tR t^ht o Rt]R 4       t]R 4       t]P                  ! ]
4      R 4       tR tR tRtV tR# )	ÚSecurityKeyChallengez2Challenge that asks for user's security key touch.c                ó   € R # )ÚSECURITY_KEYr   r   s   &r   r   ÚSecurityKeyChallenge.namek   s   € ár   c                ó   € R # r3   r   r   s   &r   r   Ú(SecurityKeyChallenge.is_locally_eligibleo   r5   r   c                óª  €  \         P                  ! 4       pVP                  4       pVe1   \        P                  P                  R4       V P                  W4      #   ^ R Ip^ R I	p^ R I
pTR,          pTR,          pTR,          pTR,          pYx8w  d   Y‡.p	MT.p	. p
T F–  pTR,          P                  R4      pTP                  P!                  \#        \$        P&                  ! T4      4      4      pTR	,          P                  R4      p\$        P&                  ! T4      pT
P)                  R
TR	T/4       K˜  	  ^ pT	 Ff  p T^,          pTP*                  P,                  P/                  \0        4      pTP3                  TT
\        P                  P
                  R7      pRT/u # 	  R #   \         d     ELZi ; i  \         d    \        P                  ! R4      hi ; i  TP4                  P6                   dÉ   pTP8                  TP4                  P6                  P:                  8X  d>   T\=        T	4      8X  d'   \        P                  P                  R4        R p? R #  R p?EK*  TP8                  TP4                  P6                  P>                  8X  d'   \        P                  P                  R4        R p? R # ThR p?iTP4                  P@                   d;   p\        P                  P                  RPC                  T4      4        R p?EKÔ  R p?iTP4                  PD                   d%    \        P                  P                  R4         R # i ; i)Nz*Please insert and touch your security key
z’pyu2f dependency is required to use Security key reauth feature. It can be installed via `pip install pyu2f` or `pip install google-auth[reauth]`.ÚsecurityKeyÚ
challengesÚapplicationIdÚrelyingPartyIdÚ	keyHandleÚasciiÚ	challengeÚkey)Úprint_callbackzIneligible security key.
z0Timed out while waiting for security key touch.
zPlugin error: {}.
zNo security key found.
)#r   ÚWebauthnHandlerFactoryÚget_handlerÚsysÚstderrÚwriteÚ _obtain_challenge_input_webauthnÚ	ExceptionÚpyu2f.convenience.authenticatorÚpyu2f.errorsÚpyu2f.modelÚImportErrorr   ÚReauthFailErrorÚencodeÚmodelÚRegisteredKeyÚ	bytearrayÚbase64Úurlsafe_b64decodeÚappendÚconvenienceÚauthenticatorÚCreateCompositeAuthenticatorÚREAUTH_ORIGINÚAuthenticateÚerrorsÚU2FErrorÚcodeÚDEVICE_INELIGIBLEÚlenÚTIMEOUTÚPluginErrorÚformatÚNoDeviceFoundError)r   r   ÚfactoryÚwebauthn_handlerÚpyu2fÚskrF   Úapplication_idÚrelying_party_idÚapplication_parametersÚchallenge_dataÚcÚkhrL   rK   ÚtriesÚapp_idÚapiÚresponseÚes   &&                  r   r   Ú+SecurityKeyChallenge.obtain_challenge_inputs   s×  € ð	Ü.×EÒEÓGˆGØ&×2Ñ2Ó4ÐØÒ+Ü—
‘
× Ñ Ð!NÔOØ×<Ñ<¸XÓXÐXð ,ð	Û2ÛÛð �mÕ$ˆØ˜Õ%ˆ
ð ˜OÕ,ˆØÐ.Õ/ÐàÔ-Ø&6Ð%GÑ"à&4Ð%5Ð"àˆÛˆAØ�;•×&Ñ& wÓ/ˆBØ—+‘+×+Ñ+¬I´f×6NÒ6NÈrÓ6RÓ,SÓTˆCØ˜+�×-Ñ-¨gÓ6ˆIÜ×0Ò0°Ó;ˆIØ×!Ñ! 5¨#¨{¸IÐ"FÖGñ ð ˆÛ,ˆFð=Ø˜•
�Ø×'Ñ'×5Ñ5×RÑRÜ!ó�ð ×+Ñ+Ø˜N¼3¿:¹:×;KÑ;Kð ,ó �ð & xÐ0Ò0ó -øôK ô 	âð	ûô ô 	Ü×,Ò,ðdóð ð	ûðN —<‘<×(Ñ(ô Ø—6‘6˜UŸ\™\×2Ñ2×DÑDÔDà¤Ð$:Ó ;Ô;ÜŸ
™
×(Ñ(Ð)EÔFÞ#ÞØ—6‘6˜UŸ\™\×2Ñ2×:Ñ:Ô:Ü—J‘J×$Ñ$ØK÷ð ò ð �GûØ—<‘<×+Ñ+ô Ü—
‘
× Ñ Ð!6×!=Ñ!=¸aÓ!@ÔAÞûØ—<‘<×2Ñ2ô =Ü—
‘
× Ñ Ð!;Õ<Úð=úsc   ‚AF( ÁF: Å A!GÆ(F7Æ6F7Æ:"GÇMÇ:AJ=É&AJ=Ê;J=Ê=MËMË.LÌMÌ- MÍMc                óf  € VP                  R 4      pVf   \        P                  ! R4      hVP                  R4      pVP                  R4      pVP                  R4      pVe   \        V4      ^8  d   \        P                  ! R4      hVf   \        P                  ! R4      hVf   \        P                  ! R4      h. pV FZ  pVP                  R	4      p	V	f   \        P                  ! R
4      hV P	                  V	4      p
VP                  \        V
R7      4       K\  	  \        VR7      pV^ ,          P                  R4      pVf   \        P                  ! R4      h\        \        VV P	                  V4      \        VRVR7      p VP                  V4      pRTP                   P"                  RTP                   P$                  RTP                   P&                  RTR	TP(                  R^/pR T/#   \         d6   p\        P                  P                  RP                  T4      4       ThRp?ii ; i)rE   NzsecurityKey is NonerF   rG   rH   zchallenges is None or emptyzapplication_id is Nonezrelying_party_id is NonerI   zkeyHandle is None)Úid)ÚappidrK   zchallenge is NoneÚ	preferred)ÚoriginÚrpidrK   Ú
timeout_msÚallow_credentialsÚuser_verificationÚ
extensionszWebauthn Error: {}.
Ú
clientDataÚauthenticatorDataÚsignatureDataÚsecurityKeyReplyType)Úgetr   ÚInvalidValuerj   Ú_unpadded_urlsafe_b64recoder`   r   r   r   rd   ÚWEBAUTHN_TIMEOUT_MSrT   rP   rQ   rR   rm   r|   Úclient_data_jsonÚauthenticator_dataÚ	signaturer€   )r   r   rp   rr   rF   rs   rt   r†   rK   rx   Ú
key_handleÚ	extensionÚget_requestÚget_responser}   r|   s   &&&             r   rS   Ú5SecurityKeyChallenge._obtain_challenge_input_webauthn¿   s  € Ø�\‰\˜-Ó(ˆØŠ:Ü×)Ò)Ð*?Ó@Ð@Ø—V‘V˜LÓ)ˆ
ØŸ™ Ó0ˆØŸ6™6Ð"2Ó3ÐØÒ¤ Z£°1Ô!4Ü×)Ò)Ð*GÓHÐHØÒ!Ü×)Ò)Ð*BÓCÐCØÒ#Ü×)Ò)Ð*DÓEÐEàÐÛ#ˆIØ—‘˜{Ó+ˆBØŠzÜ ×-Ò-Ð.AÓBÐBØ×9Ñ9¸"Ó=ˆJØ×$Ñ$Ô%BÀjÔ%QÖRñ $ô 9¸~ÔNˆ	à˜q•M×%Ñ% kÓ2ˆ	ØÒÜ×)Ò)Ð*=Ó>Ð>ä Ü Ø!Ø×6Ñ6°yÓAÜ*Ø/Ø)Ø ô
ˆð	Ø+×/Ñ/°Ó<ˆLð ˜,×/Ñ/×@Ñ@Ø ×!6Ñ!6×!IÑ!IØ˜\×2Ñ2×<Ñ<Ø˜^Ø˜Ÿ™Ø" Að
ˆð ˜xÐ(Ð(øô ô 	Ü�J‰J×ÑÐ4×;Ñ;¸AÓ>Ô?ØˆGûð	ús   ÆG0 Ç0H0Ç;0H+È+H0c                ó”   € \         P                  ! V4      p\         P                  ! V4      P                  4       P	                  R4      # )zTConverts standard b64 encoded string to url safe b64 encoded string
with no padding.Ú=)r^   r_   Úurlsafe_b64encodeÚdecodeÚrstrip)r   ÚsÚbs   && r   r�   Ú0SecurityKeyChallenge._unpadded_urlsafe_b64recodeõ   s9   € ô ×$Ò$ QÓ'ˆÜ×'Ò'¨Ó*×1Ñ1Ó3×:Ñ:¸3Ó?Ð?r   r   N)r    r!   r"   r#   r$   r%   r   r   r   r<   r   r   rS   r�   r(   r)   r*   s   @r   r>   r>   h   sb   ø‡ € Ù<àñó ðð ñó ðð ×Ò˜_Ó-ñIó .ðIòV4)÷l@ð @r   r>   c                   óJ   a € ] tR t^üt o Rt]R 4       t]R 4       tR tRt	V t
R# )ÚSamlChallengezïChallenge that asks the users to browse to their ID Providers.

Currently SAML challenge is not supported. When obtaining the challenge
input, exception will be raised to instruct the users to run
`gcloud auth login` for reauthentication.
c                ó   € R # )ÚSAMLr   r   s   &r   r   ÚSamlChallenge.name  s   € ár   c                ó   € R # r3   r   r   s   &r   r   Ú!SamlChallenge.is_locally_eligible  r5   r   c                ó6   € \         P                  ! \        4      h)N)r   ÚReauthSamlChallengeFailErrorÚSAML_CHALLENGE_MESSAGEr   s   &&r   r   Ú$SamlChallenge.obtain_challenge_input  s   € ô ×5Ò5Ô6LÓMÐMr   r   N)r    r!   r"   r#   r$   r%   r   r   r   r(   r)   r*   s   @r   r¢   r¢   ü   s>   ø‡ € ñð ñó ðð ñó ð÷Nð Nr   r¢   )r$   r&   r^   r	   rP   Úgoogle.authr   r   Úgoogle.oauth2r   Úgoogle.oauth2.webauthn_typesr   r   r   rd   rª   r�   r   ÚABCMetar   r.   r>   r¢   r   ÚAVAILABLE_CHALLENGES)rK   s   0r   Ú<module>r±      s¾   ðñ 'ã 
Û Û Û 
ç ,Ý 2÷ñ ð .€àLð ð Ð ò!ôW §¡õ WôB&˜ô &ô&Q@˜?ô Q@ôhN�Oô Nñ2 +Ó,Ñ.?Ó.AÁ=Ã?ÑSóáSˆ	ð ‡N�N�IÒÙSñÒ ùò s   ÂB