Get an OAuth access token for a configured provider
Synopsis
oauth-token [<providerId>] [options]
Description
oauth-token retrieves an OAuth access token for a registered provider in SLICC. If a valid (non-expired) token already exists, it is printed to stdout immediately. If no valid token exists or the token has expired, the OAuth login flow is triggered automatically.
Options
<providerId> Get token for a specific provider
--list List all OAuth providers with their current status
-h, --help Show help message
Examples
$ oauth-token adobe
Get the access token for the "adobe" provider.
$ curl -H "Authorization: Bearer $(oauth-token adobe)" https://api.corp.com/data
Use the token in a subshell to authenticate an API request.
$ oauth-token --list
List all OAuth providers showing login status.
Notes
This is a SLICC-specific command with no native Unix equivalent. The raw access token is printed to stdout, making it composable with other shell commands.
See Also
git config github.token