coleifer/flask-peewee — Issue #11: API authentication broken by upgrade to flask-peewee-0.3.2
Author: pixiemars
Created: 2011-11-24 11:51:58+00:00
State: open

Hiya

I just updated to 0.3.2 and I am now getting 401 errors when I try to post to my rest API. Nothing has changed in my app's code and I looked at the latest documentation and it seems to have the same requirements for authentication.

This is my current code for my rest API.

from flaskext.rest import RestAPI, UserAuthentication

# instantiate the user auth
user_auth = UserAuthentication(auth)

# create a RestAPI container
api = RestAPI(app, default_auth=user_auth)

# register the models
api.register(model1)
api.register(model2)

api.setup()