If you set an application and an API key at the same time, the application wins. If you set
OCCTOO_CLIENT_ID without OCCTOO_CLIENT_SECRET, the CLI stops with an error.
Sign in with your own account
whoami shows your user, organization and roles, read from the access token.
To sign out and remove the stored session:
Use an application in CI
An application is a client id and secret that a program signs in with. Create one in Studio or withocctoo applications create, and give it access to what the job needs.
Set both values as environment variables, for example as secrets in your CI system:
https://auth.occtoo.com with the client credentials flow. You don’t need to call occtoo auth login.
Use an API key
Check your credentials
auth status shows which credential the CLI uses and checks it against the API. Run it when a command fails with an authentication error.