Skip to content

Commit

Permalink
sync with master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vivshankar committed Sep 1, 2024
1 parent 46ba82e commit dfe8452
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions handler/rfc8693/token_exchange_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/pborman/uuid"
"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -74,8 +74,10 @@ func TestAccessTokenExchangeImpersonation(t *testing.T) {
}

coreStrategy := &oauth2.HMACSHAStrategy{
Enigma: &hmac.HMACStrategy{Config: config},
Config: config,
HMACSHAStrategyUnPrefixed: &oauth2.HMACSHAStrategyUnPrefixed{
Enigma: &hmac.HMACStrategy{Config: config},
Config: config,
},
}

genericTEHandler := &TokenExchangeGrantHandler{
Expand Down Expand Up @@ -109,7 +111,7 @@ func TestAccessTokenExchangeImpersonation(t *testing.T) {
handlers: []fosite.TokenEndpointHandler{genericTEHandler, accessTokenHandler},
areq: &fosite.AccessRequest{
Request: fosite.Request{
ID: uuid.New(),
ID: uuid.NewString(),
Client: store.Clients["my-client"],
Form: url.Values{
"subject_token_type": []string{rfc8693.AccessTokenType},
Expand All @@ -135,7 +137,7 @@ func TestAccessTokenExchangeImpersonation(t *testing.T) {
handlers: []fosite.TokenEndpointHandler{genericTEHandler, accessTokenHandler, customJWTHandler},
areq: &fosite.AccessRequest{
Request: fosite.Request{
ID: uuid.New(),
ID: uuid.NewString(),
Client: store.Clients["my-client"],
Form: url.Values{
"subject_token_type": []string{jwtName},
Expand Down

0 comments on commit dfe8452

Please sign in to comment.