Authentication refactoring.
This commit is contained in:
@@ -26,14 +26,14 @@ Note: `rest --header` is a command-specific HTTP header option and is unrelated
|
||||
|
||||
**Command name:** `login`
|
||||
|
||||
**Usage:** `sk-az-tools login [--resources <csv>] [--use-device-code] [--no-browser] [--browser <name>] [--browser-profile <profile>] [global options]`
|
||||
**Usage:** `sk-az-tools login [resource...] [--use-device-code] [--no-browser] [--browser-name <name>] [--browser-profile <profile>] [global options]`
|
||||
|
||||
**Options:**
|
||||
|
||||
- `--resources` <csv> - Comma-separated resources to authenticate. Allowed values: `graph`, `devops`, `arm`. Default is all three.
|
||||
- `[resource...]` - One or more resources to authenticate. Allowed values: `graph`, `devops`, `azurerm`. Default is `azurerm`.
|
||||
- `--use-device-code` - Use device code flow instead of browser-based interactive flow.
|
||||
- `--no-browser` - Do not launch browser automatically. Print the sign-in URL to stderr.
|
||||
- `--browser` <name> - Browser keyword used for interactive sign-in. Allowed values: `brave`, `browser`, `browserPrivate`, `chrome`, `edge`, `firefox`.
|
||||
- `--browser-name` <name> - Browser keyword used for interactive sign-in. Allowed values: `brave`, `browser`, `browserPrivate`, `chrome`, `edge`, `firefox`.
|
||||
- `--browser-profile` <name> - Chromium profile name (for example: `Default`, `Profile 1`).
|
||||
|
||||
**Description:** The `login` command authenticates user sign-in for selected resource audiences and caches tokens for subsequent commands.
|
||||
|
||||
Reference in New Issue
Block a user