Jesús Pérez d9ef2f0d5b
Some checks failed
Build and Test / Validate Setup (push) Has been cancelled
Build and Test / Build (darwin-amd64) (push) Has been cancelled
Build and Test / Build (darwin-arm64) (push) Has been cancelled
Build and Test / Build (linux-amd64) (push) Has been cancelled
Build and Test / Build (windows-amd64) (push) Has been cancelled
Build and Test / Build (linux-arm64) (push) Has been cancelled
Build and Test / Security Audit (push) Has been cancelled
Build and Test / Package Results (push) Has been cancelled
Build and Test / Quality Gate (push) Has been cancelled
Nightly Build / Check for Changes (push) Has been cancelled
Nightly Build / Validate Setup (push) Has been cancelled
Nightly Build / Nightly Build (darwin-amd64) (push) Has been cancelled
Nightly Build / Nightly Build (darwin-arm64) (push) Has been cancelled
Nightly Build / Nightly Build (linux-amd64) (push) Has been cancelled
Nightly Build / Nightly Build (windows-amd64) (push) Has been cancelled
Nightly Build / Nightly Build (linux-arm64) (push) Has been cancelled
Nightly Build / Create Nightly Pre-release (push) Has been cancelled
Nightly Build / Notify Build Status (push) Has been cancelled
Nightly Build / Nightly Maintenance (push) Has been cancelled
chore: update all plugins to Nushell 0.111.0
- Bump all 18 plugins from 0.110.0 to 0.111.0
  - Update rust-toolchain.toml channel to 1.93.1 (nu 0.111.0 requires ≥1.91.1)

  Fixes:
  - interprocess pin =2.2.x → ^2.3.1 in nu_plugin_mcp, nu_plugin_nats, nu_plugin_typedialog
    (required by nu-plugin-core 0.111.0)
  - nu_plugin_typedialog: BackendType::Web initializer — add open_browser: false field
  - nu_plugin_auth: implement missing user_info_to_value helper referenced in tests

  Scripts:
  - update_all_plugins.nu: fix [package].version update on minor bumps; add [dev-dependencies]
    pass; add nu-plugin-test-support to managed crates
  - download_nushell.nu: rustup override unset before rm -rf on nushell dir replace;
    fix unclosed ) in string interpolation
2026-03-11 03:22:42 +00:00

1.2 KiB

MFA Commands Quick Reference

Installation

bash
# Build plugin
cargo build --release

# Register with Nushell
plugin add ./target/release/nu_plugin_auth
plugin use auth

Commands

TOTP Enrollment

bash
# Enroll with QR code
auth mfa enroll totp

# For specific user
auth mfa enroll totp --user alice

# Custom Control Center URL
auth mfa enroll totp --url http://control.example.com:8081

Output: QR code + secret + backup codes

TOTP Verification

bash
# Verify code
auth mfa verify --code 123456

# For specific user
auth mfa verify --code 123456 --user alice

Output: `{valid: true/false, message: "..."}

Complete Workflow

bash
# 1. Login
auth login admin --save

# 2. Enroll MFA
auth mfa enroll totp
# Scan QR code with Google Authenticator or Authy

# 3. Verify code from app
auth mfa verify --code 123456

Documentation

  • Full Documentation: MFA_IMPLEMENTATION_SUMMARY.md
  • Verification Report: VERIFICATION.md
  • Examples: examples/mfa_workflow.nu

Status

Complete and Ready for Testing

  • Binary: target/release/nu_plugin_auth (11MB)
  • Commands: 6 total (2 new MFA commands)
  • Build: Success (28.58s)
  • Dependencies: totp-rs 5.7, qrcode 0.14