
    qh                     B    S r SSKJr  SSKJr  SSKJr   " S S\5      rg	)
zx
LiveJournal OpenId backend, docs at:
    https://python-social-auth.readthedocs.io/en/latest/backends/livejournal.html
    )urlsplit   )AuthMissingParameter   )
OpenIdAuthc                   6   ^  \ rS rSrSrSrU 4S jrS rSrU =r	$ )LiveJournalOpenId   z)LiveJournal OpenID authentication backendlivejournalc                    > [         TU ]  U5      nUR                  S5      =(       d2    [        UR                  5      R
                  R                  SS5      S   US'   U$ )z#Generate username from identity urlusername.r   r   )superget_user_detailsgetr   identity_urlnetlocsplit)selfresponsevalues	__class__s      R/var/www/html/env/lib/python3.13/site-packages/social_core/backends/livejournal.pyr   "LiveJournalOpenId.get_user_details   s[    )(3JJz" G--.55;;CCAF 	z     c                     U R                   R                  S5      (       d  [        U S5      eSR                  U R                   S   5      $ )z&Returns LiveJournal authentication URLopenid_lj_userzhttp://{}.livejournal.com)datar   r   format)r   s    r   
openid_urlLiveJournalOpenId.openid_url   s?    yy}}-..&t-=>>*11$))<L2MNNr    )
__name__
__module____qualname____firstlineno____doc__namer   r    __static_attributes____classcell__)r   s   @r   r	   r	      s    3DO Or   r	   N)r'   urllib.parser   
exceptionsr   open_idr   r	   r"   r   r   <module>r.      s#   
 " - O
 Or   