搜索

2.8. hammer auth

download PDF

Foreman 连接登录/注销

Usage:
    hammer auth [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 login                         Set credentials
 logout                        Wipe your credentials
 status                        Information about current connections

Options:
 -h, --help                    Print help

2.8.1. hammer 身份验证登录

设置凭证

Usage:
    hammer auth login [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 basic                         Provide username and password
 oauth                         Supports for both with/without 2fa

Options:
 -h, --help                    Print help

2.8.1.1. hammer 身份验证登录基础

提供用户名和密码

Usage:
    hammer auth login basic [OPTIONS]

Options:
 -h, --help                    Print help
 -p, --password PASSWORD       Password to access the remote system
 -u, --username USERNAME       Username to access the remote system

2.8.1.2. hammer 身份验证登录 oauth

支持带/没有 2fa 的两者都

Usage:
    hammer auth login oauth [OPTIONS]

Options:
 -a, --oidc-authorization-endpoint OPENIDC_AUTHORIZATION_ENDPOINT Openidc provider URL which issues authentication code (two factor only)
 -c, --oidc-client-id OPENIDC_CLIENT_ID                           Client id used in the Openidc provider
 -f, --two-factor                                                 Authenticate with two factor
 -h, --help                                                       Print help
 -p, --password PASSWORD                                          Password to access the remote system
 -r, --oidc-redirect-uri OPENIDC_REDIRECT_URI                     Redirect URI for the authentication code grant flow
 -t, --oidc-token-endpoint OPENIDC_TOKEN_ENDPOINT                 Openidc provider URL which issues access token
 -u, --username USERNAME                                          Username to access the remote system

2.8.2. hammer auth logout

擦除凭证

Usage:
    hammer auth logout [OPTIONS]

Options:
 -h, --help                    Print help

2.8.3. hammer 身份验证状态

有关当前连接的信息

Usage:
    hammer auth status [OPTIONS]

Options:
 -h, --help                    Print help
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.