mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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=
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user