diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-08 15:35:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 15:35:00 +0300 |
commit | fd091eacbd24cdf70af593041ecee8939bd57682 (patch) | |
tree | 50525ff6b890d87681a6180da6439049e5ab1c1f /op-mode-definitions | |
parent | c57a519ea9af262f410e9e6887684e772f34fe69 (diff) | |
parent | 76cf45917de5ed3a04132029d33a240ebd5877d6 (diff) | |
download | vyos-1x-fd091eacbd24cdf70af593041ecee8939bd57682.tar.gz vyos-1x-fd091eacbd24cdf70af593041ecee8939bd57682.zip |
Merge pull request #1602 from goodNETnick/goodnetnick-shloginotp-T4754
login: T4754: show configured 2FA OTP key
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/show-system.xml.in | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/op-mode-definitions/show-system.xml.in b/op-mode-definitions/show-system.xml.in index 85bfdcdba..116c7460f 100644 --- a/op-mode-definitions/show-system.xml.in +++ b/op-mode-definitions/show-system.xml.in @@ -102,6 +102,55 @@ <help>Show user accounts</help> </properties> <children> + <node name="authentication"> + <properties> + <help>Show user account authentication information</help> + </properties> + <children> + <tagNode name="user"> + <properties> + <help>Show configured user</help> + <completionHelp> + <path>system login user</path> + </completionHelp> + </properties> + <children> + <node name="otp"> + <properties> + <help>Show OTP key information</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="full"</command> + <children> + <leafNode name="full"> + <properties> + <help>Show full settings, including QR code and commands for VyOS</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="full"</command> + </leafNode> + <leafNode name="key-b32"> + <properties> + <help>Show OTP authentication secret in Base32 (used in mobile apps)</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="key-b32"</command> + </leafNode> + <leafNode name="qrcode"> + <properties> + <help>Show OTP authentication QR code</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="qrcode"</command> + </leafNode> + <leafNode name="uri"> + <properties> + <help>Show OTP authentication otpauth URI</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="uri"</command> + </leafNode> + </children> + </node> + </children> + </tagNode> + </children> + </node> <node name="users"> <properties> <help>Show user account information</help> |