authenticateandgo

command module
v0.0.0-...-6f1d728 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: MIT Imports: 5 Imported by: 0

README

Authenticate and Go!

Purpose

The aim of this project is to work on web authentication module with all the major components integrated:

  • Register and login through the database (currently this is PostgreSQL) with full encryption;
  • Register/Login through OAuth2 (e.g. social networks - currently Facebook, Google and GitHub are supported);
  • Persistent login (currently this works for the standard login);
  • Password recovery (not yet implemented).

Remarks on (local) setup

To test and/or further develop all functionalities, you would need:

  • PostgreSQL installed, the password stored in environment variable PGSQL and a table named users (with columns username, email, password of type text) in a database called mydb. You’d also need to adjust the configuration of db.go in dbAuth if your username is not postgres and port not 5432;
  • Applications created on Google, Facebook and GitHub with environment variables declared in socialAuth sub-module of the project (such as GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET etc.).

Disclaimer

My personal goal with this project is to learn Go by doing. As such, the project is very likely prone to bugs, and will be continuously updated.

The final goal is to make a library, however in its current state the project is far from that.

It also relies heavily on other publicly available resources:

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