martint17r / osin-mongo-storage Goto Github PK
View Code? Open in Web Editor NEWMongoDB storage for OSIN
License: MIT License
MongoDB storage for OSIN
License: MIT License
Hi,
Great project :)
I was trying to integrate with some code of mine and I got
cannot use mongo.Conn() (type *"gopkg.in/mgo.v2".Session) as type "labix.org/v2/mgo".
I had trouble in the past and apparently it is suggested to use gopkg.in/mgo.v2 instead of labix.org/v2/mgo.
See http://stackoverflow.com/questions/31244438/mgo-newobjectid-corrupt-on-insert for the comment from mgo's maintainer.
Due to the upgrade of osin.Client, mongo would fail to load osin.Client, throwing following error
reflect.Set: value of type bson.M is not assignable to type osin.Client
It's awkward to deal with specific interface storage in any storage instead of memory. Any good way to tackle this problem?
Will osin-mongo-storage work with the latest osin?
Hello
The mongo storage uses this to save accesses, authorizations and clients:
UpsertId(data.Code, data)
But it does not work for me. (mongodb 2.4.9) It does not save data.Code as the id but an ObjectID generated by mongodb.
Does it work for you? what i'm missing with this?
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.