Account commandslatest · 0.1.2
horizech whoami
Show who is signed in and where the session is stored.
horizech whoami [--json]Also available as hws whoami.
Exits with code 1 and Not signed in. Run "horizech login". when there is no session. hws whoami does the same.
Options
| Option | Description | Default |
|---|---|---|
--json | Print a machine-readable result on stdout. Progress goes to stderr. |
Examples
Check the session
$ horizech whoamiWith --json
stdout
{
"user": { "sub": "…", "email": "[email protected]", "name": "Your Name", "is_root": false },
"store": "keychain",
"authUrl": "https://horizech.com",
"apiUrl": "https://api.horizech.com"
}API calls
What this command calls, for debugging and for anyone scripting the same thing. Registry paths are on https://api.horizech.com, OAuth2 paths on https://horizech.com. See Registry API.
| Method | Path | Notes |
|---|---|---|
GET | /OAuth2/UserInfo | identity provider |