cognito_device_credentials - bruno-beloff/scs_mfr GitHub Wiki
docs > software repositories > scs_mfr > commands > system identity
DESCRIPTION
The cognito_device_credentials utility is used to assert the device in the Cognito devices pool, or test the validity of the Cognito identity for the device. The credentials are derived from the device system ID and shared secret.
In --assert and --test modes, the utility outputs the Cognito device record. Otherwise, the utility outputs the credentials.
SYNOPSIS
cognito_device_credentials.py [{ -a | -t }] [-v]
Options | |
---|---|
--version | show program's version number and exit |
-h, --help | show this help message and exit |
-a, --assert | assert the credentials as a Cognito device |
-t, --test | test the credentials |
-v, --verbose | report narrative to stderr |
EXAMPLES
./cognito_device_credentials.py -t
DOCUMENT EXAMPLE - CREDENTIALS
{"username": "scs-be2-3", "password": "################"}
DOCUMENT EXAMPLE - DEVICE
{"username": "scs-be2-3", "created": "2023-04-25T10:05:55Z", "last-updated": "2023-04-25T10:05:55Z"}