Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.56 KB

INSTALL.md

File metadata and controls

34 lines (25 loc) · 1.56 KB

Google oauth plugin for GoCD

Requirements

Installation

Copy the file build/libs/google-oauth-authorization-plugin-VERSION.jar to the GoCD server under ${GO_SERVER_DIR}/plugins/external and restart the server. The GO_SERVER_DIR is usually /var/lib/go-server on Linux and C:\Program Files\Go Server on Windows.

Configuration

Configure Google API credentials

  1. Login to API credentials
  2. Click on Create credentials and select OAuth Client Id
  3. Select Web application as a Application type
  4. Provide appropriate Name to your api credentials
  5. Specify http://<<your.go.server.hostname.or.ip>>/go/plugin/cd.go.authorization.google/authenticate in Authorized redirect URIs. Click on Create
  6. Yay!! You have created google api credentials
  7. Note Client ID and Client Secret, you will need it to configure plugin in next step

Configure Plugin

  1. Login to GoCD server as admin and navigate to Admin > Security > Authorization Configuration
  2. Click on Add to create new authorization configuration
    1. Specify id for auth config
    2. Select Google oauth authorization plugin for GoCD for Plugin id
    3. Specify Client ID and Client Secret
    4. Optionally, you can specify Allowed Domains settings to restrict user login from specified domains
    5. Save your configuration