diff --git a/go.mod b/go.mod index 6a164b003..ed338aa65 100644 --- a/go.mod +++ b/go.mod @@ -26,7 +26,7 @@ require ( github.com/mattn/go-sqlite3 v1.14.16 github.com/mitchellh/mapstructure v1.5.0 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 - github.com/ory/fosite v0.43.0 + github.com/ory/fosite v0.44.0 github.com/ory/herodot v0.9.13 github.com/ory/x v0.0.520 github.com/otiai10/copy v1.9.0 diff --git a/go.sum b/go.sum index 1e04d4e24..c3e96ecb5 100644 --- a/go.sum +++ b/go.sum @@ -452,6 +452,8 @@ github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE= github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= github.com/ory/fosite v0.43.0 h1:9H1O3I7CFxS2Y6j9FDAx2W3I5uAyEubc9hECS0UTOgI= github.com/ory/fosite v0.43.0/go.mod h1:BTd8+oG1mRtezZbQq0S4D2HBc815bedZHjjs2KRs39Y= +github.com/ory/fosite v0.44.0 h1:Z3UjyO11/wlIoa3BotOqcTkfm7kUNA8F7dd8mOMfx0o= +github.com/ory/fosite v0.44.0/go.mod h1:o/G4kAeNn65l6MCod2+KmFfU6JQBSojS7eXys6lKGzM= github.com/ory/go-acc v0.2.6/go.mod h1:4Kb/UnPcT8qRAk3IAxta+hvVapdxTLWtrr7bFLlEgpw= github.com/ory/go-acc v0.2.8 h1:rOHHAPQjf0u7eHFGWpiXK+gIu/e0GRSJNr9pDukdNC4= github.com/ory/go-acc v0.2.8/go.mod h1:iCRZUdGb/7nqvSn8xWZkhfVrtXRZ9Wru2E5rabCjFPI= diff --git a/internal/oidc/config.go b/internal/oidc/config.go index 89949980d..7da84d4ef 100644 --- a/internal/oidc/config.go +++ b/internal/oidc/config.go @@ -414,13 +414,13 @@ func (c *Config) GetTokenEntropy(ctx context.Context) (entropy int) { } // GetGlobalSecret returns the global secret. -func (c *Config) GetGlobalSecret(ctx context.Context) (secret []byte) { - return c.GlobalSecret +func (c *Config) GetGlobalSecret(ctx context.Context) (secret []byte, err error) { + return c.GlobalSecret, nil } // GetRotatedGlobalSecrets returns the rotated global secrets. -func (c *Config) GetRotatedGlobalSecrets(ctx context.Context) (secrets [][]byte) { - return c.RotatedGlobalSecrets +func (c *Config) GetRotatedGlobalSecrets(ctx context.Context) (secrets [][]byte, err error) { + return c.RotatedGlobalSecrets, nil } // GetHTTPClient returns the HTTP client provider.