Remove reduntant addtion of claims to context

This commit is contained in:
Ralf Haferkamp
2022-07-07 16:18:10 +02:00
committed by Ralf Haferkamp
parent 5e078cdcf8
commit bd4150ab01
+1 -5
View File
@@ -59,11 +59,7 @@ func OIDCAuth(optionSetters ...Option) func(next http.Handler) http.Handler {
return
}
// inject claims to the request context for the account_uuid middleware.
req = req.WithContext(oidc.NewContext(req.Context(), claims))
// store claims in context
// uses the original context, not the one with probably reduced security
// inject claims to the request context for the account_resolver middleware.
next.ServeHTTP(w, req.WithContext(oidc.NewContext(req.Context(), claims)))
})
}