Skip to content

Golang Auth Backend - Limit Sessions With Redis (non-JWT for more control). MongoDB. Subscriptions.

Notifications You must be signed in to change notification settings

jotcodeofficial/go-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The GoSession Logo

Go Session

Customisable Multi-Session Framework For Golang

Issues Twitter

Report Bug - Request Feature

Index

Table of Contents
  1. About The Project
  2. Getting Started
  3. Roadmap
  4. Contributing
  5. License
  6. Contact
  7. Support the Project

About The Project

The Go Session Project Image

Go Session

Customisable Multi-Session Framework For Golang

Most session based frameworks are JWT which aren't easily revocable and you can't really limit the amount of sessions without a backend cache.

With go-session you will have an entire framework for user registration and session management control.

I built it to integrate with mongo and redis micro-services. You can try it out on localhost for development purposes, with the added docker containers in the localhost folder. (Just follow the instructions in the README files)

Some features:

  • User sign up with email confirmation and reset/forgot password integration.
  • Max sessions per user account. (Limit device count - better than JWT).
  • Extra functionality such as user posts and custom filters.

Build your project by forking this repo right now! 😄


Built With

In this area you can list the different libraries and technologies that your project uses.

Getting Started

Ensure you search and update all text that contains 'domain' with your own domain/brand name. Also add *.env to the .gitignore file when you change the default values.

Prerequisites

This section should show what software is required before you can proceed with the installation.

Installation

Follow these instructions to get your test environment set up.

  1. Clone the repo
    git clone https://github.com/jotcodeofficial/gosession.git
  2. Install Go packages
    go get ./
  3. Run local mongo & redis containers
    Use commands in go-session/localhost/startup-all/startup.txt(or change the extension to turn it into a bash script depending on your os)

Contributing

Great things are a sum of their parts. By contributing your time and effort you can help make this project even better. Collaborative efforts ftw.

License

Released under the MIT License.

Contact

@jotc0de

contact@jotcode.com

Support the Project 💖

If you are not a coder you can still help support the project by sharing it far and wide. Thanks! ❤️

About

Golang Auth Backend - Limit Sessions With Redis (non-JWT for more control). MongoDB. Subscriptions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published