Changed token auth a bit, including the use of itsdangerous. Also added JSON authentication feature

This commit is contained in:
Matt Wright
2012-07-11 16:31:21 -04:00
parent b3de4a76d5
commit 5e1d18c9e8
9 changed files with 101 additions and 58 deletions
+1 -2
View File
@@ -32,8 +32,7 @@ def create_users():
('jill@lp.com', 'password', ['author'], True),
('tiya@lp.com', 'password', [], False)):
current_app.security.datastore.create_user(
email=u[0], password=u[1], roles=u[2], active=u[3],
authentication_token='123abc')
email=u[0], password=u[1], roles=u[2], active=u[3])
def populate_data():