eg credentials list

Description

List all credentials for consumer

Usage

eg credentials list -c <consumerId> [options]

Options

Name, longform Type Default Description
-q, --quiet boolean false Only show major pieces of output
-c, --consumerId required   User Id or App Id or User username
-f, --filter array active Shows active, archived credentials, or both

Examples

List all credentials of consumer

$ eg credentials list -c 2e90e145-bc4b-4ff1-a63a-a097644ba360 -f active archived
{
  "createdAt": "Thu Jul 20 2017 15:31:00 GMT+0300 (EEST)",
  "isActive": true,
  "password": "$2a$10$MUsD3XDWYvRONZJYR1R.xuD7jt7qg7VdYoIKfUK0C52WheV/bqkq6",
  "updatedAt": "Thu Jul 20 2017 15:31:00 GMT+0300 (EEST)",
  "type": "basic-auth"
}
{
  "consumerId": "test",
  "createdAt": "Thu Jul 20 2017 15:30:52 GMT+0300 (EEST)",
  "isActive": false,
  "keyId": "0brdq8DPToB2c2GuJ9wHiI",
  "keySecret": "2HqtSc4zEXZ4H1gq54zhOf",
  "scopes": "null",
  "updatedAt": "Thu Jul 20 2017 15:30:52 GMT+0300 (EEST)",
  "type": "key-auth"
}

List all active credentials of consumer

$ eg credentials list -c 2e90e145-bc4b-4ff1-a63a-a097644ba360
{
  "createdAt": "Thu Jul 20 2017 15:31:00 GMT+0300 (EEST)",
  "isActive": true,
  "password": "$2a$10$MUsD3XDWYvRONZJYR1R.xuD7jt7qg7VdYoIKfUK0C52WheV/bqkq6",
  "updatedAt": "Thu Jul 20 2017 15:31:00 GMT+0300 (EEST)",
  "type": "basic-auth"
}