GitLab API

GitlabTool

Actions1000

Overview

This node operation authenticates a user for Conan packages in a specific GitLab project using the GitLab API. It is useful for scenarios where you need to verify user credentials or permissions related to Conan package management within a GitLab project. For example, it can be used in CI/CD pipelines to ensure that only authenticated users can access or publish 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 for Conan package management in a GitLab project to enforce security policies.

Properties

Name Meaning
Skip Authentication If set to true, the node skips the authentication process.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request (GET, POST, PUT, DELETE, HEAD, PATCH).
Path Parameters The path parameters for the API request, specifically the project ID or URL-encoded path.

Output

JSON

  • authenticated - Indicates whether the user authentication was successful (true or false).
  • token - The authentication token returned upon successful user authentication.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible.
  • Verify that the GitLab API credentials are valid and have the necessary permissions.
  • If skipping authentication, ensure that the operation does not require authentication to succeed.
  • Common error messages may include 401 Unauthorized if authentication fails, or 404 Not Found if the project ID is invalid.

Links

Discussion