ory/fosite

Can not run the example code

Opened this issue · 0 comments

Preflight checklist

Ory Network Project

No response

Describe the bug

I imported fosite latest release v0.44.0 when I run the example code

oauth2 := compose.ComposeAllEnabled(foconfig, store, privateKey)

I got error

../go/pkg/mod/github.com/ory/fosite@v0.44.0/client_authentication_jwks_strategy.go:134:10: s.cache.Wait undefined (type *ristretto.Cache has no field or method Wait)

in client_authentication_jwks_strategy.go:134

func (s *DefaultJWKSFetcherStrategy) WaitForCache() {
	s.cache.Wait()
}

seems version v0.44.0 uses github.com/dgraph-io/ristretto v0.0.3 and in this version they don't have Wait method

Reproducing the bug

use release v0.44.0 and run example

Relevant log output

No response

Relevant configuration

No response

Version

v0.44.0

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

I added below into go.mod file and fixed the issue

replace github.com/dgraph-io/ristretto v0.0.3 => github.com/dgraph-io/ristretto v0.1.1