Reputation: 189
I just started learning Go a couple weeks ago, and I want to try and implement a kind of authentication system for a web server. Now, I found authboss which seems like a perfect solution except I don't understand how to integrate it with a traditional database. It seems like it just stores everything in its own memory which is a nightmare if the server crashes or needs to be restarted. That having been said, does anyone have any ideas, thoughts, or recommendations?
Upvotes: 5
Views: 2901
Reputation: 869
To use authboss authentication with a database backend you need to write a 'storer' implementation. There aren't very many database storers readily available (at least I haven't been able to find them).
Example authentication implementations with a database backend:
Based on the number of stars on github, authboss is the most popular.
Of course, there are also commercial options, e.g. https://auth0.com/blog/authentication-in-golang/
A long list of available authentication libraries and frameworks can be found here: https://github.com/avelino/awesome-go#authentication-and-oauth
Upvotes: 3