A Mongo Storage backend for https://github.com/ory/fosite
APACHE-2.0 License
Published by matthewhartstonge over 4 years ago
RevokeAccessToken
attempted to delete the access token twice from the datastore leading to fosite.ErrNotFound
always being returned.RevokeRefreshToken
attempted to delete the refresh token twice from the datastore leading to fosite.ErrNotFound
always being returned.Published by matthewhartstonge over 4 years ago
go@{1.14, tip}
ineffassign
and staticcheck
issues.maligned
issues reducing config struct memory allocation from 138 bytes to 127 bytes.lint
issues where context was not the first parameter.Published by matthewhartstonge about 5 years ago
[email protected]
client.Equal
by doing a compare on allowed regions.Published by matthewhartstonge about 5 years ago
client.list
.1.13.x
, 1.12.x
,1.11.x
.[email protected]
and [email protected]
.Published by matthewhartstonge over 5 years ago
RequestManager.List
now uses entityName
instead of hardcoded storage.EntityClients
#24
RequestManager.Update
should use entityName
instead of hardcoded storage.EntityClients
#25
Published by matthewhartstonge almost 6 years ago
v0.27.x
Client
: Now has an AllowedAudiences
attribute to comply to the new interface method required for fosite.Client
.Request
: Changed attribute Scopes
to RequestedScope
. bson, json and xml tags remain the same.Request
: Changed attribute GrantedScopes
to GrantedScope
. bson, json and xml tags remain the same.Published by matthewhartstonge almost 6 years ago
v0.26.0
Id
suffixes are now ID
Published by matthewhartstonge about 6 years ago
v0.25.0
Published by matthewhartstonge about 6 years ago
v0.23.0
Published by matthewhartstonge about 6 years ago
v0.22.0
Published by matthewhartstonge about 6 years ago
We have been using this release in house for the past month with our
own auth server. If you have any issues related to the mongo storage
implementation, please report an issue.
Gopkg.lock
to support dep v0.5.0
envconfig
package toConfig.TLSConfig
, as the instantiated config itPersonID
Published by matthewhartstonge over 6 years ago
Configurer
interfaceConfigurer
interfacev0.21.X
v0.13.0-alpha1
signature
not by the non-existant bson attribute value
.Published by matthewhartstonge over 6 years ago
Store
to conform to the required fosite
interfaces.Store
to ensure the functions are available at the top level!storage.Storer
to Storage.Store
to be more idiomatic.MongoStore
to Store
to be more idiomatic.ConnectToMongo
to Connect
to be more idiomatic.NewDefaultMongoStore
to NewDefaultStore
to be more idiomatic.cacheMongoManager
clientMongoManager
requestMongoManager
userMongoManager
CacheMongoManager
to CacheManager
to be more idiomatic.ClientMongoManager
to ClientManager
to be more idiomatic.RequestMongoManager
to RequestManager
to be more idiomatic.UserMongoManager
to UserManager
to be more idiomatic.db
and hasher
to be exported to enable custom data store composition.user_manager
referring to clients instead of users.Published by matthewhartstonge over 6 years ago
context.Context
MongoStore
for an example of how to bind this in.InvalidateAuthorizeCodeSession(ctx context.Context, code string) (err error)
as per [email protected]
Pretty much everything..
Storage has been re-written in such a way that multiple datastore backends can
be created, and bound together. This can become useful over time as you need to
scale out and would like to switch components out to a different backend.
For example, hitting the cache. You could implement and compose in a Redis
CacheManager
, which you could bind into your mongo storage implementation.
context.Context
DeleteAuthorizeCodeSession(ctx context.Context, code string) (err error)
has been removed from the interface and is no longer used by the upstream, fosite, library.Published by matthewhartstonge over 6 years ago
This is the last upgrade to storage before revamping the lib.
Fosite v0.17.0
adds a storage interface for PKCE, so will be a breaking change as it is.
Before adding that, this PR moves package managers to dep and removes a couple of functions that were deprecated, hence the minor pre-release bump.
Some hints of the future:
ctx
to all storage functions in order to pass the mongo session via ctx