Skip to content

Commit

Permalink
Remove reduntant addtion of claims to context
Browse files Browse the repository at this point in the history
  • Loading branch information
rhafer committed Jul 7, 2022
1 parent 5e078cd commit bd4150a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions services/proxy/pkg/middleware/oidc_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
})
}
Expand Down

0 comments on commit bd4150a

Please sign in to comment.