summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2022-01-02 13:23:31 -0800
committerMike Crute <mike@crute.us>2022-01-02 13:23:31 -0800
commit0c472df1b28e8378a0be92a587c02a445b28ab7f (patch)
tree6082bc0e25744524b9bb4ab613a3e3a6204e76dc /main.go
parenta56b6c22895a9fe5c9ae0838d19bfb6a913a388d (diff)
downloadoidc_proxy-master.tar.bz2
oidc_proxy-master.tar.xz
oidc_proxy-master.zip
Fix build bugsHEADmaster
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index d90442f..38129b9 100644
--- a/main.go
+++ b/main.go
@@ -239,8 +239,8 @@ func AuthProxyController(w http.ResponseWriter, r *http.Request) {
239 239
240 r.Header["X-Forwarded-User"] = []string{claims.Subject} 240 r.Header["X-Forwarded-User"] = []string{claims.Subject}
241 r.Header["X-OIDC-Token-Age"] = StringListFromInt(claims.Age()) 241 r.Header["X-OIDC-Token-Age"] = StringListFromInt(claims.Age())
242 r.Header["X-OIDC-Token-Expires"] = StringListFromInt(int64(claims.Expiry)) 242 r.Header["X-OIDC-Token-Expires"] = StringListFromInt(int64(*claims.Expiry))
243 r.Header["X-OIDC-UserInfo-Endpoint"] = "" // TODO: Include this 243 r.Header["X-OIDC-UserInfo-Endpoint"] = []string{""} // TODO: Include this
244 244
245 ctx.reverseProxy.ServeHTTP(w, r) 245 ctx.reverseProxy.ServeHTTP(w, r)
246} 246}