flask-sso icon indicating copy to clipboard operation
flask-sso copied to clipboard

Wrong Doku (typo)?

Open mlechner opened this issue 8 years ago • 2 comments

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 avatar Oct 17 '16 11:10 mlechner

@mlechner thanks for spotting it! I propose:

-ext = SSO(app=app)
+sso = SSO(app=app)

jirikuncar avatar Oct 17 '16 12:10 jirikuncar

FYI docs still not updated to reflect this. I had a few minutes of panic/scrambling before realizing this

millergd avatar Apr 17 '19 13:04 millergd