class documentation

Undocumented

Method __init__ Undocumented
Method configure_client Hook called when creating a client to allow modification of configuration.
Async Method connect_service_client Hook called when connecting to the Temporal service.
Method name Get the name of this plugin. Can be overridden if desired to provide a more appropriate name.
Async Method _refresh_api_key Keep a service client's API key up to date while it is alive.
Instance Variable _cache Undocumented
Instance Variable _ids Undocumented
Instance Variable _refresh_tasks Undocumented

Inherited from Plugin:

Method version Get the version of this plugin. Can be overridden to provide a version.
def __init__(self, ids: SecretIDs, cache: SecretCache): (source)

Undocumented

Hook called when creating a client to allow modification of configuration.

This method is called during client creation and allows plugins to modify the client configuration before the client is fully initialized. Plugins can add interceptors, modify connection parameters, or change other settings.

Parameters
config:temporalio.client.ClientConfigThe client configuration dictionary to potentially modify.
Returns
temporalio.client.ClientConfigThe modified client configuration.

Hook called when connecting to the Temporal service.

This method is called during service client connection and allows plugins to intercept or modify the connection process. Plugins can modify connection parameters, add authentication, or provide custom connection logic.

Parameters
config:temporalio.service.ConnectConfigThe service connection configuration.
next:Callable[[temporalio.service.ConnectConfig], Awaitable[temporalio.service.ServiceClient]]Undocumented
Returns
temporalio.service.ServiceClientThe connected service client.
def name(self) -> str: (source)

Get the name of this plugin. Can be overridden if desired to provide a more appropriate name.

Returns
strThe fully qualified name of the plugin class (module.classname).
async def _refresh_api_key(self, service_client_ref: weakref.ref[temporalio.service.ServiceClient], api_key: str | None, tel: Telemetry): (source)

Keep a service client's API key up to date while it is alive.

The task belongs to the event loop the client was connected on, so it stops when that loop does.

Undocumented

Undocumented

_refresh_tasks: set[asyncio.Task[None]] = (source)

Undocumented