• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

UiPath / uipathcli / 15017548364
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: chore/update-readme
DEFAULT BRANCH: main
Ran 14 May 2025 09:46AM UTC
Jobs 1
Files 130
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 May 2025 09:44AM UTC coverage: 90.764% (+0.2%) from 90.6%
15017548364

push

github

thschmitt
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 https://github.com/UiPath/uipathcli/issues/193

241 of 247 new or added lines in 10 files covered. (97.57%)

6653 of 7330 relevant lines covered (90.76%)

1.02 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
93.75
-0.69% auth/identity_client.go
4
89.71
2.52% auth/oauth_authenticator.go
Jobs
ID Job ID Ran Files Coverage
1 15017548364.1 14 May 2025 09:46AM UTC 130
90.76
GitHub Action Run
Source Files on build 15017548364
  • Tree
  • List 130
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4b10b42b on github
  • Prev Build on main (#14925811953)
  • Next Build on feature/refresh-token-support (#15020238904)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc