abbot / go-http-auth

Basic and Digest HTTP Authentication for golang http
Apache License 2.0
545 stars 121 forks source link

Plugable backend for digest_client struct #36

Open rsoletob opened 8 years ago

rsoletob commented 8 years ago

Hi,

I'm evaluating this lib to use it in our proyect. However, we have a distributed environment and we can't share these values across the nodes. Maybe a plugable backend like postgres would be a nice idea. What do you think?

PD: Thanks for your great work

abbot commented 8 years ago

I'm not sure I understand what's missing from SecretProvider. You can roll your own SecretProvider using a database or anything else and plug it into BasicAuth or DigestAuth.

So, what is missing?

rsoletob commented 8 years ago

Our problem is DigestAuth struct that has a map with clients. This map is not available to store it in a database, so we can't share this data across the nodes.