o
    ^[2h                     @   s>   d dl Z d dlZd dlZejej ZdefddZdd ZdS )    N   c                    s&   t  d fddt| D S )N c                 3   s    | ]}  V  qd S )N)choice).0_charsrand h/home/skpark/git/infrasmart_work/infrasmart/venv/lib/python3.10/site-packages/authlib/common/security.py	<genexpr>
   s    z!generate_token.<locals>.<genexpr>)randomSystemRandomjoinrange)lengthr   r
   r   r   generate_token   s   r   c                 C   s    t drdS |  } | dS )zCheck if the uri is over ssl.AUTHLIB_INSECURE_TRANSPORTT)zhttps://zhttp://localhost:)osgetenvlower
startswith)urir
   r
   r   is_secure_transport   s   

r   )r   r   stringascii_lettersdigitsUNICODE_ASCII_CHARACTER_SETr   r   r
   r
   r
   r   <module>   s    