kelindar / folio

JSON document-based CMS, written with Go, SQLite & HTMX
MIT License
9 stars 1 forks source link

set namespace via header value #1

Open c-nv-s opened 1 month ago

c-nv-s commented 1 month ago

placing a folio application behind oauth2proxy (https://github.com/oauth2-proxy/oauth2-proxy) is a quick way to get user information from an existing internal authentication system.

the oauth2proxy authenticates the user and passes the relevant user information to the downstream application via header values X-Forwarded-User, X-Forwarded-Groups, X-Forwarded-Email (https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview#header-options)

so it might be nice if there is a setting where the user can optionally choose which header value to use from the request to set the namespace

kelindar commented 4 weeks ago

Yeah, this was actually the plan. Just haven't gotten to adding a user model yet, this project is still in it's very early stage.