File: //opt/cppython/lib/python3.8/site-packages/google/auth/__pycache__/external_account.cpython-38.pyc
U
KD�gye � @ s� d Z ddlZddlZddlmZ ddlZddlZddlZddlZddl Z ddl
mZ ddl
mZ ddl
m
Z
ddl
mZ ddl
mZ dd lmZ dd
lmZ dZdZd
ZdZdZeG dd� d��ZG dd� dejejejejd�ZdS )a� External Account Credentials.
This module provides credentials that exchange workload identity pool external
credentials for Google access tokens. This facilitates accessing Google Cloud
Platform resources from on-prem and non-Google Cloud platforms (e.g. AWS,
Microsoft Azure, OIDC identity providers), using native credentials retrieved
from the current environment without the need to copy, save and manage
long-lived service account credentials.
Specifically, this is intended to use access tokens acquired using the GCP STS
token exchange endpoint following the `OAuth 2.0 Token Exchange`_ spec.
.. _OAuth 2.0 Token Exchange: https://tools.ietf.org/html/rfc8693
� N)� dataclass)�_helpers)�credentials)�
exceptions)�impersonated_credentials)�metrics)�sts)�utilsZexternal_accountz/urn:ietf:params:oauth:grant-type:token-exchangez-urn:ietf:params:oauth:token-type:access_tokenz8https://cloudresourcemanager.googleapis.com/v1/projects/z&https://sts.{universe_domain}/v1/tokenc @ s"