Skip to content
🔏 Self-contained authentication service for Cloudpipe
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.
Godeps
certificates
docs
script
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
api_account.go
api_account_test.go
api_key.go
api_key_test.go
api_style.go
api_validate.go
api_validate_test.go
context.go
context_test.go
docker-compose.yml
helper_test.go
main.go
model.go
model_test.go
storage.go

README.md

auth-store

locally administered account management for cloudpipe

Build Status

This is the default implementation of the cloudpipe authentication backend protocol that stores account data in MongoDB, most likely the same instance that's used to host other internal Cloudpipe data. It exposes additional API endpoints to permit account creation and API key generation.

Getting Started

  1. Install Docker on your system.
  2. Install Compose.
  3. Use script/genkeys to generate self-signed TLS keypairs in certificates/.
  4. Run docker-compose build && docker-compose up -d to build and launch everything locally.

To run the tests, use script/test. You can also use script/mongo to connect to your local MongoDB database.

Using the API

Once it's up and running, you can use curl to interact the auth API. Here are a few examples:

# If you're on a Mac and using boot2docker. Otherwise, you can use "localhost".
DOCKER=$(boot2docker ip 2>/dev/null)

# Create a new account.
curl -k -i -X POST https://${DOCKER}:9000/v1/accounts -d 'accountName=me%40gmail.com&password=shhh'

# Generate a new API key.
curl -k -i -X POST https://${DOCKER}:9000/v1/keys -d 'accountName=me%40gmail.com&password=shhh'

API Documentation

Current API documentation may be found in the docs/ directory.

You can’t perform that action at this time.