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.
- User roles
- SMTP email validation (key based)