This article illustrates the process of adding a .
Before you begin:
To add a profile, you need the following:
For this example, GitLab profile to an Html-bobswift macro.
Select > Manage apps, either search for HTML for Confluence or scroll to Bob Swift Configuration, and click HTML to view app configuration.
Try this for older Confluence versions!
Navigate to CONFLUENCE ADMINISTRATION > Settings > ATLASSIAN MARKETPLACE > HTML > Profiles.
Click Add Profile.
Enter a unique profile name in the Profile name text box.
The Request headers parameter is auto-filled and more information gets appended as other relevant parameters are filled.
Enter the relevant URL for GitLab in the URL text box. Example: https://gitlab.com/api/v4/projects.
It is recommended to provide only the base URL in this text box and let the users enter the relevant relative path to the actual file to be rendered through the macro. This method allows multiple users to access a profile across pages and instances of the macros.
Enter User and Password credentials required to access the given URL, or enter the access token for your GitLab profile in the Access token text box. Refer to this personal access token article to know how to create your personal access token.
Access tokens or API tokens are a means of user authentication; so, if mentioned, this token is used for authentication instead of using the user credentials. Thus, provide either the user credentials or an access token, but not both.
In this example, an access token is used to connect and access the repositories.