
    Ri                     B    S SK JrJrJr   " S S5      r " S S\5      rg)    )OptionalTupleUnionc                   @    \ rS rSrSrS\\\   \\\4   4   4S jrSr	g)CredentialProvider   z
Credentials Provider.
returnc                     [        S5      e)Nz#get_credentials must be implemented)NotImplementedErrorselfs    c/var/www/html/backend/Backoffice_Marketplace/venv/lib/python3.13/site-packages/redis/credentials.pyget_credentials"CredentialProvider.get_credentials	   s    !"GHH     N)
__name__
__module____qualname____firstlineno____doc__r   r   strr   __static_attributes__r   r   r   r   r      s+    IuSz5c?'B!C Ir   r   c                   @    \ rS rSrSrS	S\\   S\\   4S jjrS rSr	g)
"UsernamePasswordCredentialProvider   z[
Simple implementation of CredentialProvider that just wraps static
username and password.
Nusernamepasswordc                 D    U=(       d    SU l         U=(       d    SU l        g )N r   r   )r   r   r   s      r   __init__+UsernamePasswordCredentialProvider.__init__   s     B Br   c                 n    U R                   (       a  U R                   U R                  4$ U R                  4$ )Nr!   r   s    r   r   2UsernamePasswordCredentialProvider.get_credentials   s)    ====$--//r   )r   r   )NN)
r   r   r   r   r   r   r   r"   r   r   r   r   r   r   r      s'    
'# '# ' r   r   N)typingr   r   r   r   r   r   r   r   <module>r'      s$    ) )I I );  r   