Chapter 10. auth
Foreman connection login/logout
Usage
hammer auth [OPTIONS] SUBCOMMAND [ARG] ...
# hammer auth [OPTIONS] SUBCOMMAND [ARG] ...
Options
-
-h,--help– Print help
10.1. auth login Copy linkLink copied to clipboard!
Set credentials
Usage
hammer auth login [OPTIONS] SUBCOMMAND [ARG] ...
# hammer auth login [OPTIONS] SUBCOMMAND [ARG] ...
Options
-
-h,--help– Print help
10.1.1. auth login basic Copy linkLink copied to clipboard!
provide username and password
Usage
hammer auth login basic [OPTIONS]
# hammer auth login basic [OPTIONS]
Options
-
-h,--help– Print help -
-p,--password VALUE– Password to access the remote system -
-u,--username VALUE– Username to access the remote system
10.1.2. auth login basic-external Copy linkLink copied to clipboard!
Authenticate against external source (IPA/PAM) with credentials
Usage
hammer auth login basic-external [OPTIONS]
# hammer auth login basic-external [OPTIONS]
Options
-
-h,--help– Print help -
-p,--password VALUE– Password to access the remote system -
-u,--username VALUE– Username to access the remote system
10.1.3. auth login negotiate Copy linkLink copied to clipboard!
negotiate the login credentials from the auth ticket (Kerberos)
Usage
hammer auth login negotiate [OPTIONS]
# hammer auth login negotiate [OPTIONS]
Options
-
-h,--help– Print help
10.1.4. auth login oauth Copy linkLink copied to clipboard!
supports for both with/without 2fa
Usage
hammer auth login oauth [OPTIONS]
# hammer auth login oauth [OPTIONS]
Options
-
-a,--oidc-authorization-endpoint VALUEOpenidc provider URL which issues authentication code (two factor only) -
-c,--oidc-client-id VALUE– Client id used in the Openidc provider -
-f,--two-factor– Authenticate with two factor -
-h,--help– Print help -
-p,--password VALUE– Password to access the remote system -
-r,--oidc-redirect-uri VALUE– Redirect URI for the authentication code grant flow -
-t,--oidc-token-endpoint VALUE– Openidc provider URL which issues access token -
-u,--username VALUE– Username to access the remote system
10.2. auth logout Copy linkLink copied to clipboard!
Wipe your credentials
Usage
hammer auth logout [OPTIONS]
# hammer auth logout [OPTIONS]
Options
-
-h,--help– Print help
10.3. auth status Copy linkLink copied to clipboard!
Information about current connections
Usage
hammer auth status [OPTIONS]
# hammer auth status [OPTIONS]
Options
-
-h,--help– Print help