class documentation
class Bearer(ParentBearer): (source)
Constructor: Bearer(service_account_id, source, channel, max_retries, ...)
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 |
Set the channel used for token exchange RPCs. |
| Method | set |
Attach auth metrics callbacks and propagate them to the actor bearer. |
| Property | metrics |
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 |
Undocumented |
| Instance Variable | _deferred |
Undocumented |
| Instance Variable | _max |
Undocumented |
| Instance Variable | _metrics |
Undocumented |
| Instance Variable | _service |
Undocumented |
| Instance Variable | _source |
Undocumented |
| Instance Variable | _svc |
Undocumented |
Inherited from Bearer:
| Class Method | default |
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.
overrides
nebius.aio.token.token.Bearer.nameReturn a cache-friendly name for this impersonation chain.