JWT Auth Plugin for the Adobe I/O CLI
$ npm install -g @adobe/aio-cli-plugin-jwt-auth
$ ./bin/run COMMAND
running command...
$ ./bin/run (-v|--version|version)
@adobe/aio-cli-plugin-jwt-auth/2.0.4 darwin-x64 node-v10.18.1
$ ./bin/run --help [COMMAND]
USAGE
$ ./bin/run COMMAND
...
get the access token for the Adobe I/O Console
USAGE
$ ./bin/run jwt-auth:access-token
OPTIONS
-b, --bare print access token only
-f, --force get a new access token
-p, --passphrase=passphrase the passphrase for the private-key
--no-prompt do not prompt for passphrase
DESCRIPTION
You must have a 'jwt-auth' key in your config, that has all your config data in .json format:
aio config set jwt-auth --json --file path/to/your/config.json
EXAMPLE
jwt_auth:
{
"client_id": "...",
"client_secret": "..."
"jwt_payload": {
"iss": "...",
"sub": "...",
"...": true,
"aud": "..."
},
"jwt_private_key": "/path/to/cert"
}
See code: src/commands/jwt-auth/access-token.js