docker_auth icon indicating copy to clipboard operation
docker_auth copied to clipboard

How to write a new auth backend?

Open zfLQ2qx2 opened this issue 2 years ago • 1 comments

I'm currently using an external program for validation and have found the server gets fork bombed when many clients try to authenticate at once. My authentication isn't very sophisticated, the login password is a github personal access token, I call a Github API to see what orgs it belongs to, and if someone in my organization they are authorized. To remedy the fork bomb issue I'd like to just patch in a local auth method at compile time to make the HTTP request. Could someone walk me through what would be required to implement this? I've looked at the other authn modules and its not really clear how they get called, it looks like there is more involved then just dropping in a .go file in that directory.

zfLQ2qx2 avatar Mar 02 '22 03:03 zfLQ2qx2

@techknowlogick Can you help me out?

zfLQ2qx2 avatar Mar 12 '22 07:03 zfLQ2qx2