+
    ^eòjþ:  ã                   ó
  € ^ RI t  ^ RIHt ^ RIt]P
                  ! ]4      tRtRt	Rt
RtRtRtRt]! ]R	R
R]	RRR]R]]].4      t. ROtRtR tR t ! R R]4      t ! R R]4      tR tR tR tR#   ] d
    ^ RIHt  Lui ; i)é    N)Úurlparsezlogin.microsoftonline.uszlogin.chinacloudapi.cnzlogin.microsoftonline.comzlogin.sovcloud-identity.frzlogin.sovcloud-identity.dezlogin.sovcloud-identity.sgzlogin.microsoft.comzlogin.windows.netzsts.windows.netz login.partner.microsoftonline.cnzlogin.microsoftonline.dezlogin-us.microsoftonline.comzlogin.usgovcloudapi.netz.ciamlogin.comc                 ó(   € V \         9   d   V # \        # )N)ÚWELL_KNOWN_AUTHORITY_HOSTSÚ
WORLD_WIDE©Úinstances   &Ú…/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/msal/authority.pyÚ_get_instance_discovery_hostr
   -   s   € ØÔ#=Ô=ˆ8ÐMÄ:ÐMó    c                 ó6   € R P                  \        V 4      4      # )z$https://{}/common/discovery/instance)Úformatr
   r   s   &r	   Ú _get_instance_discovery_endpointr   1   s   € Ø1×8Ñ8Ü$ XÓ.ó0ð 0r   c                   ó,   a € ] tR t^6t o R tR tRtV tR# )ÚAuthorityBuilderc                ó^   € VP                  R4      V n        VP                  R4      V n        R# )z�A helper to save caller from doing string concatenation.

Usage is documented in :func:`application.ClientApplication.__init__`.
Ú/N)ÚrstripÚ	_instanceÚstripÚ_tenant)Úselfr   Útenants   &&&r	   Ú__init__ÚAuthorityBuilder.__init__7   s$   € ð
 "Ÿ™¨Ó-ˆŒØ—|‘| CÓ(ˆŽr   c                óN   € R P                  V P                  V P                  4      # )zhttps://{}/{})r   r   r   )r   s   &r	   Ú__str__ÚAuthorityBuilder.__str__?   s   € Ø×%Ñ% d§n¡n°d·l±lÓCÐCr   )r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r	   r   r   6   s   ø‡ € ò)÷Dð Dr   r   c                   óZ   a € ] tR t^Ct o Rt]! . 4      tR	R ltR tR t	R
R lt
R tRtV tR# )Ú	AuthorityzÌThis class represents an (already-validated) authority.

Once constructed, it contains members named "*_endpoint" for this instance.
TODO: It will also cache the previously-validated authority instances.
Nc                ó¦  € W n         WPn        V'       d   V P                  V4      pMV P                  WV4      p \	        VV P                   4      pTP                  R4      T n        TR,          T n	        TR,          T n
        TP                  R4      T n        \        T P                  4      w   q�n        T P                  '       d?   T P                  4       '       g'   \        R	P                  T P                  TR
7      4      hR# R#   \
         d?    T'       d   RP                  TR7      MRP                  T4      R,           p\        T4      hi ; i)a0  Creates an authority instance, and also validates it.

:param validate_authority:
    The Authority validation process actually checks two parts:
    instance (a.k.a. host) and tenant. We always do a tenant discovery.
    This parameter only controls whether an instance discovery will be
    performed.
z’Unable to get OIDC authority configuration for {url} because its OIDC Discovery endpoint is unavailable at {url}/.well-known/openid-configuration )ÚurlzðUnable to get authority configuration for {}. Authority would typically be in a format of https://login.microsoftonline.com/your_tenant or https://tenant_name.ciamlogin.com or https://tenant_name.b2clogin.com/tenant.onmicrosoft.com/policy. z> Also please double check your tenant name or GUID is correct.ÚissuerÚauthorization_endpointÚtoken_endpointÚdevice_authorization_endpointav  The issuer '{iss}' does not match the authority '{auth}' or a known pattern. When using the 'oidc_authority' parameter in ClientApplication, the authority will be validated against the issuer from {auth}/.well-known/openid-configuration .If using a known Entra authority (e.g. login.microsoftonline.com) the 'authority' parameter should be used instead of 'oidc_authority'. )ÚissÚauthN)Ú_http_clientÚ_oidc_authority_urlÚ_initialize_oidc_authorityÚ_initialize_entra_authorityÚtenant_discoveryÚ
ValueErrorr   ÚgetÚ_issuerr+   r,   r-   Úcanonicalizer   Úhas_valid_issuer)
r   Úauthority_urlÚhttp_clientÚvalidate_authorityÚinstance_discoveryÚoidc_authority_urlÚtenant_discovery_endpointÚopenid_configÚerror_messageÚ_s
   &&&&&&    r	   r   ÚAuthority.__init__K   sW  € ð (ÔØ#5Ô ßØ(,×(GÑ(GØ"ó)$Ñ%ð )-×(HÑ(HØÐ3Eó)GÐ%ð	,Ü,Ø)Ø×!Ñ!ó#ˆMð" %×(Ñ(¨Ó2ˆŒØ&3Ð4LÕ&MˆÔ#Ø+Ð,<Õ=ˆÔØ-:×->Ñ->Ð?^Ó-_ˆÔ*Ü(¨×)<Ñ)<Ó=Ñˆˆ1Œkð ×#×#Ð#¨D×,AÑ,A×,CÒ,CÜð÷ ‰f˜Ÿ™Ð,>ˆfÓ?óAð Añ -DÑ#øô+ ô 	,÷
 &ð:ç:@¹&ÐEW¸&Ô:XðV÷
 ‘˜Ó&ØTõUˆMô ˜]Ó+Ð+ð	,ús   ºD ÄEÄ6Ec                ó†   € \        V4      w  q n        pVP                  4       R 8H  V n        RV n        RV n        VR,           # )ÚadfsTz!/.well-known/openid-configuration)r8   r   ÚlowerÚis_adfsÚ_is_b2cÚ_is_known_to_developer)r   r>   Ú	authorityr   s   &&  r	   r2   Ú$Authority._initialize_oidc_authorityƒ   sC   € Ü+7Ð8JÓ+KÑ(ˆ	”= &Ø—|‘|“~¨Ñ/ˆŒØˆŒð '+ˆÔ#Ø!Ð$GÕGÐGr   c                ó  a € \        V\        4      '       d   \        V4      p\        V4      w  pS n        pS P                  P                  \        4      pVP                  4       R 8H  ;'       d    V'       * S n        VP                  P                  R4      p\        ;QJ d#    V 3R l\         4       F  '       g   K   RM	  RM! V 3R l\         4       4      ;'       g=    \        V4      ^8H  ;'       d'    V^,          P                  4       P                  R4      S n        S P                  ;'       g    S P                  ;'       g    V'       * S n        S P                  \"        9   pVR9   d   \%        S P                  4      MTp	V	'       d‰   V'       g�   S P                   '       go   \'        RP)                  S P                  VP                  4      S P*                  V	4      p
V
P-                  R4      R8X  d   \/        R	V,          4      hV
R
,          pV# TP1                  RP)                  V'       d   \        VP                  4      ^8:  d   TMVP                  S P                  '       d   RMRR7      R7      P3                  4       pV# )rE   r   c              3   óh   <"  € T F'  pSP                   P                  R V,           4      x € K)  	  R# 5i©Ú.N)r   Úendswith)Ú.0Údr   s   & €r	   Ú	<genexpr>Ú8Authority._initialize_entra_authority.<locals>.<genexpr>™   s+   øé € ð Ù5I°ˆD�M‰M×"Ñ" 3¨¥7×+Ð+Ó5Iùs   ƒ/2TFÚb2c_z"https://{}{}/oauth2/v2.0/authorizeÚerrorÚinvalid_instancez­invalid_instance: The authority you provided, %s, is not known. If it is a valid domain name known to you, you can turn off this check by passing in instance_discovery=Falser?   z2{prefix}{version}/.well-known/openid-configurationÚ z/v2.0)ÚprefixÚversion)Úpath)NT)Ú
isinstancer   Ústrr8   r   rP   Ú_CIAM_DOMAIN_SUFFIXrF   rG   r[   ÚsplitÚanyÚWELL_KNOWN_B2C_HOSTSÚlenÚ
startswithrH   rI   r   r   Ú_instance_discoveryr   r0   r6   r5   Ú_replaceÚgeturl)r   r:   r<   r=   rJ   r   Úis_ciamÚpartsÚis_known_to_microsoftÚinstance_discovery_endpointÚpayloadr?   s   f&&&        r	   r3   Ú%Authority._initialize_entra_authorityŒ   s'  ø€ ô �mÔ%5×6Ò6Ü Ó.ˆMÜ+7¸Ó+FÑ(ˆ	�4”= &Ø—-‘-×(Ñ(Ô)<Ó=ˆØ—|‘|“~¨Ñ/×?Ð?¸´KˆŒØ—‘×$Ñ$ SÓ)ˆß“sô Ý5Ió—s—s’sô Ý5Ióó ÷ Kð Kä�e“* ‘/×IÐI e¨A¥h§n¡nÓ&6×&AÑ&AÀ&Ó&Ið 	Œð '+§l¡l×&\Ð&\°d·l±l×&\Ð&\ÐJ\ÔF\ˆÔ#Ø $§¡Ô1KÑ KÐð $ |Ô3ô 'GØ�M‰Mô'à9Kð 	$÷ 'ß%¨×)D×)DÐ)DÜ)Ø4×;Ñ;Ø—M‘M 9§>¡>ó3à×!Ñ!Ø+ó	-ˆGð
 �{‰{˜7Ó#Ð'9Ô9Ü ð/ð
 $õ$ó%ð %ð )0Ð0KÕ(LÐ%ð )Ð(ð )2×(:Ñ(:ØI×PÑPß%,´°Y·^±^Ó1DÈÔ1I™6Ø&Ÿ^™^Ø"&§,§, ,™B°Gð Qó ð );ó )÷ ‘&“(ð &ð )Ð(r   c                ó¼  € V P                   V P                  P                  9  d·   T;'       g=    V P                  P	                  R P                  V P                   VR7      RRRV/R7      pVP                  R8w  d1   VP                  4        \        P                  ! VP                  4      # V P                  P                  P                  V P                   4       / # )z<https://{netloc}/common/userrealm/{username}?api-version=1.0)ÚnetlocÚusernameÚAcceptzapplication/jsonzclient-request-id)Úheadersi”  )r   Ú	__class__Ú%_domains_without_user_realm_discoveryr0   r6   r   Ústatus_codeÚraise_for_statusÚjsonÚloadsÚtextÚadd)r   ro   Úcorrelation_idÚresponseÚresps   &&&& r	   Úuser_realm_discoveryÚAuthority.user_realm_discovery»   sÁ   € ð �=‰= §¡× TÑ TÔTØ÷ @ð @˜t×0Ñ0×4Ñ4ØN×UÑUØŸ=™=°8ð Vó =à!Ð#5Ø,¨nð>ð  5ó  @ˆDð
 ×Ñ 3Ô&Ø×%Ñ%Ô'Ü—z’z $§)¡)Ó,Ð,Ø�N‰N×@Ñ@×DÑDÀTÇ]Á]ÔSØˆ	r   c                óŽ  a€ V P                   '       d   V P                  '       g   R# V P                   P                  R4      V P                  P                  R4      8X  d   R# \        V P                   4      p\        V P                  4      pVP                  '       d   VP                  P                  4       MRoS'       g   R# S\        9   d   R# SP                  R4      pV^ 8”  dZ   SV^,           R pRSRV 9  dD   V\        9   d   R# VP                  '       d   VP                  P                  4       MRpWE8X  d   R# VP                  VP                  8X  d   VP                  VP                  8X  d   R# \        ;QJ d#    V3R l\         4       F  '       g   K   RM	  RM! V3R l\         4       4      '       d   R# R# )a  
Returns True if the issuer from OIDC discovery is valid for this authority.

An issuer is valid if one of the following is true:
- It exactly matches the authority URL (with/without trailing slash)
- It has the same scheme and host as the authority (path can be different)
- The issuer host is a well-known Microsoft authority host
- The issuer host is a regional variant of a well-known host (e.g., westus2.login.microsoft.com)
- For CIAM, hosts that end with well-known B2C hosts (e.g., tenant.b2clogin.com) are accepted as valid issuers
Fr   TNrO   rX   c              3   óT   <"  € T F  pSP                  R V,           4      x € K  	  R# 5irN   )rP   )rQ   ÚhÚissuer_hosts   & €r	   rS   Ú-Authority.has_valid_issuer.<locals>.<genexpr>ÿ   s%   øé € ÐKÑ6J°ˆ{×#Ñ# C¨!¥G×,Ð,Ó6Jùs   ƒ%()r7   r1   r   r   ÚhostnamerF   r   ÚfindÚschemern   r`   ra   )r   Úissuer_parsedÚauthority_parsedÚ	dot_indexÚpotential_baseÚauthority_hostr‚   s   &     @r	   r9   ÚAuthority.has_valid_issuerË   sj  ø€ ð �|�|ˆ| 4×#;×#;Ð#;Ùð �<‰<×Ñ˜sÓ# t×'?Ñ'?×'FÑ'FÀsÓ'KÔKÙä  §¡Ó.ˆÜ# D×$<Ñ$<Ó=ÐØ8E×8N×8NÐ8N�m×,Ñ,×2Ñ2Ô4ÐTXˆçÙð Ô4Ô4Ùð  ×$Ñ$ SÓ)ˆ	Ø�qŒ=Ø(¨°Q­¨Ð8ˆNØ˜+ j yÐ1Ô1à!Ô%?Ô?Ùð GW×F_×F_ÐF_Ð!1×!:Ñ!:×!@Ñ!@Ô!BÐeg�Ø!Ô3Ùð ×#Ñ# }×';Ñ';Ô;Ø×#Ñ# }×';Ñ';Ô;Ù÷
 ‹3ÔKÕ6JÓK�3�3Š3ÔKÕ6JÓK×KÒKÙár   )r0   rH   rI   r7   r1   r+   r-   r   rG   r   r,   )TNN)NN)r   r   r    r!   Ú__doc__Úsetrs   r   r2   r3   r}   r9   r"   r#   r$   s   @r	   r'   r'   C   s8   ø‡ € ññ
 -0°«GÐ)ô7AòpHò-)ô^÷ 7ð 7r   r'   c                 óZ  € \        V 4      pVP                  R 8X  dÿ   VP                  '       dí   VP                  P	                  R4      p\        V4      ^8¼  d   V^,          '       d
   V^,          MRpVP                  P                  \        4      '       dO   V'       d   TM5RP                  VP                  P                  \        ^4      ^ ,          4      pWP                  V3# \        V4      ^8¼  d%   V^,          '       d   WP                  V^,          3# \        RV ,          4      h)Úhttpsr   Nz{}.onmicrosoft.coma  Your given address (%s) should consist of an https url with hostname and a minimum of one segment in a path: e.g. https://login.microsoftonline.com/{tenant} or https://{tenant_name}.ciamlogin.com/{tenant} or https://{tenant_name}.b2clogin.com/{tenant_name}.onmicrosoft.com/policy)r   r†   r„   r[   r_   rb   rP   r^   r   Úrsplitr5   )Úauthority_or_auth_endpointrJ   rh   Ú
first_partr   s   &    r	   r8   r8     sù   € äÐ3Ó4€IØ×Ñ˜7Ô" y×'9×'9Ð'9Ø—‘×$Ñ$ SÓ)ˆÜ!$ U£¨q¤°U¸1·X´X�U˜1–XÀ4ˆ
Ø×Ñ×&Ñ&Ô':×;Ò;ç#-‘ZÐ3G×3NÑ3Nà×"Ñ"×)Ñ)Ô*=¸qÓAÀ!ÕDó4FˆFð ×0Ñ0°&Ð8Ð8äˆu‹:˜Œ?˜u QŸxœxØ×0Ñ0°%¸µ(Ð:Ð:Ü
ð	Uð
 %õ	%ó&ð &r   c                 ót   € VP                   ! V3R RV RR//VB p\        P                  ! VP                  4      # )Úparamsr+   zapi-versionz1.0)r6   rv   rw   rx   )r)   r;   rj   Úkwargsr|   s   &&&, r	   rd   rd     sC   € Ø�?Š?Ø#ñà(¨#¨}¸eÐDðð ñ€Dô �:Š:�d—i‘iÓ Ð r   c                 ó’  € VP                   ! V 3/ VB pVP                  ^È8X  d!   \        P                  ! VP                  4      # RVP                  u;8:  d   R8  d4   M M0\        RP                  V VP                  VP                  4      4      hVP                  4        \        RVP                  VP                  3,          4      h)éÈ   i�  iô  z7OIDC Discovery failed on {}. HTTP status: {}, Error: {}z)Unable to complete OIDC Discovery: %d, %s)	r6   rt   rv   rw   rx   r5   r   ru   ÚRuntimeError)r?   r;   r–   r|   s   &&, r	   r4   r4   "  s®   € à�?Š?Ð4Ñ?¸Ñ?€DØ×Ñ˜3ÔÜ�zŠz˜$Ÿ)™)Ó$Ð$Ø
ˆd×ÑÖ$ ×$ô ÐR×YÑYØ%Ø×ÑØ�I‰Ióó ð 	ð 	×ÑÔÜ
Ø3°t×7GÑ7GÈÏÉÐ6SÕSóUð Ur   )zb2clogin.comzb2clogin.cnzb2clogin.uszb2clogin.dezciamlogin.com)rv   Úurllib.parser   ÚImportErrorÚloggingÚ	getLoggerr   ÚloggerÚAZURE_US_GOVERNMENTÚDEPRECATED_AZURE_CHINAÚAZURE_PUBLICÚAZURE_GOV_FRÚAZURE_GOV_DEÚAZURE_GOV_SGr   Ú	frozensetr   ra   r^   r
   r   Úobjectr   r'   r8   rd   r4   © r   r	   Ú<module>r¨      sà   ðÛ ð"Ý%ó à	×	Ò	˜8Ó	$€ð 1Ð Ø1Ð Ø*€Ø+€Ø+€Ø+€à(€
Ù&ØØØØØØ&ØØ"ØØØØØð(ó Ð ò Ð ð 'Ð òNò0ô

D�vô 
Dô�ô òB&ò.!ôUøð} ô "ß!ð"ús   †A2 Á2BÂB