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

UiPath / uipathcli / 15020301412
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: chore/update-readme
DEFAULT BRANCH: main
Ran 14 May 2025 12:11PM UTC
Jobs 1
Files 132
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 12:10PM UTC coverage: 90.808% (+0.2%) from 90.6%
15020301412

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

292 of 299 new or added lines in 12 files covered. (97.66%)

6698 of 7376 relevant lines covered (90.81%)

1.02 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
93.75
-0.69% auth/identity_client.go
2
86.67
auth/token_response_json.go
4
89.71
2.52% auth/oauth_authenticator.go
Jobs
ID Job ID Ran Files Coverage
1 15020301412.1 14 May 2025 12:11PM UTC 132
90.81
GitHub Action Run
Source Files on build 15020301412
  • Tree
  • List 132
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 04567c23 on github
  • Prev Build on main (#14925811953)
  • Next Build on feature/refresh-token-support (#15020314100)
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