oauth2.store.mongodb — Mongodb store adapters

Store adapters to read/write data to from/to mongodb using pymongo.

class oauth2.store.mongodb.MongodbStore(collection)[source]

Base class extended by all concrete store adapters.

class oauth2.store.mongodb.AccessTokenStore(collection)[source]

Create a new instance like this:

from pymongo import MongoClient

client = MongoClient('localhost', 27017)

db = client.test_database

access_token_store = AccessTokenStore(collection=db["access_tokens"])
class oauth2.store.mongodb.AuthCodeStore(collection)[source]

Create a new instance like this:

from pymongo import MongoClient

client = MongoClient('localhost', 27017)

db = client.test_database

access_token_store = AuthCodeStore(collection=db["auth_codes"])
class oauth2.store.mongodb.ClientStore(collection)[source]

Create a new instance like this:

from pymongo import MongoClient

client = MongoClient('localhost', 27017)

db = client.test_database

access_token_store = ClientStore(collection=db["clients"])