Skip to content

Conversation

ewels
Copy link
Member

@ewels ewels commented Sep 4, 2025

This PR introduces a new nextflow auth login command that enables OAuth2 authentication with Seqera Platform using Auth0.

Features

  • OAuth2/PKCE Flow: Implements secure PKCE (Proof Key for Code Exchange) authentication flow
  • Browser-based Login: Opens the user's default browser for authentication
  • Local Callback Server: Runs a temporary local server on port 8085 to handle the OAuth callback
  • Flexible API Endpoints: Prompts user for API URL (default https://api.cloud.seqera.io) - if not recognised, skips auth0 flow and asks user to manually enter a PAT.

Usage

# Authenticate with default Seqera Cloud
nextflow auth login

# Will prompt for API URL (defaults to https://api.cloud.seqera.io)
# Opens browser for authentication
# Saves credentials to ~/.config/seqera/credentials (or $XDG_CONFIG_HOME/seqera/credentials)

Implementation Details

  • Uses Auth0 domain: seqera-development.eu.auth0.com
  • Implements PKCE flow for enhanced security (no client secrets required)
  • Cross-platform browser opening with fallbacks

Configuration

The Auth0 client ID is currently set to a placeholder and will need to be updated with the actual production value before merge.

Related

This implementation aligns with the authentication flow used in the VSCode Nextflow extension.

🤖 Generated with help from Claude Code

Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 1793a83
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/68c31235b95dbb0008e92c13

@ewels ewels force-pushed the nextflow-auth branch 2 times, most recently from 4cbda5f to b8b5d87 Compare September 5, 2025 09:56
@ewels ewels force-pushed the nextflow-auth branch 3 times, most recently from 91ebe5c to 004e102 Compare September 5, 2025 21:03
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