Skip to content

Golang server that manages API keys for authenticated users

License

Notifications You must be signed in to change notification settings

huangsam/keyauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Golang server that manages API keys for authenticated users

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published