eve-oauth2
eve-oauth2 copied to clipboard
Does not seem to currently work with either Python2 or Python3
I was trying to run this example and received a few errors:
- in run.py had to change "from flask.ext.sentinel " to
from flask_sentinel import ResourceOwnerPasswordCredentials, oauth
- in oauth2.py had to add:
import os
from redis.connection import ConnectionPool
- I have also added this config setting. Seems pymongo will only use a URI now:
SENTINEL_MONGO_URI = 'mongodb://oauth2:[email protected]/mydb?authSource=mydb'
- I had to modify the flask-sentinel project as well. The config_prefix is no longer valid with pymongo. The flask_sentinel.py:
from:
mongo.init_app(app, config_prefix='SENTINEL_MONGO')
to
mongo.init_app(app)