From 72e69b1fe79a9b0fed8d06dec3c2a29b0eaea213 Mon Sep 17 00:00:00 2001 From: Kenneth Jenkins <51246568+kenjenkins@users.noreply.github.com> Date: Mon, 4 Dec 2023 13:48:31 -0800 Subject: [PATCH] remove unused method parameters --- authenticate/handlers.go | 2 +- authenticate/identity_profile.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/authenticate/handlers.go b/authenticate/handlers.go index c854f042f..333e05119 100644 --- a/authenticate/handlers.go +++ b/authenticate/handlers.go @@ -451,7 +451,7 @@ Or contact your administrator. } // save the session and access token to the databroker - profile, err := a.buildIdentityProfile(ctx, r, &newState, claims, accessToken) + profile, err := a.buildIdentityProfile(r, claims, accessToken) if err != nil { return nil, httputil.NewError(http.StatusInternalServerError, err) } diff --git a/authenticate/identity_profile.go b/authenticate/identity_profile.go index b51b3787d..29fed27b3 100644 --- a/authenticate/identity_profile.go +++ b/authenticate/identity_profile.go @@ -14,7 +14,6 @@ import ( "github.com/pomerium/pomerium/internal/httputil" "github.com/pomerium/pomerium/internal/identity" - "github.com/pomerium/pomerium/internal/sessions" "github.com/pomerium/pomerium/internal/urlutil" "github.com/pomerium/pomerium/pkg/cryptutil" identitypb "github.com/pomerium/pomerium/pkg/grpc/identity" @@ -23,9 +22,7 @@ import ( var cookieChunker = httputil.NewCookieChunker() func (a *Authenticate) buildIdentityProfile( - ctx context.Context, r *http.Request, - _ *sessions.State, claims identity.SessionClaims, oauthToken *oauth2.Token, ) (*identitypb.Profile, error) {