A Mongo Storage backend for https://github.com/ory/fosite
APACHE-2.0 License
github.com/google/[email protected]
.github.com/stretchr/[email protected]
.go.mongodb.org/[email protected]
.[email protected]
.[email protected]
.[email protected]
.Full Changelog: https://github.com/matthewhartstonge/storage/compare/v0.33.0...v0.34.0
Published by matthewhartstonge over 1 year ago
github.com/opentracing/[email protected]
.github.com/sirupsen/[email protected]
.go.mongodb.org/[email protected]
.examples/mongo
to github.com/sirupsen/[email protected]
.examples/mongo
to golang.org/x/[email protected]
.examples/mongo
to golang.org/x/[email protected]
.Published by matthewhartstonge almost 2 years ago
github.com/google/[email protected]
.github.com/sirupsen/[email protected]
.github.com/stretchr/[email protected]
.go.mongodb.org/[email protected]
.examples/mongo
to github.com/sirupsen/[email protected]
.examples/mongo
to golang.org/x/[email protected]
.examples/mongo
to golang.org/x/[email protected]
.examples/mongo
to go.mongodb.org/[email protected]
.Exact()
to ExactOne()
.[email protected]
.Changes: https://github.com/matthewhartstonge/storage/compare/v0.30.1...v0.31.0
Published by matthewhartstonge about 2 years ago
[email protected]
.Changes: https://github.com/matthewhartstonge/storage/compare/v0.30.0...v0.30.1
Published by matthewhartstonge about 2 years ago
[email protected]
.Changes: https://github.com/matthewhartstonge/storage/compare/v0.29.0...v0.30.0
Published by matthewhartstonge about 2 years ago
Breaking Change:
If you are running on Mongo<4.0, please update as the indices will now build in the foreground. Mongo>4.0 has changed to a new indexing engine and this option is now deprecated.
SetBackground
due to MongoDB 4.0 EOL.Changes: https://github.com/matthewhartstonge/storage/compare/v0.28.0...v0.29.0
Published by matthewhartstonge about 3 years ago
mongodb+srv
connection strings.ssl=true
and a TLS config has not been provided.Expirer
interface to enable stores to add support for configuring record expiration.storage.Expirer
interface to enable TTL based expiry on tokens.isDup(err)
to mongo.IsDuplicateKeyError(err)
.isDup(err)
function.Changes: https://github.com/matthewhartstonge/storage/compare/v0.27.0...v0.28.0
Published by matthewhartstonge about 3 years ago
This release will add a new hashed index on signature
for the accessTokens
collection. This makes the old accessTokens.idxSignatureId
index redundant and can be removed.
mongo-features
example.Changes: v0.26.0...v0.27.0
Published by matthewhartstonge about 3 years ago
user.FullName()
.user.Equal()
.go.mod
to [email protected]
and tidies go.sum
.SetClientAssertionJWT
now logs unknown errors if deleting expired JTIs fails.Changes: v0.25.1...v0.26.0
Published by matthewhartstonge about 3 years ago
[email protected]
.
Published by matthewhartstonge over 3 years ago
pborman/uuid
to google/uuid
.[email protected]
.[email protected]
.pborman/uuid
to google/[email protected]
.[email protected]
.[email protected]
, adds [email protected]
.db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
. Therefore, for now, it's easier to remove it until every current mongo version supports transactions.mongo-features
due to bugfix released via mongo-driver
.
mongo-driver
wasn't pulling or pushing sessions into the context correctly.mongo-features
also relied on admin commands/permissions to detect the running mongo version to ascertain if the mongo version connected to was transaction compatible, so no longer needed.Published by matthewhartstonge about 4 years ago
As mentioned under changed:
AuthClientFunc
and AuthUserFunc
now take in a context.store.DB
is now of type *DB
not *mongo.Database
but the API remains the same. If you explicitly require type *mongo.Database
, you can obtain this by stepping into the DB
wrapper store.DB.Database
.[email protected]
for mongoDB feature detection.DB
a wrapper containing *mongo.Database
and *feat.Features
.AuthClientFunc
and AuthUserFunc
now accept a context.
type AuthClientFunc func() (Client, bool)
=> type AuthClientFunc func(ctx context.Context) (Client, bool)
type AuthUserFunc func() (User, bool)
=> type AuthUserFunc func(ctx context.Context) (User, bool)
DB *mongo.Database
to our wrapperDB *DB
in order to provide mongoDB feature detection for managing sessionsPublished by matthewhartstonge about 4 years ago
storage.Transactional
[email protected]
Published by matthewhartstonge over 4 years ago
Published by matthewhartstonge over 4 years ago
[email protected]
's interface fosite.ClientManager
.DeniedJTIManager
andDeniedJTIStorer
to comply to added methods in fosite.ClientManager
.[email protected]
[email protected]
[email protected]
Published by matthewhartstonge over 4 years ago
Removes 'Cache' implementation which actually added a level of indirection,
doubling required database calls in some instances.
storage.SessionCache
(struct)storage.Cacher
(interface)storage.CacheManager
(interface)storage.CacheStorer
(interface)storage.RequestManager.Cache
(interface binding to a storage.CacheStorer
)mongo.CacheManager
(concrete implementation of storage.CacheManager
)Published by matthewhartstonge over 4 years ago
This release migrates to the official Go MongoDB driver.
If you have any custom code using mgo that feeds into storage
, you will need to migrate these to use mongo-go-driver patterns.
[email protected]
.globalsign/mgo
to mongodb/mongo-go-driver
.examples/mongo
instead of having a wad of example code in the readme.