Skip to content
forked from apexskier/httpauth

Go (lang) HTTP session authentication

License

Notifications You must be signed in to change notification settings

lootch/httpauth

Repository files navigation

Go Session Authentication

GoDoc

This package uses the Gorilla web toolkit's sessions and package to implement a user authorization system for web servers written in Go.

Multiple user data storage backends are available, and new ones can be implemented relatively easily.

Using bcrypt for password hashing.

Run go run server.go from the examples directory and visit localhost:8080 for an example. You can login with the username and password "test".

Note

This is the first time I've worked with implementing the details of cookie storage, authentication or any sort of real security. There are no guarantees that this will work as expected, but I'd love feedback. If you have any issues or suggestions, please let me know.

TODO

  • User roles
  • SMTP email validation (key based)

About

Go (lang) HTTP session authentication

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.8%
  • Shell 1.2%