Caution

This page documents the latest, unreleased version of Buildbot. For documentation for released versions, see https://docs.buildbot.net/current/.

2.5.17.10. GoogleAuth

class buildbot.www.oauth2.GoogleAuth(clientId, clientSecret)
Parameters:
  • clientId – The client ID of your buildbot application

  • clientSecret – The client secret of your buildbot application

  • ssl_verify (boolean) – If False disables SSL certificate verification

This class implements an authentication with Google single sign-on. You can look at the Google oauth2 documentation on how to register your Buildbot instance to the Google systems. The developer console will give you the two parameters you have to give to GoogleAuth.

Register your Buildbot instance with the BUILDBOT_URL/auth/login URL as the allowed redirect URI.

Example:

from buildbot.plugins import util
c['www'] = {
    # ...
    'auth': util.GoogleAuth("clientid", "clientsecret"),
}

In order to use this module, you need to install the Python requests module:

pip install requests