Skip to content

Commit

Permalink
remove unused method parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjenkins committed Dec 4, 2023
1 parent a2cbaa4 commit 72e69b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion authenticate/handlers.go
Expand Up @@ -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)
}
Expand Down
3 changes: 0 additions & 3 deletions authenticate/identity_profile.go
Expand Up @@ -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"
Expand All @@ -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) {
Expand Down

0 comments on commit 72e69b1

Please sign in to comment.