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

UiPath / uipathcli
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: feature/upgrade-openapi-specs
DEFAULT BRANCH: main
Repo Added 07 Oct 2023 02:25PM UTC
Files 132
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

LAST BUILD ON BRANCH feature/refresh-token-support
branch: feature/refresh-token-support
CHANGE BRANCH
x
Reset
  • feature/refresh-token-support
  • feature/add-package-documentation
  • feature/analyze-feed-auth
  • feature/api-package
  • feature/avoid-escape-equal-sign
  • feature/clear-command
  • feature/code-coverage
  • feature/collect-coverage-all-os
  • feature/command-builder
  • feature/command-builder-refactor
  • feature/command-errors
  • feature/config-command-tenant-list
  • feature/configurable-attempts-and-timeout
  • feature/configure-tenant-list
  • feature/content-length-input
  • feature/custom-headers-plugins
  • feature/custom-operation-name
  • feature/custom-operation-names
  • feature/dataservice
  • feature/digitize-command-default-project
  • feature/download-dotnet-core-runtime
  • feature/extend-plugin-parameters
  • feature/folder-name
  • feature/github-actions-upgrade
  • feature/go-1.24
  • feature/go1.22.2
  • feature/go122
  • feature/governance-file
  • feature/http-proxy-support
  • feature/identity-client
  • feature/identity-uri
  • feature/improve-command-documentation
  • feature/improve-config-set-command
  • feature/improve-studio-project-compatibility-error-message
  • feature/library-feed-auth
  • feature/login-confidential-app
  • feature/network-package
  • feature/orchestrator-v17
  • feature/pack-output-type-validation
  • feature/pat-documentation
  • feature/plugins-offline
  • feature/project-builder
  • feature/project-pack
  • feature/publish-create-release
  • feature/readme-example-generative-extractor
  • feature/readme-examples
  • feature/readme-pat
  • feature/rename-service-version
  • feature/restore-command
  • feature/security-policy
  • feature/split-plugin-tests
  • feature/split-tests
  • feature/split-tests-and-commands
  • feature/static-linking
  • feature/studio
  • feature/studio-folder-name
  • feature/studio-optional-parameters
  • feature/studio-package-publish
  • feature/studio-publish
  • feature/studio-publish-command
  • feature/test-on-windows-macos
  • feature/test-parallel
  • feature/test-run-command
  • feature/test-run-folder-id
  • feature/test-run-junit-robotlogs
  • feature/test-run-parallel
  • feature/test-run-readme
  • feature/test-sequence
  • feature/update-codeowners
  • feature/update-dependencies
  • feature/update-dependencies-12-2024
  • feature/update-deps-latest-minor
  • feature/update-examples
  • feature/update-latest-definitions-01-2024
  • feature/update-latest-definitions-08-2024
  • feature/update-latest-definitions-12-2024
  • feature/upgrade-dependencies-v2
  • feature/upgrade-deps
  • feature/upgrade-go-1.23
  • feature/upgrade-golangci-v2
  • feature/upgrade-openapi-specifications
  • feature/upgrade-openapi-specs
  • feature/uri-builder
  • feature/user-agent
  • feature/utils-split-up
  • feature/version-command
  • feature/version-flag
  • fix/library-auth-identity-url
  • fix/short-help-option
  • fix/show-example-usage-nested-object
  • fix/studio-package-progressbar
  • fix/uri-builder
  • fix/use-testdata-templates
  • main
  • refs/tags/plugins-v2.0.0
  • refs/tags/plugins.v2.0.0
  • refs/tags/plugins/v2.0.0
  • refs/tags/plugins_v2.0.0
  • refs/tags/v2.0.0-plugin
  • refs/tags/v2.0.0-uipcli

14 May 2025 12:10PM UTC coverage: 90.808% (+0.2%) from 90.6%
15020314100

Pull #195

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
Pull Request #195: Add support for refresh tokens

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

Relevant lines Covered
Build:
Build:
7376 RELEVANT LINES 6698 COVERED LINES
1.02 HITS PER LINE
Source Files on feature/refresh-token-support
  • Tree
  • List 132
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
15020314100 feature/refresh-token-support 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-log... Pull #195 14 May 2025 12:12PM UTC thschmitt github
90.81
15020301412 feature/refresh-token-support 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-log... push 14 May 2025 12:11PM UTC thschmitt github
90.81
15020238904 feature/refresh-token-support 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-log... push 14 May 2025 12:08PM UTC thschmitt github
90.81
15017548364 feature/refresh-token-support 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-log... push 14 May 2025 09:46AM UTC thschmitt github
90.76
15015252130 feature/refresh-token-support 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-log... push 14 May 2025 07:52AM UTC thschmitt github
90.68
14993240789 feature/refresh-token-support Add support for refresh tokens push 13 May 2025 09:35AM UTC thschmitt github
90.68
See All Builds (323)
  • Repo on GitHub
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