nextflow-io / nextflow-io/nextflow

Support Gitlab OAuth 2.0 identity provider API

Open
#4,082 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue software/git stale
Dominant language
Groovy
Stars
3.5k
Forks
811
Avg merge
2d 11h
Merged PRs (30d)
61

Description

New feature

Hi! Thanks for using Nextflow and submitting the proposal
for a new feature or the enhancement of an existing functionality.

Would nextflow support gitlab OAuth 2.0 identity provider API to enable cloning of gitlab repo's using following command:
git clone https://oauth2:ACCESS_TOKEN@somegitlab.com/vendor/package.git

Usage scenario

(What's the main usage case and the deployment scenario addressed by this proposal)
this will enable repositories to be pulled and ran with both private tokens and also OAuth token. Passing the user and token(OAuth token) fails and causes an authentication error even if it's a valid way of cloning any private gitlab repositories.

Am personally using a gitlab application to authenticate users and then retrieve an access token which I can then use to access and perform api functions on behalf of the use.

https://docs.gitlab.com/ee/api/oauth2.html

Suggest implementation

https://github.com/nextflow-io/nextflow/commit/da00175dadd3386332ed54f7c2440642a39b3805

This might be closely related and implemented in the https://github.com/nextflow-io/nextflow/commit/da00175dadd3386332ed54f7c2440642a39b3805#diff-d3e1b1e20532a0d163e0ea16fdafc56705b79046d086472505c259f0b54dd00d file by using a conditional to check if user token is either a private token or auth token and running different git clone commands.

(Highlight the main building blocks of a possible implementation and/or related components)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the GitLab OAuth 2.0 API documentation and inspect the referenced Nextflow commit and its linked diff. Trace where repository clone credentials are handled, then verify that a GitLab OAuth access token can clone a private repository using the documented URL format.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, groovy
Domain
api, authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.