Skip to content

Comments

feat: add interactive OAuth authentication#82

Merged
cristipufu merged 1 commit intomainfrom
feat/oauth-authentication
Feb 22, 2026
Merged

feat: add interactive OAuth authentication#82
cristipufu merged 1 commit intomainfrom
feat/oauth-authentication

Conversation

@cristipufu
Copy link
Member

Summary

  • Adds PKCE-based interactive OAuth authentication to the dev server, matching the Python SDK's uipath auth CLI flow
  • Sidebar shows login UI (environment selector + sign in button), tenant picker, and authenticated status with clickable org/tenant link
  • Session persists across server restarts; automatic token expiry detection with seamless re-auth (remembers tenant)
  • Auth disabled by default in Docker deployments via UIPATH_AUTH_ENABLED=false
  • Bumps version to 0.0.57

Test plan

  • Start dev server with uv run uipath dev server
  • Click "Sign In" in sidebar, verify browser opens UiPath login page
  • After authenticating, verify tenant auto-selection (single tenant) or picker (multiple tenants)
  • Verify .env contains UIPATH_ACCESS_TOKEN and UIPATH_URL
  • Restart server, verify session is restored (green dot + org/tenant shown)
  • Verify token expiry detection shows red dot and click re-authenticates
  • Verify logout clears credentials
  • Verify auth is hidden when UIPATH_AUTH_ENABLED=false

🤖 Generated with Claude Code

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@cristipufu cristipufu force-pushed the feat/oauth-authentication branch from daad411 to b2af538 Compare February 22, 2026 05:12
Implements PKCE-based OAuth flow matching the Python SDK's
`uipath auth` CLI command. A temporary callback server receives
the token from the browser, resolves tenants, and writes
credentials to .env and os.environ. Includes session persistence
across restarts, automatic token expiry detection with re-auth
support, and a configurable flag to disable auth in deployments.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cristipufu cristipufu force-pushed the feat/oauth-authentication branch from b2af538 to b894123 Compare February 22, 2026 05:17
@cristipufu cristipufu merged commit a1c9faa into main Feb 22, 2026
11 checks passed
@cristipufu cristipufu deleted the feat/oauth-authentication branch February 22, 2026 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant