xdex-auth

command module
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 13 Imported by: 0

README

XDEX Auth

This service allows to register and authenticate to have access to other xdex services protected by authorization tokens.

The registration starts by requesting a challenge, a random blob of bytes that must be signed with some private key.

A token granting access to other xdex resources is released by providing the signature generated with the private key and the relative public key.

Test

$ make test

Run locally

# start minio server
$ docker run --rm -d --name minio -p 4400:4400 \                                                                                                                  8s
  -e "MINIO_ROOT_USER=admin" \
  -e "MINIO_ROOT_PASSWORD=admin123" \
  quay.io/minio/minio server /data --address ":4400"

# start authd
$ make run

# in another tab, run example client against authd
$ go run client_example.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api-spec
protobuf/gen/auth/v1
Package authv1 is a reverse proxy.
Package authv1 is a reverse proxy.
cmd
internal
pkg
macaroons Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL