�
u��g�P � � � d dl Z d dlZd dlZd dlZd dlZddlmZ ddlmZm Z ddl
mZ ej e
� � ZdZd� Zd� Z G d � d
e� � Z G d� de� � ZdS )
� N� )�canonicalize)�decode_part�decode_id_token)�Client�brokerc �$ � t |fi | ��|k S �N)�dict)�small�bigs �`/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/msal/token_cache.py�
is_subdict_ofr s � �����u����$�$� c �T � | � d| � d� � � � S )N�preferred_username�upn)�get)�id_token_claimss r �
_get_usernamer s. � ��������E�"�"�$� $� $r c
�� � e Zd ZdZ G d� d� � Z G d� d� � Zd� Z dd�Zdd �Zdd
�Z e
ddeded
ede
fd�� � Zddd�d�Zddd�d�Zdd�Zd� Zdd�Zdd�Zd� Zd� Zd� Zd� Zd� ZdS )�
TokenCachea This is considered as a base class containing minimal cache behavior.
Although it maintains tokens using unified schema across all MSAL libraries,
this class does not serialize/persist them.
See subclass :class:`SerializableTokenCache` for details on serialization.
c �"