Skip to content

Commit

Permalink
chores:remove go-jose dependency
Browse files Browse the repository at this point in the history
Signed-off-by: asingh51 <[email protected]>
  • Loading branch information
asingh51 committed Jan 31, 2024
1 parent 55918ab commit e6018f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ require (
github.com/fsnotify/fsnotify v1.6.0
github.com/gfleury/go-bitbucket-v1 v0.0.0-20220301131131-8e7ed04b843e
github.com/go-git/go-git/v5 v5.11.0
github.com/go-jose/go-jose/v3 v3.0.1
github.com/go-logr/logr v1.3.0
github.com/go-openapi/loads v0.21.2
github.com/go-openapi/runtime v0.26.0
Expand Down
13 changes: 7 additions & 6 deletions util/test/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"net/http/httptest"
"testing"

"github.com/go-jose/go-jose/v3"
"github.com/golang-jwt/jwt/v4"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -182,13 +181,15 @@ func oidcMockHandler(t *testing.T, url string) func(http.ResponseWriter, *http.R
case "/keys":
pubKey, err := jwt.ParseRSAPublicKeyFromPEM(Cert)
require.NoError(t, err)
jwks := jose.JSONWebKeySet{
Keys: []jose.JSONWebKey{
{
Key: pubKey,
},
keys := []map[string]interface{}{
{
"key": pubKey,
},
}
jwks := map[string]interface{}{
"keys": keys,
}

out, err := json.Marshal(jwks)
require.NoError(t, err)
_, err = io.WriteString(w, string(out))
Expand Down

0 comments on commit e6018f6

Please sign in to comment.