Browse Source

Merge pull request #4441 from dexidp/dependabot/go_modules/github.com/coreos/go-oidc/v3-3.17.0

build(deps): bump github.com/coreos/go-oidc/v3 from 3.14.1 to 3.17.0
pull/4436/head
Márk Sági-Kazár 2 months ago committed by GitHub
parent
commit
8fc1f971c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      go.mod
  2. 4
      go.sum
  3. 12
      server/introspectionhandler_test.go

2
go.mod

@ -9,7 +9,7 @@ require (
github.com/Masterminds/semver v1.5.0
github.com/Masterminds/sprig/v3 v3.3.0
github.com/beevik/etree v1.6.0
github.com/coreos/go-oidc/v3 v3.14.1
github.com/coreos/go-oidc/v3 v3.17.0
github.com/dexidp/dex/api/v2 v2.3.0
github.com/fsnotify/fsnotify v1.9.0
github.com/ghodss/yaml v1.0.0

4
go.sum

@ -40,8 +40,8 @@ github.com/bmatcuk/doublestar v1.3.4 h1:gPypJ5xD31uhX6Tf54sDPUOBXTqKH4c9aPY66CyQ
github.com/bmatcuk/doublestar v1.3.4/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE=
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/coreos/go-oidc/v3 v3.14.1 h1:9ePWwfdwC4QKRlCXsJGou56adA/owXczOzwKdOumLqk=
github.com/coreos/go-oidc/v3 v3.14.1/go.mod h1:HaZ3szPaZ0e4r6ebqvsLWlk2Tn+aejfmrfah6hnSYEU=
github.com/coreos/go-oidc/v3 v3.17.0 h1:hWBGaQfbi0iVviX4ibC7bk8OKT5qNr4klBaCHVNvehc=
github.com/coreos/go-oidc/v3 v3.17.0/go.mod h1:wqPbKFrVnE90vty060SB40FCJ8fTHTxSwyXJqZH+sI8=
github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4=
github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec=
github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs=

12
server/introspectionhandler_test.go

@ -136,6 +136,7 @@ func getIntrospectionValue(issuerURL url.URL, issuedAt time.Time, expiry time.Ti
func TestGetTokenFromRequestSuccess(t *testing.T) {
t0 := time.Now()
ctx := t.Context()
now := func() time.Time { return t0 }
// Setup a dex server.
@ -145,6 +146,15 @@ func TestGetTokenFromRequestSuccess(t *testing.T) {
})
defer httpServer.Close()
mockTestStorage(t, s.storage)
// Generate a valid RS256-signed access token
accessToken, _, err := s.newIDToken(ctx, "test", storage.Claims{
UserID: "1",
Username: "jane",
}, []string{"openid"}, "nonce", "", "", "test")
require.NoError(t, err)
tests := []struct {
testName string
expectedToken string
@ -153,7 +163,7 @@ func TestGetTokenFromRequestSuccess(t *testing.T) {
// Access Token
{
testName: "Access Token",
expectedToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
expectedToken: accessToken,
expectedTokenType: AccessToken,
},
// Refresh Token

Loading…
Cancel
Save