We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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
The text was updated successfully, but these errors were encountered:
Changin the UpserId part in SaveAccess with:
udata:= bson.M{"$set": data} _, err := accesses.UpsertId(data.AccessToken, udata)
Works, but then, when recovering the data in LoadAccess, I get errors:
reflect.Set: value of type bson.M is not assignable to type osin.Client
Sorry, something went wrong.
Nevermind, I guess this is because I'm using the latest osin patch with the breaking changes...where Client is an interface.
No branches or pull requests
Hello
The mongo storage uses this to save accesses, authorizations and clients:
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
The text was updated successfully, but these errors were encountered: