diff options
author | Mike Crute <mike@crute.us> | 2022-01-02 13:23:31 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2022-01-02 13:23:31 -0800 |
commit | 0c472df1b28e8378a0be92a587c02a445b28ab7f (patch) | |
tree | 6082bc0e25744524b9bb4ab613a3e3a6204e76dc /main.go | |
parent | a56b6c22895a9fe5c9ae0838d19bfb6a913a388d (diff) | |
download | oidc_proxy-master.tar.bz2 oidc_proxy-master.tar.xz oidc_proxy-master.zip |
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | } |