GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation authenticates a user for accessing Conan packages within a specific GitLab project. It is useful for scenarios where you need to verify user credentials or permissions related to Conan package management in a GitLab project. For example, it can be used in CI/CD pipelines or automation workflows that require secure access to project-specific Conan packages.

Use Case Examples

  1. Authenticate a user to access Conan packages in a GitLab project before performing package upload or download operations.
  2. Verify user credentials programmatically as part of an automated deployment process.

Properties

Name Meaning
Skip Authentication Option to skip the authentication process for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the request, defaulting to GET.
Path Parameters Parameters included in the request path, specifically the project ID or URL-encoded path required for the API call.

Output

JSON

  • authenticated - Indicates whether the user authentication was successful.
  • token - Authentication token returned upon successful user authentication.
  • user - Details of the authenticated user.

Dependencies

  • Requires GitLab API key credential for authentication unless skipping authentication is enabled.

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided credentials.
  • If authentication fails, verify that the GitLab API key is valid and has the necessary permissions to access the project's Conan packages.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correctly set.

Links

Discussion