golin

command module
v0.0.0-...-1604e7c Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: GPL-2.0 Imports: 15 Imported by: 0

README

golin

Golin is an approach to create a microservice that allows multiple systems or apps to use authentication without needing to implement it by their own.

The project uses JWT as a way of securing the comunication bewteen the client and the login server. Please refer to the RFC7519 for details (it's included in the links below).

Interfaces and some abstractions were made to make it as generic as possible, this could be changed to use some configuration files or changing the login methods.

This microservice is designed to be scalable since for example, it can be set aside of any API and just coordinate the validation of the tokens and can grow accordingly to the needs of the stack.

GinGonic was used to build the API since it's quick to develop and easy to maintain and debug. Also BoltDB is used to storage Tokens and is designed to have a Blacklist for tokens that are no longer valid because of logout. A library for JWT is also include to create verification and sign methods.

Here are some useful links we read for understanding JWT and some logins procedures:

TODO

  • Read configuration using a file to determine where the DB is
  • Configuration file for the data schema and how to look for it
  • Create blacklist for logout
  • Connect it using some UI to verify functionality
  • Deployment method (consider using Docker and tool )
  • Statistics about usage
  • Check reliabilty and synchronization of BoltDB

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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