SAP Knowledge Base Article - Public

3532856 - OAuth2 Client "Interactive Usage" for CLI commands

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

  1. Create a OAuth2 client "Interactive Usage".
  2. 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

Keywords

CLI, Interactive Usage, OAuth, cache, browser , KBA , DS-API-CLI , SAP Datasphere Command-Line Interface , How To

Product

SAP Datasphere 1.0