Skip to content

feat(auth): let users copy their access token #46

Closed

Description

@uniqueg

Why?

D4.4 promises guides for using ELIXIR On-Cloud from the web portal and from the CLI (ga4gh-cli of ga4gh-sdk). Services require bearer tokens, but ga4gh-cli has no login flow yet; it reads a static oauth_access_token from its config file. Copying the token from Krini is the stopgap until the CLI gets the device code flow.

How?

  1. A "CLI / API access" panel for logged-in users with compute access only: reveal on click (not shown by default), copy button, expiry time, and a ready-to-paste ga4gh-cli config snippet pointing at the selected gateway or service (from feat: browse services from a registry #40, no hard-coded URL).
  2. Warn that the token is personal, works against every service that accepts Krini's tokens until it expires, and must not be shared or committed.
  3. Fetch the token from the same-origin token route of feat(auth): send the user's token to services #44 (not from a readable cookie); never log it.
  4. Operator switch for the panel (e.g. KRINI_TOKEN_COPY), on by default; operators can turn it off.
  5. Document the flow as input for the D4.4 CLI guide.

Out of scope: device code login in ga4gh-cli itself (follow-up upstream in ga4gh-sdk).

Acceptance criteria

  • A member can copy a token, paste it into the ga4gh-cli config and run a TES task through the gateway.
  • Non-members and anonymous visitors don't see the panel; it is shown by default, and the operator switch hides it for everyone.

Dependencies: #43, #44.


Successor of elixir-cloud-aai/tes-dashboard#37 (the TES Dashboard is retired in favour of Krini).

Activity

  1. added
    priority: high
    status: in progress
    type: auth
    type: feature
    workload: hours
    ecp-wp4: M4.4
    ecp-wp4: D4.4
    on Oct 24, 2026
  2. moved this from Backlog to In progress in ELIXIR On-Cloudon Oct 24, 2026
  3. added
    priority: low
    flag: nice to have
    and removed
    priority: high
    on Nov 8, 2026
  4. moved this from In progress to Backlog in ELIXIR On-Cloudon Nov 8, 2026
  5. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 10, 2026
  6. uniqueg commented on Nov 12, 2026

    @uniqueg
    MemberAuthor

    Done in the rewrite on staging (confirmed by @AnonymousXC).

  7. moved this from In progress to Done in ELIXIR On-Cloudon Nov 12, 2026
  8. removed
    status: in progress
    on Nov 13, 2026
  9. added this to the v0.1.0 milestone on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: D4.4ecp-wp4: M4.4flag: nice to havepriority: lowtype: authtype: featureworkload: hours

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions