Symptom
There is a need to understand how the OAuth2 Client "Interactive Usage" works with CLI command line interface.
Environment
SAP Datasphere
Reproducing the Issue
- Create a OAuth2 client "Interactive Usage".
- Use it to login using CLI command to Datasphere.
Resolution
- The OAuth2 Client "Interactive Usage" always need the browser for login purpose.
- The token retrieved using the CLI command when logged in will be cached in the local machine till a datasphere logout is issued.
- The refresh token lifetime can be extended to 180 days. The access token life time is 60 minutes. Till the refresh token is valid CLI will be able to use the refresh token to retrieve a new access token. Once the refresh token becomes invalid then there is manual interaction required to get a new refresh token. This would involve the browser usage again.
See Also
- 3461484 - How to get the OAuth2 token for CLI command
- Accessing SAP Datasphere via the Command Line
Keywords
CLI, Interactive Usage, OAuth, cache, browser , KBA , DS-API-CLI , SAP Datasphere Command-Line Interface , How To
Product
SAP Datasphere 1.0