go-http-auth icon indicating copy to clipboard operation
go-http-auth copied to clipboard

Plugable backend for digest_client struct

Open rsoletob opened this issue 8 years ago • 2 comments

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

rsoletob avatar May 04 '16 07:05 rsoletob

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?

abbot avatar May 08 '16 23:05 abbot

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.

rsoletob avatar May 09 '16 07:05 rsoletob