Skip to content

[Enhancement]: Add Support for GitLab Authentication Token #270

@puneetnith28

Description

@puneetnith28

Enhancement Summary

Add support for allowing users to securely add, store, and use a GitLab Personal Access Token (PAT) within the application to enable authenticated interactions with GitLab.

Motivation

Currently, the application interacts with GitLab without authentication. This limits access to private repositories, prevents user-specific operations, and restricts integration with many GitLab API endpoints. Supporting a GitLab token will improve security, enable more advanced functionality, and create a smoother experience for users connecting their GitLab accounts.

Proposed Solution

Introduce a setting where users can enter their GitLab Personal Access Token. Store this token securely and update all GitLab API requests to include the token. Add UI options to test and remove the token. Include validation for invalid or expired tokens.

Alternatives Considered

  • Allowing only public repository access (insufficient for many user needs).

Additional Context

Users may require different token scopes depending on their use cases. Common scopes include read_api, read_repository, and optionally write_repository for push operations.


Contribution Checklist

  • [✅] I have checked existing enhancement requests
  • [✅] I have clearly described the proposed change
  • [✅] I have explained the motivation and context
  • [✅] I am willing to help implement this feature

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions