身份验证
auth 命令用于管理连接一个或多个 Redmine 实例的身份验证配置文件。
login 交互式登录向导,创建新的配置文件。
list 列出所有已保存的身份验证配置文件。
switch 切换当前活跃的身份验证配置文件。
status 显示当前身份验证状态。
logout 移除一个身份验证配置文件。
启动交互式登录向导:
redmine auth loginredmine auth login --name work # 显式指定配置文件名称| 标志 | 描述 |
|---|---|
--name | 配置文件名称(默认:从服务器主机名派生) |
redmine auth list显示每个配置文件的服务器 URL 及当前活跃的配置文件。
switch
Section titled “switch”redmine auth switch打开交互式选择器。所选配置文件将成为后续命令的默认配置文件。
status
Section titled “status”redmine auth status显示活跃配置文件名称、服务器 URL 及身份验证方式。
logout
Section titled “logout”redmine auth logout # 当前配置文件redmine auth logout work # 指定名称的配置文件移除前会提示你确认。
redmine auth loginredmine auth login --name workredmine auth listredmine auth switchredmine auth statusredmine --profile work issues listredmine auth logoutredmine auth logout work