Skip to content
An authentication plugin for GoCD (https://www.gocd.org), which allows a guest user to login, without providing a username or password
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea/copyright
gradle/wrapper Upgrade gradle Mar 25, 2019
images
src Change property attribute Mar 27, 2019
.gitignore Use the task helper plugin to build and publish jar. Mar 27, 2019
LICENSE Initial commit Dec 8, 2017
README.md
build.gradle Use the task helper plugin to build and publish jar. Mar 27, 2019
gradlew
gradlew.bat Upgrade gradle Mar 25, 2019
settings.gradle Added helper tasks - Jan 4, 2019

README.md

Guest User Login Plugin for GoCD

GoCD Guest User Login Plugin allows the user to login as a guest to GoCD server.

Requirements

  • GoCD server version v17.5.0 or above

Installation

Copy the file build/libs/gocd-guest-login-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

Create Authorization Configuration

  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 Guest Login Plugin for Plugin Id
    3. Specify Go Server Url. Eg. https://<GO_SERVER_URL>/go
    4. Specify Username of the guest user.
    5. Specify Display name of the guest user.

    "Guest Login Plugin Auth Config"

Troubleshooting

Enabling debug level logging can help you troubleshoot an issue with the Guest Login Plugin. To enable debug level logs, edit the /etc/default/go-server (for Linux) to add

export GO_SERVER_SYSTEM_PROPERTIES="$GO_SERVER_SYSTEM_PROPERTIES -Dplugin.cd.go.contrib.authorization.guest.log.level=debug"

If you're running the server via ./server.sh script —

$ GO_SERVER_SYSTEM_PROPERTIES="-Dplugin.cd.go.contrib.authorization.guest.log.level=debug" ./server.sh

Building the code base

To build the jar, run ./gradlew clean test assemble

License

Copyright 2019 ThoughtWorks, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You can’t perform that action at this time.