external-auth-server
external-auth-server copied to clipboard
Question: how to implement auth with simple token
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?
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 :)