flask-sso
flask-sso copied to clipboard
Wrong Doku (typo)?
Hi, when i try to follow the example on http://flask-sso.readthedocs.io/en/latest/#a-minimal-example I get the following error:
@sso.login_handler
NameError: name 'sso' is not defined
As described in the docs i defined
app = Flask(__name__)
...
ext = SSO(app=app)
Shouldn't it be
sso = SSO(app=app)
or
@ext.login_handler
@mlechner thanks for spotting it! I propose:
-ext = SSO(app=app)
+sso = SSO(app=app)
FYI docs still not updated to reflect this. I had a few minutes of panic/scrambling before realizing this