authnz

module
v0.0.0-...-eccf771 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0

README

authnz [Educational Purpose Only]

Authorization and authentication. Learning go by writing a simple authentication and authorization service.

Getting started

Run make rsa run to generate a rsa key and then start the server directly using go.

Run make build rsa start to build the binary, generate a rsa key and then start the build binary.

Run make image to build the docker image.

Run make up to run the docker image. Note that you need to inject the private key to start the service.

API

To see a list of available APIs see api.http. You can use Rest Client to directly invoke them on VSCode and its derivatives.

Tasks

To see a list of tasks, run make help.

Tests

There are few unit tests in the repo. Run make test to run them. However, there are no integration tests right now as this was written as an educational exercise.

LICENSE

Apache 2 or MIT

Directories

Path Synopsis
cmd
internal
api

Jump to

Keyboard shortcuts

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