Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

Cb Response: Collecting a user API token from the server

Cb Response: Collecting a user API token from the server

Environment

  • Cb Response 5.x, 6.x

Objective

Users may need the API token for a generic account used for integrations. If using a service like OKTA, accessing the account from the UI may not be possible.

Resolution

The token can be acquired via a query to the underlying Postgres database. Substitute username with the account whose token needs to be collected.

psql cb -p 5002 -c "select auth_token from cb_user where username='username'"

If you can access the user account via the UI, the token can be collected via the API Token field under the user's profile. To access this directly, go to https://response-server/#/profile/token.

Related Content

Labels (1)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎12-21-2017
Views:
833
Contributors