enpxio auth list¶
Lists accounts whose credentials have been obtained using enpxio auth login
and shows which account is active. The active account is used by enpxio to access the EnPowerX Platform. While there is no limit on the number of accounts with stored credentials, there is only one active account.
Synopsis¶
enpxio auth list
[--active
] [-o
]
Flags¶
--active
- Show only the active account
-o, --output
- Specify the output format, accepts
json
oryaml
Default:json
Example¶
enpxio auth list
Output:
[
{
"OpenIDConnectURL": "https://auth.dev.enpowerx.io",
"ClientID": "aL9flk23KS3nKKJD3423naslkj3ASj4k",
"ClientSecret": "***REDACTED***",
"GrantType": "client_credentials",
"Scopes": [
"https://apis.enpowerx.io"
],
"Audience": "https://apis.enpowerx.io",
"LastToken": null
},
{
"OpenIDConnectURL": "https://auth.dev.enpowerx.io",
"ClientID": "iADL34oi445JLjE4AreqIJ0831jfNNkL",
"ClientSecret": "***REDACTED***",
"GrantType": "client_credentials",
"Scopes": [
"https://apis.enpowerx.io"
],
"Audience": "https://apis.enpowerx.io",
"LastToken": {
"access_token": "***REDACTED***",
"token_type": "Bearer",
"refresh_token": "***REDACTED***",
"expiry": "2020-08-04T14:50:00.6270131+02:00"
}
}
]