o
    ©D®f>  ã                   @   s   d dl mZ ddd„ZdS )é    )ÚurlparseFc                 C   s0   |r	|   d¡d S t | ¡}|j}|  d¡d S )z Get well-known URI with issuer via Section 4.1.

    :param issuer: URL of the issuer
    :param external: return full external url or not
    :return: URL
    ú/z!/.well-known/openid-configuration)Úrstripr   Úpath)ÚissuerÚexternalÚparsedr   © r	   úZ/home/ubuntu/webapp/venv/lib/python3.10/site-packages/authlib/oidc/discovery/well_known.pyÚget_well_known_url   s
   
r   N)F)Úauthlib.common.urlsr   r   r	   r	   r	   r
   Ú<module>   s    