ó
    ¦iD  ã                   óJ   • S SK Jr  S SKJr  S SKJr  S SKJr   " S S\5      rg)é    )Úcached_property)ÚOAuthLoginHandler)Úconfig©ÚAnacondaAuthConfigc                   ó¶   • \ rS rSr% SrSr\\S'   SS0r\	\S'   Sr
\\S	'   S
r\\S'   \S\4S j5       r\S\4S j5       r\S\4S j5       r\S\4S j5       rSrg)ÚAnacondaLoginHandleré	   a©  Anaconda OAuth2 Authentication

To utilize this handler you must have a Client ID (key)
and secret. The OAuth client at Anaconda must be configured for:

    * Set scopes: offline_access, openid, email, profile
    * Set redirect url to http://localhost:5006
    * Set grant type: Authorization Code
    * Set response types: ID Token, Token, Code
    * Set access token type: JWT
    * Set Authentication Method: HTTP Body

z	Bearer {}Ú_access_token_headerÚ
grant_typeÚauthorization_codeÚ_EXTRA_TOKEN_PARAMSÚemailÚ	_USER_KEYzhttp://localhost:5006Ú_OAUTH_REDIRECT_URLÚreturnc                 ó   • [        5       $ )Nr   )Úselfs    Ú3lib/python3.13/site-packages/anaconda_auth/panel.pyÚ_configÚAnacondaLoginHandler._config   s   € ä!Ó#Ð#ó    c                 óv   • [         R                  R                  SU R                  R                  5      nSU S3$ )Núauth-domainúhttps://z/oauth2/auth©r   Úoauth_extra_paramsÚgetr   Údomain©r   r   s     r   Ú_OAUTH_AUTHORIZE_URLÚ)AnacondaLoginHandler._OAUTH_AUTHORIZE_URL#   s3   € ä×*Ñ*×.Ñ.¨}¸d¿l¹l×>QÑ>QÓRˆØ˜&˜ Ð.Ð.r   c                 óv   • [         R                  R                  SU R                  R                  5      nSU S3$ )Nr   r   z/oauth2/userinfor   r    s     r   Ú_OAUTH_USER_URLÚ$AnacondaLoginHandler._OAUTH_USER_URL(   s4   € ä×*Ñ*×.Ñ.¨}¸d¿l¹l×>QÑ>QÓRˆØ˜&˜Ð!1Ð2Ð2r   c                 óv   • [         R                  R                  SU R                  R                  5      nSU S3$ )Nr   r   z/oauth2/tokenr   r    s     r   Ú_OAUTH_ACCESS_TOKEN_URLÚ,AnacondaLoginHandler._OAUTH_ACCESS_TOKEN_URL-   s3   € ä×*Ñ*×.Ñ.¨}¸d¿l¹l×>QÑ>QÓRˆØ˜&˜ Ð/Ð/r   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   ÚstrÚ__annotations__r   Údictr   r   r   r   r   Úpropertyr!   r$   r'   Ú__static_attributes__r)   r   r   r	   r	   	   s¥   ‡ ñð !,Ð˜#Ó+à!-Ð/CÐ DÐ˜ÓDà€IˆsÓØ6Ð˜Ó6àð$Ð+ó $ó ð$ð ð/ có /ó ð/ð ð3 ó 3ó ð3ð ð0¨ó 0ó ó0r   r	   N)	Ú	functoolsr   Ú
panel.authr   Úpanel.configr   Úanaconda_auth.configr   r	   r)   r   r   Ú<module>r8      s   ðÝ %å (Ý å 3ô'0Ð,õ '0r   