eve-oauth2 icon indicating copy to clipboard operation
eve-oauth2 copied to clipboard

Does not seem to currently work with either Python2 or Python3

Open samsantiago opened this issue 6 years ago • 1 comments

I was trying to run this example and received a few errors:

  1. in run.py had to change "from flask.ext.sentinel " to
from flask_sentinel import ResourceOwnerPasswordCredentials, oauth
  1. in oauth2.py had to add:
import os
from redis.connection import ConnectionPool
  1. 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'
  1. 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)

samsantiago avatar Sep 10 '18 00:09 samsantiago

See Flask-Sentinel #30

rmlopes avatar Apr 29 '19 22:04 rmlopes