o
    ÿÑÐbé  ã                   @   s   d dl mZ ddd„ZdS )é    )ÚurlparseFúoauth-authorization-serverc                 C   sP   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/.well-known/{}z://)r   ÚpathÚformatÚschemeÚnetloc)ZissuerZexternalÚsuffixÚparsedr   Zurl_path© r   ú`/var/www/secure340b-portal/env/lib/python3.10/site-packages/authlib/oauth2/rfc8414/well_known.pyÚget_well_known_url   s   

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