- GoCD server version v17.5.0 or above
- Google API credentials
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.
- Login to API credentials
- Click on Create credentials and select
OAuth Client Id
- Select
Web application
as a Application type - Provide appropriate Name to your api credentials
- Specify
http://<<your.go.server.hostname.or.ip>>/go/plugin/cd.go.authorization.google/authenticate
in Authorized redirect URIs. Click on Create - Yay!! You have created google api credentials
- Note Client ID and Client Secret, you will need it to configure plugin in next step
- Login to
GoCD server
as admin and navigate to Admin > Security > Authorization Configuration - Click on Add to create new authorization configuration
- Specify
id
for auth config - Select
Google oauth authorization plugin for GoCD
for Plugin id - Specify Client ID and Client Secret
- Optionally, you can specify
Allowed Domains
settings to restrict user login from specified domains - Save your configuration
- Specify