Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not seem to currently work with either Python2 or Python3 #4

Open
samsantiago opened this issue Sep 10, 2018 · 1 comment
Open

Comments

@samsantiago
Copy link

samsantiago commented Sep 10, 2018

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)
@rmlopes
Copy link

rmlopes commented Apr 29, 2019

See Flask-Sentinel #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants