Skip to content

The Gitlab provider does not support the parameter oauthScopes #1792

@mrumpf

Description

@mrumpf

Feature description

The token scopes for the Gitlab provider are hard-coded in the source code: read_repository & write_repository.
I would like to use the token, created by GCM, also for Maven dependency resolution via the package registry API (in a Gradle Kotlin Script).
This is only possible if you request a token with the scopes "api" or "read_api".
Unfortunately the gitlab provider does not allow to override the scopes with the credential.oauthScopes property, defined by GCM.

The Scope parameter is read by GCM (TryGet "oauthScopes"), but not used when requesting the token. Therefore the token can only be used to perform Git operations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions