class documentation

Bearer that creates receivers for exchange-based impersonation.

Method __init__ Create an impersonation bearer.
Method receiver Return a receiver that exchanges the actor token.
Method set_channel Set the channel used for token exchange RPCs.
Method set_metrics Attach auth metrics callbacks and propagate them to the actor bearer.
Property metrics_provider Return the auth metric provider label.
Property name Return a cache-friendly name for this impersonation chain.
Property wrapped Return the actor token bearer.
Async Method _token_exchange_service_stub Undocumented
Instance Variable _deferred_channel Undocumented
Instance Variable _max_retries Undocumented
Instance Variable _metrics Undocumented
Instance Variable _service_account_id Undocumented
Instance Variable _source Undocumented
Instance Variable _svc Undocumented

Inherited from Bearer:

Class Method default_metrics_provider Return this bearer's default fully qualified metric provider label.
Async Method close Close the bearer and any wrapped resources.
def __init__(self, service_account_id: str, source: ParentBearer, channel: ClientChannelInterface | DeferredChannel | None = None, max_retries: int = 2, metrics: AuthMetricsLike = None): (source)

Create an impersonation bearer.

def receiver(self) -> Receiver: (source)

Return a receiver that exchanges the actor token.

def set_channel(self, channel: ClientChannelInterface | DeferredChannel | None): (source)

Set the channel used for token exchange RPCs.

def set_metrics(self, metrics: AuthMetricsLike): (source)

Attach auth metrics callbacks and propagate them to the actor bearer.

@property
metrics_provider: str = (source)

Return the auth metric provider label.

Return a cache-friendly name for this impersonation chain.

Return the actor token bearer.

async def _token_exchange_service_stub(self) -> TokenExchangeServiceClient: (source)

Undocumented

_deferred_channel: DeferredChannel | None = (source)

Undocumented

_max_retries = (source)

Undocumented

_service_account_id = (source)

Undocumented

Undocumented