�
u��g� � �T � d dl mZ n# e$ r d dlmZ Y nw xY w G d� de� � ZdS )� )�urlparsec �8 � e Zd ZdZdZdZdZdZeeeeefZdd�Z dS ) �
PopAuthScheme�GET�POST�PUT�DELETE�PATCHNc � � |r|r|st d� � �|| j vrt d� � �|| _ t |� � | _ || _ dS )aK Create an auth scheme which is needed to obtain a Proof-of-Possession token.
:param str http_method:
Its value is an uppercase http verb, such as "GET" and "POST".
:param str url:
The url to be signed.
:param str nonce:
The nonce came from resource's challenge.
z6All http_method, url and nonce are required parametersz�http_method must be uppercase, according to https://datatracker.ietf.org/doc/html/draft-ietf-oauth-signed-http-request-03#section-3N)�
ValueError�
_HTTP_METHODS�_http_methodr �_url�_nonce)�self�http_method�url�nonces �`/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/msal/auth_scheme.py�__init__zPopAuthScheme.__init__ su � � � W�� W�� W��U�V�V�V��d�0�0�0�� j� k� k�
k�'����S�M�M�� ������ )NNN)
�__name__�
__module__�__qualname__�HTTP_GET� HTTP_POST�HTTP_PUT�HTTP_DELETE�
HTTP_PATCHr
r � r r r r sQ � � � � � ��H��I��H��K��J��y�(�K��L�M�� � � � � r r N)�urllib.parser �ImportError�objectr r r r �<module>r$ s� ��"�%�%�%�%�%�%�%��� "� "� "�!�!�!�!�!�!�!�!�"����� � � � �F� � � � � s � ��