Giter Site home page Giter Site logo

auth-go's Introduction

Authentication System

GoDoc

Everything still is too new, if you have any question please send me a message or open a issue.

Goal

Java Web Token (JWT) generation authentication system to be consumed in calls through API Requests(AJAX) and / or session control (Cookies). The system will consist of 3 parts:

  • Server with authentication API
  • Library for token validation and middleware implementation
  • Dashboard area for user management and access log monitoring.

Requirements

  • Option of encrypt or not data stored (payload) in the token;

  • Option between Bycript(default) or AES as signature encryption algorithm (signature);

  • Cookies should be used as HttpOnly to mitigate Script Cross Site (XSS) attacks ¹;

  • Create tokens with all standard payload claims, mainly:

    • aud- Specifies a JWT audience
    • iss- Specifies JWT creator
    • exp - specify the time for JWT to expire
    • iat - specifies JWT creation timestamp

Technology chosen

  • Programming language: Go lang
  • Execution environment: Heroku;
  • Databases: PostgreSQL;
  • Libraries:
    • gorilla mux
    • ...

Todo list

  • Unity test of all system
  • Delete RSA key files
  • Config information via environment variables
  • Heroku PostgreSQL integration
  • Dashboard for user manager
  • Code snippets for JQuery and Vue Js forms
  • Port validation library to PHP (Save a legacy system)

Database Model

API

  • Routes
    • /api/login
    • /api/logout

Library

...

auth-go's People

Contributors

rafaelfigueiredo avatar

Watchers

James Cloos avatar

auth-go's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.