thomiceli / opengist

Self-hosted pastebin powered by Git, open-source alternative to Github Gist.
https://opengist.io
GNU Affero General Public License v3.0
1.89k stars 100 forks source link

[Feature request] Proxy Auth #257

Open guilhem opened 7 months ago

guilhem commented 7 months ago

When using proxy auth like oauth2-proxy, backend can trust some headers for account creation. Like X-Auth-Request-Email. It can be useful to have a auth-trusted-cidr to restrict which service can be trusted.

57194 commented 3 months ago

An example of a Go program that supports Forward/Proxy Auth: https://github.com/miniflux/v2

Code search: https://github.com/search?q=repo%3Aminiflux%2Fv2%20AuthProxyHeader&type=code