Ë
    ÷¾™h™  ã                   ó>   — d dl mZ d dlmZ d dlmZ  G d„ de«      Zy)é    )ÚRequest)ÚOpenID)ÚCustomLoggerc                   ó    — e Zd ZdZdedefd„Zy)ÚCustomSSOLoginHandlerzø
    Custom logger for the UI SSO sign in

    Use this to parse the request headers and return a OpenID object

    Useful when you have an OAuth proxy in front of LiteLLM
    and you want to use the headers from the proxy to sign in the user
    ÚrequestÚreturnc           	   ƒ   ó”   K  — t        |j                  «      }t        |j                  d«      |j                  d«      ddddd¬«      S ­w)Nzx-litellm-user-idzx-litellm-user-emailÚTestzhttps://test.com/test.pngÚtest)ÚidÚemailÚ
first_nameÚ	last_nameÚdisplay_nameÚpictureÚprovider)ÚdictÚheadersr   Úget)Úselfr   Úrequest_headers_dicts      úc/var/www/Befach/backend/env/lib/python3.12/site-packages/litellm/integrations/custom_sso_handler.pyÚhandle_custom_ui_sso_sign_inz2CustomSSOLoginHandler.handle_custom_ui_sso_sign_in   sQ   è ø€ ô  $ G§O¡OÓ4ÐÜØ#×'Ñ'Ð(;Ó<Ø&×*Ñ*Ð+AÓBØØØØ/Øô
ð 	
ùs   ‚AAN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © ó    r   r   r      s   „ ñð
àð
ð 
ô
r    r   N)Úfastapir   Úfastapi_sso.sso.baser   Ú"litellm.integrations.custom_loggerr   r   r   r    r   ú<module>r$      s   ðÝ Ý 'å ;ô
˜Lõ 
r    