CanonicalLtd/candid

Name: candid

Owner: Canonical Ltd

Description: Identity manager service

Created: 2018-04-04 10:47:41.0

Updated: 2018-05-03 15:03:13.0

Pushed: 2018-05-03 15:03:12.0

Homepage: null

Size: 1074

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Candid Identity service

The Candid server provides a macaroon-based authentication service.

Installation

To start using the candid service, first ensure you have a valid Go environment, then run the following:

go get github.com/CanonicalLtd/candid
cd $GOPATH/github.com/CanonicalLtd/candid
Go dependencies

The project uses godeps (https://launchpad.net/godeps) to manage Go dependencies. To install this, run:

go get -u github.com/rogpeppe/godeps

After installing it, you can update the dependencies to the revision specified in the dependencies.tsv file with the following:

make deps

Use make create-deps to update the dependencies file.

Development environment

A couple of system packages are required in order to set up a development environment. To install them, run the following:

make sysdeps

At this point, from the root of this branch, run the command::

make install

The command above builds and installs the identity service binaries, and places them in $GOPATH/bin. This is the list of the installed commands:

Candid server

The server can be started with the following command:

candidsrv -logging-config INFO cmd/candidsrv/config.yaml

The same result can be achieved more easily by running make server. Note that this configuration should not be used when running a production server.

At this point the server starts listening on port 8081 (as specified in the config YAML file).

Testing

Run make check to test the application. Run make help to display help about all the available make targets.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.