Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Removal notice:

Please note that the URL user and URL user password parameters were removed in 5.8.5 (see Deprecation notice: URL user and URL user password parameters). We recommend using profiles to access external data.

This article illustrates the process of adding a GitHub profile to be used with the HTML for Confluence macros.

Info

Before you begin:

To add a profile, you need the following:

  • Personal access token for information about generating a GitHub access token. Refer to GitHub access token for the actual URL to get the access token if you have a GitHub account.

  • Whitelist the GitHub URL in Confluence configuration settings if Restrict URL access in HTML for Confluence Configuration is enabled.

  • Raw URL of the file to be rendered.

...

  1. Click Add Profile.

  2. Enter a unique profile name in the Profile name text box. 

    Info

    Ensure that you provide a unique profile name. If you enter a profile name that already exists, the existing profile gets replaced with the given information.

  3. Select GitHub from the options in Profile type.

    Image shows how to add a GitHub profile.
    Note

    The Request headers parameter is auto-filled and more information gets appended as other relevant parameters are filled.

  4. Enter the relevant URL for GitHub in the URL text box. Example: https://api.github.com/repos

    Info

    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.

  5. Enter User and Password credentials required to access the given URL, or enter the access token for your GitHub profile in the Access token text box. Refer to this personal access token article to know how to create your personal access token. 

    Note

    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 GitHub repositories.

  6. Click Save profile to create a profile.

...