Add nextflow auth command for Seqera Platform authentication#6463
Add nextflow auth command for Seqera Platform authentication#6463pditommaso merged 81 commits intomasterfrom
Conversation
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Set TOWER_ACCESS_TOKEN with new PAT. Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
|
Should be good to go now @pditommaso |
christopher-hakkaart
left a comment
There was a problem hiding this comment.
Suggestions added
Co-authored-by: Chris Hakkaart <chris.hakkaart@seqera.io> Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Co-authored-by: Chris Hakkaart <chris.hakkaart@seqera.io> Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
… tests [ci fast] - Replace consecutive // comments with block /* */ style in CmdAuth and AuthCommandImpl - Rename TOWER_AUTH_ID to TOWER_AUTH_CLIENT_ID in code and documentation - Add comprehensive Spock tests for PlatformHelper.getAuthDomain() and getAuthClientId() - Fix environment variable handling to check env vars before switch statement - Add explanatory comments about env var precedence logic Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
|
@ewels regarding the colours, don't know it's a problem with the screen, but I count at least 9 different colours
|
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
|
Ah you're my hero @pditommaso, I just sat down to try to figure out these failing tests. I definitely remember writing this to fix the tests previously: - def result = cmd.getConfigValue(config, 'tower.accessToken', 'TOWER_ACCESS_TOKEN', null)
+ def result = cmd.getConfigValue(config, 'tower.accessToken', 'TOWER_ACCESS_TOKEN')But I can't find it anywhere now so no idea where that commit went 😓 But never mind, as long as it works now! Thank you for fixing! |
modules/nextflow/src/main/groovy/nextflow/platform/PlatformHelper.groovy
Show resolved
Hide resolved
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Legend / explainer1: No colour So it's 4, following roughly this scheme (which I generally apply with colours in a non-strict way):
Then dim for "not important" and bold for "important". DiscussionI think it looks more extreme with your colour scheme because your default colour (green) has such strong saturation, which makes the contrast between colours more extreme. With my terminal setup everything is a lot more muted / closer in colour:
But not everyone is using my terminal setup 😀 And I agree that it's a bit much. I'll strip some of this out where it's not adding much functionality 👍🏻 New commit about to be incoming to this PR.. |
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
pditommaso
left a comment
There was a problem hiding this comment.
It looks a in good shape. Left a couple of minor comments
modules/nextflow/src/main/groovy/nextflow/platform/PlatformHelper.groovy
Show resolved
Hide resolved
plugins/nf-tower/src/main/io/seqera/tower/plugin/auth/AuthCommandImpl.groovy
Outdated
Show resolved
Hide resolved
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
|
Ok I think I managed to replicate your colour theme @pditommaso. This is how the colours should now look for you:
Reminder that
|
|
Much better the colours now! |
|
Approved ✅ |





Summary
nextflow authcommand group for simplified authentication with Seqera Platformauth login,auth logout,auth status, andauth configsubcommands~/.nextflow/seqera-auth.configKey Features
Implementation Details
CmdAuth.groovywith delegation toAuthCommandImplin nf-tower pluginPlatformHelperfor consistent token and endpoint managementColorUtilfor better UXDocumentation
docs/install.mdwith authentication instructionsdocs/reference/cli.mdTest plan
CmdAuthandColorUtilAuthCommandImplcovering all auth flows🤖 Generated with Claude Code