Skip to content

Commit

Permalink
dafuq
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray committed Apr 12, 2024
1 parent 8f831cd commit 497e372
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/server/middleware/openapi/oidc/authorizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ limitations under the License.
package oidc

import (
"fmt"
"context"
"crypto/tls"
"crypto/x509"
Expand Down Expand Up @@ -107,7 +108,9 @@ func (t *propagatingTransport) RegisterProtocol(scheme string, rt http.RoundTrip
}

func (t *propagatingTransport) RoundTrip(req *http.Request) (*http.Response, error) {
fmt.Println("I AM HERE")
t.f(req)
fmt.Println(req.Header)

return t.base.RoundTrip(req)
}
Expand All @@ -126,6 +129,7 @@ func (a *Authorizer) authorizeOAuth2(r *http.Request) (string, *userinfo.UserInf
// Handle non-public CA certiifcates used in development.
ctx := r.Context()

fmt.Println("I AM HERE 1")
transport := newPropagatingTransport(ctx)

Check failure on line 133 in pkg/server/middleware/openapi/oidc/authorizer.go

View workflow job for this annotation

GitHub Actions / Runtime

assignments should only be cuddled with other assignments (wsl)

if a.options.IssuerCA != nil {
Expand Down

0 comments on commit 497e372

Please sign in to comment.