iqm.iqm_client.iqm_client.Credentials#
- class iqm.iqm_client.iqm_client.Credentials(*, auth_server_url, username, password, access_token=None, refresh_token=None)#
Bases:
BaseModel
Credentials and tokens for maintaining a session with the authentication server.
Fields
auth_server_url
,username
andpassword
are provided by the user.Fields
access_token
andrefresh_token
are loaded from the authentication server and refreshed periodically.
Attributes
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
Base URL of the authentication server
username for logging in to the server
password for logging in to the server
current access token of the session
current refresh token of the session
Methods
- Parameters:
- 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=Union[str, NoneType], required=False, default=None), 'auth_server_url': FieldInfo(annotation=str, required=True), 'password': FieldInfo(annotation=str, required=True), 'refresh_token': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'username': 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.