iqm.iqm_client.cli.auth.AuthRequest#
- class iqm.iqm_client.cli.auth.AuthRequest(*, client_id: str, grant_type: GrantType | None = None, username: str | None = None, password: str | None = None, refresh_token: str | None = None)#
Bases:
BaseModel
Request sent to authentication server for access token and refresh token, or for terminating the session. * Token request with grant type
'password'
starts a new session in the authentication server.It uses fields
client_id
,grant_type
,username
andpassword
.Token request with grant type
'refresh_token'
is used for maintaining an existing session. It uses fieldclient_id
,grant_type
,refresh_token
.Logout request uses only fields
client_id
andrefresh_token
.
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
name of the client for all request types
type of token request, in
{'password', 'refresh_token'}
username for grant type
'password'
password for grant type
'password'
refresh token for grant type
'refresh_token'
and logout requestMethods
- Parameters:
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].