Skip to content

fractal auth - #931

Merged
ychiucco merged 9 commits into
mainfrom
925-introduce-set-token-command
Aug 3, 2026
Merged

fractal auth#931
ychiucco merged 9 commits into
mainfrom
925-introduce-set-token-command

Conversation

@tcompa

@tcompa tcompa commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

This introduces new commands like

$ export FRACTAL_SERVER=https://fractal.example.org/backend

$ export FRACTAL_WEB=https://fractal.example.org

$ uv run fractal auth check-token
File not found at /home/user/.cache/fractal/token.txt

$ uv run fractal --token-path /tmp/token auth check-token
File not found at /tmp/token

$ uv run fractal --token-path /tmp/token auth set-token

Paste a valid token here (you can find it at https://fractal.example.org/profile/token), and it will be written to /tmp/token: ey[redacted]

$ uv run fractal --token-path /tmp/token auth check-token
Valid token for name.surname@example.org found at /tmp/token

$ uv run fractal --token-path /tmp/token auth clear-token
Removed /tmp/token.

$ uv run fractal --token-path /tmp/token auth check-token
File not found at /tmp/token

Checklist before merging

  • I added an appropriate entry to CHANGELOG.md

@tcompa tcompa linked an issue Jul 30, 2026 that may be closed by this pull request
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/fractal_client
  main.py
  src/fractal_client/cmd
  __init__.py
  _auth.py
  src/fractal_client/parser
  __init__.py
  _auth.py
Project Total  

This report was generated by python-coverage-comment-action

@tcompa
tcompa requested a review from ychiucco July 30, 2026 08:59
@ychiucco
ychiucco merged commit 111583f into main Aug 3, 2026
17 checks passed
@ychiucco
ychiucco deleted the 925-introduce-set-token-command branch August 3, 2026 07:38
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.

Introduce fractal auth

2 participants