summaryrefslogtreecommitdiffstats
path: root/routers/web/admin/admin.go
diff options
context:
space:
mode:
authorWill Norris <will@willnorris.com>2022-08-15 23:30:27 -0700
committerGitHub <noreply@github.com>2022-08-16 14:30:27 +0800
commit82f89ff996b40e30a7790d13dfa5fa8949a6d620 (patch)
tree14a6e7016178e346a798d6c30af382d35b71d3f7 /routers/web/admin/admin.go
parent1f146090ecbd9876ed41ddccc4d05ee1bedbb48e (diff)
downloadgitea-82f89ff996b40e30a7790d13dfa5fa8949a6d620.tar.gz
gitea-82f89ff996b40e30a7790d13dfa5fa8949a6d620.zip
auth/reverseproxy: Add support for full name (#20776)
This adds support for getting the user's full name from the reverse proxy in addition to username and email. Tested locally with caddy serving as reverse proxy with Tailscale authentication. Signed-off-by: Will Norris <will@tailscale.com> Signed-off-by: Will Norris <will@tailscale.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers/web/admin/admin.go')
-rw-r--r--routers/web/admin/admin.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go
index ebe5066d2c..c773034c53 100644
--- a/routers/web/admin/admin.go
+++ b/routers/web/admin/admin.go
@@ -257,6 +257,7 @@ func Config(ctx *context.Context) {
ctx.Data["ScriptType"] = setting.ScriptType
ctx.Data["ReverseProxyAuthUser"] = setting.ReverseProxyAuthUser
ctx.Data["ReverseProxyAuthEmail"] = setting.ReverseProxyAuthEmail
+ ctx.Data["ReverseProxyAuthFullName"] = setting.ReverseProxyAuthFullName
ctx.Data["SSH"] = setting.SSH
ctx.Data["LFS"] = setting.LFS