Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/keystoneauth1/identity/v3/__pycache__/federation.cpython-39.pyc
Ðазад
a s�h� � @ sp d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlmZ dZ G dd� deje jd �Z G d d� de �ZdS )� N)�access)�base)�token)�session)�FederationBaseAuthc @ sD e Zd ZdZejZeje j d�dd�Zej eje j d�dd��ZdS )� _Rescopeda A plugin that is always going to go through a rescope process. The original keystone plugins could simply pass a project or domain to along with the credentials and get a scoped token. For federation, K2K and newer mechanisms we always get an unscoped token first and then rescope. This is currently not public as it's generally an abstraction of a flow used by plugins within keystoneauth1. It also cannot go in base as it depends on token.Token for rescoping which would create a circular dependency. )r �returnc C sx | � |�}|jdusJ �t| j| j| j| j| j| j| j g�rt| j | j|j| j| j| j| j| j| j| j d� }|�|�}|S )a Authenticate retrieve token information. This is a multi-step process where a client does federated authn receives an unscoped token. If an unscoped token is successfully received and scoping information is present then the token is rescoped to that target. :param session: a session object to send out HTTP requests. :type session: keystoneauth1.session.Session :returns: a token data representation :rtype: :py:class:`keystoneauth1.access.AccessInfo` N)r �trust_id� domain_id�domain_name� project_id�project_name�project_domain_id�project_domain_name) �get_unscoped_auth_refZ auth_token�anyr r r r r r r �rescoping_plugin�auth_url�get_auth_ref)�selfr Zauth_refZtoken_plugin� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/keystoneauth1/identity/v3/federation.pyr ( s2 ��� z_Rescoped.get_auth_refc C s dS )zFetch unscoped federated token.Nr )r r r r r r X s z_Rescoped.get_unscoped_auth_refN)�__name__� __module__�__qualname__�__doc__r �Tokenr � ks_session�Sessionr ZAccessInfoV3r �abc�abstractmethodr r r r r r s 0�r )� metaclassc s� e Zd ZdZddddddddddd� eeeeje eje eje eje eje eje eje eje eed� � fdd�Ze ed�d d ��Z � ZS )r a0 Federation authentication plugin. :param auth_url: URL of the Identity Service :type auth_url: string :param identity_provider: name of the Identity Provider the client will authenticate against. This parameter will be used to build a dynamic URL used to obtain unscoped OpenStack token. :type identity_provider: string :param protocol: name of the protocol the client will authenticate against. :type protocol: string NT) r �system_scoper r r r r r �reauthenticate�include_catalog) r �identity_provider�protocolr r"