Simple OAuth registry server. With docker registry configuration.
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.
cmd/auth
pkg
vendor
.gitignore
Dockerfile
Makefile
cert.sh
docker-compose.yml
go.mod
go.sum
readme.md
registry_config.yml

readme.md

Oauth registry server

This repository is an example to demonstrate how to setup an oauth registry with a backend server that handle authentication.

Requirements

Setup

go get github.com/expectedsh/oauth-registry-server
cd ~/go/src/github.com/expectedsh/oauth-registry-server
make generate_https_cert

Launch the docker registry and the backend server

docker-compose up --build
docker login localhost

Default credentials (change implementation here)

User: alexis
Password: admin

Caution by default all actions and scope are validated, to change them go to this file

Inspiration

Strongly inspired by cesenta/docker_auth