The default token type to use if not specified as a command line option
The profile type where token type and value should be stored
The description of your service to be used in CLI prompt messages
The session being created from the command line arguments / profile
This is called by the {@link AbstractAuthHandler#process} when it needs a session. Should be used to create a session to connect to the auth service.
The command line arguments to use for building the session
The session object built from the command line arguments.
This is called by the "auth login" command after it creates a session, to obtain a token that can be stored in a profile.
The session object to use to connect to the auth service
The response from the auth service containing a token
This is called by the "auth logout" command after it creates a session, to revoke a token before removing it from a profile.
The session object to use to connect to the auth service
Returns auth handler API that provides convenient functions to create a session from args, and use it to login or logout of an auth service.
This handler is used for both "auth login" and "auth logout" commands.
It determines the correct action to take and calls either processLogin
or processLogout
accordingly.
Command parameters sent by imperative.
Performs the login operation. Builds a session to connect to the auth
service, sends a login request to it to obtain a token, and stores the
resulting token in the profile of type mProfileType
.
Command parameters sent by imperative.
Performs the logout operation. Deletes the token and token type from the profile, and rebuilds the session.
Command parameters sent by imperative.
Generated using TypeDoc
This class is used by the auth command handlers as the base class for their implementation.