keyauth

command module
v0.0.0-...-7cdee2a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: MIT Imports: 5 Imported by: 0

README

keyauth

Golang server that manages API keys for authenticated users

Getting started

Package installation

First download the dependencies:

export GOPATH="..."
go get github.com/gorilla/handlers
go get github.com/gorilla/mux
go install
Server startup

Then run the main package:

keyauth

Access the server from port 3000 using your client of choice.

Developers

Test suite

The server was tested at the following key endpoints:

  • /
  • /health/
  • /api/apikey/

More endpoints can be tested in the future. To run the suite:

go test
Implementation Notes

Some things to consider:

  • Closely resembles the folder structure here
  • Currently does not use database connections
  • Uses a fake data structure to act as a database
  • CORS is properly enabled for the API

Documentation

Overview

Package main runs a key authentication server

Directories

Path Synopsis
Package apis stores API endpoints Package apis stores API endpoints Package apis stores API endpoints
Package apis stores API endpoints Package apis stores API endpoints Package apis stores API endpoints
Package app stores the base application Package app stores the base application Package app stores the base application
Package app stores the base application Package app stores the base application Package app stores the base application

Jump to

Keyboard shortcuts

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