Matt Wright
4e41f4ec5e
Polish up tests
2012-08-24 00:47:41 -04:00
Matt Wright
23cc774f96
Add error for bad configuration
2012-08-24 00:27:22 -04:00
Matt Wright
bac04a0f3c
remove more unnecessary code
2012-08-23 23:48:55 -04:00
Matt Wright
6e754ed356
Major refactoring. Got rid of exceptions/errors in favor of using simple return values. Update tests to ensure full coverage according to nose coverage plugin
2012-08-23 17:58:33 -04:00
Matt Wright
5a4fb94be3
Make confirm endpoint anonymous only and get rid of invalid test
2012-08-23 15:03:13 -04:00
Matt Wright
57595bbab4
Refactor forms and views a bit. Add more validation to forms
2012-08-23 14:56:35 -04:00
Matt Wright
b0b09aea49
Add ability to define a send_mail_task which could be used to send mails instead of the default flask-mail plugin. Could also be used to send mail asynchronously. Make flask-mail required as well.
2012-08-23 13:01:11 -04:00
Matt Wright
b65b717fbc
Polish
2012-08-22 18:01:31 -04:00
Matt Wright
dc39eb58c7
Fix test
2012-08-22 16:37:17 -04:00
Matt Wright
53257c17a9
Update send_mail api and add welcome email for user registration. Also add security state to template context for emails for more complex template rendering.
2012-08-22 15:15:39 -04:00
Matt Wright
86adcf0653
Fix build
2012-08-22 12:06:21 -04:00
Matt Wright
2471ba0db8
Move example app, which was a bad example, to the tests namespace. Its what it was used for anyway. A better example will be provided later
2012-08-22 12:00:46 -04:00
Matt Wright
eec0e23620
Remove old test
2012-08-21 17:35:19 -04:00
Matt Wright
d3c23c1994
Polish
2012-08-21 17:34:38 -04:00
Matt Wright
66c565a72f
Register mail as extension, for now
2012-08-21 11:38:24 -04:00
Matt Wright
828a973339
Add already confirmed scenario. Let datastore work without a request context
2012-08-21 01:50:40 -04:00
Matt Wright
bebaac49e3
Forgo redirecting authentication endpoint so that login form errors can be displayed
2012-08-20 23:35:17 -04:00
Matt Wright
101fa42e55
Only use password salt if using hmac
2012-08-20 18:17:29 -04:00
Matt Wright
a39f46854e
Significant design change: commit data after some requests to avoid multiple database hits when using SQLALchemy
2012-08-17 13:19:40 -04:00
Matt Wright
adb550a9f2
Improve RegisterUserForm
2012-08-16 19:05:42 -04:00
Matt Wright
d87676027e
Fix some redirect rules
2012-08-16 18:42:37 -04:00
Matt Wright
8b139890b4
Add useful decorator for ensuring anonymous users on particular endpoints
2012-08-16 17:53:41 -04:00
Matt Wright
1d8b2f8342
Change urls/views to be (subjectively) simpler
2012-08-16 17:25:24 -04:00
Matt Wright
1d378a6827
Add login to security blueprint
2012-08-16 15:18:49 -04:00
Matt Wright
80144c85a1
Fix bug with an invalid remember_token cookie value
2012-08-15 17:06:07 -04:00
Matt Wright
7554a52732
Cleanup and some more messaging additions
2012-08-15 11:56:26 -04:00
Matt Wright
022836c43c
fix tests, hopefully
2012-08-15 10:25:07 -04:00
Matt Wright
64467b0338
Try and fix build
2012-08-15 10:14:06 -04:00
Matt Wright
318cb3dc6e
First commit of passwordless login
2012-08-14 19:01:49 -04:00
Matt Wright
ce6c5dcf31
Clean up
2012-08-14 16:59:05 -04:00
Matt Wright
05bd2a5aae
Full test coverage!
2012-08-14 15:57:07 -04:00
Matt Wright
e9adf91a27
More and more test coverage
2012-08-14 14:27:58 -04:00
Matt Wright
f6bb01545d
Add more test coverage
2012-08-14 13:47:16 -04:00
Matt Wright
68dd972bfa
Add more secure password storage via salt value and hmac
2012-07-18 13:27:30 -04:00
Matt Wright
f170cb434c
Use a stateful object instead of arbitrary assignment of extension on app object
2012-07-16 19:07:19 -04:00
Matt Wright
0a0b5ecade
Get rid of login_required decorator from roles_required and roles_accepted in order to be able to pair http_auth_required with roles_required or roles_accepted. Just be sure to put http_auth_required first.
2012-07-13 13:50:36 -04:00
Matt Wright
18c7a838b0
Make most messages configurable
2012-07-12 15:24:57 -04:00
Matt Wright
dcdfb4d3e7
Add configurable http auth realm and optional realm specification in http_auth_required decorator
2012-07-12 14:16:54 -04:00
Matt Wright
dfcb3cdcc6
Add customizable unauthorized URL. Fixes #23
2012-07-12 12:47:21 -04:00
Matt Wright
da031b8d15
Simplify routing a tiny bit
2012-07-12 11:29:42 -04:00
Matt Wright
0befa34dc8
Trying to fix build, I don't think Travis likes the quickness of the token expiration tests
2012-07-11 18:26:10 -04:00
Matt Wright
5e1d18c9e8
Changed token auth a bit, including the use of itsdangerous. Also added JSON authentication feature
2012-07-11 16:31:21 -04:00
Matt Wright
b9a6a9c5a8
Use itsdangerous for activation and password reset tokens so they do not need to be stored in the database
2012-07-11 15:06:54 -04:00
Matt Wright
815c8695fc
Code clean upr
2012-07-10 17:24:39 -04:00
Matt Wright
2ed0ea48e6
Add trackable option and make extra features default to off/False to minimize about of application setup to get started
2012-07-09 18:57:43 -04:00
Matt Wright
74e94b2628
Merge branch 'develop' of github.com:mattupstate/flask-security into develop
2012-06-29 13:18:14 -04:00
Matt Wright
2ea835ec9f
Add a bunch of doc strings and add some more configuration values
2012-06-29 12:37:22 -04:00
David Ignacio
24cd4938a5
correct roles_* decorator signature expectations
...
Having multiple RoleNeed objects in a Permission does not require
all to be satisfied in order to .can(), but will return True if
any are present. This makes the previous roles_required logic more
elegant for roles_accepted. roles_required decorator needs to check
all permissions individually and return only if all permissions exist
2012-06-22 00:15:43 -05:00
Matt Wright
5034e7b4f6
Add test methods that are missing for Python versions < 2.7
2012-06-20 16:21:35 -04:00
Matt Wright
a7016c1cfa
Update build and dependencies
2012-06-20 15:36:44 -04:00