o
    Df                     @   s   d dl mZ dddZdS )    )urlparseFoauth-authorization-serverc                 C   sR   t  | }|j}|r|dkrd| | }nd| }|s|S |jd |j | S )a   Get well-known URI with issuer via `Section 3.1`_.

    .. _`Section 3.1`: https://tools.ietf.org/html/rfc8414#section-3.1

    :param issuer: URL of the issuer
    :param external: return full external url or not
    :param suffix: well-known URI suffix for RFC8414
    :return: URL
    /z/.well-known/z://)r   pathschemenetloc)issuerexternalsuffixparsedr   url_path r   Z/home/ubuntu/webapp/venv/lib/python3.10/site-packages/authlib/oauth2/rfc8414/well_known.pyget_well_known_url   s   


r   N)Fr   )authlib.common.urlsr   r   r   r   r   r   <module>   s    