iqm.iqm_client.iqm_client.ExternalToken#

class iqm.iqm_client.iqm_client.ExternalToken(*, auth_server_url, access_token)#

Bases: BaseModel

Externally managed token for maintaining a session with the authentication server.

  • Fields auth_server_url and access_token are loaded from an external resource, e.g. file generated by Cortex CLI’s token manager.

Attributes

model_computed_fields

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

auth_server_url

Base URL of the authentication server

access_token

current access token of the session

Methods

Parameters:
  • auth_server_url (str) –

  • access_token (str) –

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'access_token': FieldInfo(annotation=str, required=True), 'auth_server_url': FieldInfo(annotation=str, required=True)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

auth_server_url: str#

Base URL of the authentication server

access_token: str#

current access token of the session