external-auth-server icon indicating copy to clipboard operation
external-auth-server copied to clipboard

Question: how to implement auth with simple token

Open kettenbach-it opened this issue 4 years ago • 1 comments
trafficstars

Hi!

I'd like to authenticate users with a simple token given in the URL as get-parameter using traefik 2.4 and eas. The token is generated and stored in MySQL and sent to the user as an url. The user calls the url in the browser. The external-auth-server needs to check against MySQL if the token given as a get parameter is still valid and then let's the user through or not.

Can this be done by external-auth-server?

kettenbach-it avatar Oct 21 '21 11:10 kettenbach-it

Yes. It’s relatively advanced but you could use this: https://github.com/travisghansen/external-auth-server/blob/master/PLUGINS.md#request_js

It’s effectively a BYOP (bring your own plugin) config :)

travisghansen avatar Oct 21 '21 13:10 travisghansen