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:
BaseModelRequest 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 fieldsclient_id,grant_type,usernameandpassword.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_idandrefresh_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].