authz

command module
v0.0.0-...-a8a8e01 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MPL-2.0 Imports: 23 Imported by: 0

README

Authz: OAuth 2.0 authorization service written in Go

GoDoc license


Run

Locally:

$ go get github.com/amsterdam/authz
$ authz
$ curl http://localhost:8080/authorize?...

Using Docker:

$ docker build -t authz .
$ docker run --rm --expose 8080 -p 8080:8080 authz --bind :8080
$ curl http://localhost:8080/authorize?...

Contribute

Note We choose to use gdm to pin our dependencies so we have reproducible builds. go get ./... works just fine so you don't need to use gdm if you don't want to, but if you add dependencies please make sure to update Godeps (gdm save).

This is how to grab the sources and install dependencies using gdm:

$ mkdir -p $GOPATH/src/github.com/amsterdam/authz
$ cd $GOPATH/src/github.com/amsterdam/authz
$ git clone https://github.com/amsterdam/authz.git
$ go get github.com/sparrc/gdm
$ gdm restore

Documentation

Overview

An IdP implementation of Google OIC: https://developers.google.com/identity/protocols/OpenIDConnect

An IdP implementation of Grip OIC: https://kb.grip-on-it.com/en/service-onboarding/openidconnect/

Command authz runs Datapunt Amsterdam's OAuth 2 (RFC 6749) service.

Directories

Path Synopsis
Package oauth2 provides a fully customizable OAuth 2.0 authorization service http.handler.
Package oauth2 provides a fully customizable OAuth 2.0 authorization service http.handler.
tools

Jump to

Keyboard shortcuts

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