.. _WWW-Auth-GitLabAuth: GitLabAuth ========== .. py:class:: buildbot.www.oauth2.GitLabAuth(instanceUri, clientId, clientSecret) :param instanceUri: The URI of your GitLab instance :param clientId: The client ID of your buildbot application :param clientSecret: The client secret of your buildbot application :param boolean ssl_verify: If False disables SSL certificate verification This class implements an authentication with GitLab_ single sign-on. It functions almost identically to the :py:class:`~buildbot.www.oauth2.GoogleAuth` class. Register your Buildbot instance with the ``BUILDBOT_URL/auth/login`` URL as the allowed redirect URI. Example: .. code-block:: python from buildbot.plugins import util c['www'] = { # ... 'auth': util.GitLabAuth("https://gitlab.com", "clientid", "clientsecret"), } In order to use this module, you need to install the Python ``requests`` module: .. code-block:: bash pip install requests .. _GitLab: http://doc.gitlab.com/ce/integration/oauth_provider.html