Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: UiPath/uipathcli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.40
Choose a base ref
...
head repository: UiPath/uipathcli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.41
Choose a head ref
  • 2 commits
  • 16 files changed
  • 2 contributors

Commits on May 14, 2025

  1. Add support for refresh tokens

    The CLI makes the user go through the oauth login authorization flow every
    time the access token expired. The access tokens are short-lived and
    expiration is currently set to 1 hour which requires the user to
    re-login almost every time they are using the CLI.
    
    Taking advantage of the refresh token support in the Identity Server to
    automatically renew access tokens for the user. If there is a valid
    refresh token, there is no action required by the user.
    
    In case the refresh token expired or the renewal of the access token
    fails for any other reason, the user is required to login again.
    
    Implementation:
    
    - Automatically adding the offline_access scope during the oauth flow so
      that the Identity Server returns a refresh token.
    
    - Caching the refresh token using the cache package similar to access
      tokens.
    
    - Added new configuration parameter `offlineAccess` to disable refresh
      token support, e.g.
    
    ```
    - name: default
      organization: <your-org>
      tenant: defaulttenant
      auth:
        offlineAccess: false
    ```
    
    - Extended debug logging to log identity server requests and responses
      as well as detailed log messages for refresh token and access token
      handling. Redacting the client secret and refresh tokens to avoid them
      being accidentally leaked
    
    Implements #193
    thschmitt committed May 14, 2025
    Configuration menu
    Copy the full SHA
    8dd42a6 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2025

  1. Merge pull request #195 from UiPath/feature/refresh-token-support

    Add support for refresh tokens
    thschmitt authored May 22, 2025
    Configuration menu
    Copy the full SHA
    9bd99ed View commit details
    Browse the repository at this point in the history
Loading