aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/oauth/views.py
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup mediagoblin._compat and fix translation tests.Berker Peksag2014-07-281-1/+1
|
* Use six.text_type instead of unicode().Berker Peksag2014-06-021-4/+6
| | | | I will be switch to use ``from __future__ import unicode_literals`` later.
* Fixes testsxray72242013-07-141-2/+1
|
* Moves json_response into tools/json.pyxray72242013-07-111-1/+1
|
* OAuth: Support refresh tokens, etcJoar Wandborg2013-04-061-67/+83
| | | | | | | | | | | | | | Initially I was going to write a failing test for refresh tokens. Thus this fix includes an orphaned 'expect_failure' method in test utils. I ended up writing support for OAuth refresh tokens, as well as a lot of cleanup (hopefully) in the OAuth plugin code. **Rebase**: While waiting for this stuff to be merged, the testing framework changed, it comes with batteries included regarding fails. Removed legacy nosetest helper. Also added a lot of backref=backref([...], cascade='all, delete-orphan')
* Use WTForms data field in plugins/oauth/views.pyHans Lo2013-03-281-4/+4
|
* Transition webob BadRequest|HTTPFound to webob/redirectSebastian Spaeth2012-12-211-5/+4
| | | | | More transitioning away from webob Response import from webob was unused
* Fiy python2.7'ism (#566)Sebastian Spaeth2012-12-141-3/+7
| | | | | | | | | | | | | The oauth plugin used timedelta.total_seconds which was introduced in python 2.7 only. To preserve backwards compatability, we simply calculate the time difference in seconds manually. I considered monkeypatching total_seconds to the timedelta object, but it is a built-in type written in C (I believe) and modifying attributes failed horribly. Switch this to use total_seconds once we require python 2.7 as minimum version. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Replaced all request.POST with request.form, ...Joar Wandborg2012-09-291-13/+45
| | | | | - Fixed error handling in OAuth plugin - Changed request.POST file fields to request.files
* Added client registration caps to OAuth pluginJoar Wandborg2012-09-211-22/+132
| | | | | | | | | | | | | | | | | | | THE MIGRATIONS SUPPLIED WITH THIS COMMIT WILL DROP AND RE-CREATE YOUR oauth__tokens AND oauth__codes TABLES. ALL YOUR OAUTH CODES AND TOKENS WILL BE LOST. - Fixed pylint issues in db/sql/migrations. - Added __repr__ to the User model. - Added _disable_cors option to json_response. - Added crude error handling to the api.tools.api_auth decorator - Updated the OAuth README. - Added client registration, client overview, connection overview, client authorization views and templates. - Added error handling to the OAuthAuth Auth object. - Added AuthorizationForm, ClientRegistrationForm in oauth/forms. - Added migrations for OAuth, added client registration migration. - Added OAuthClient, OAuthUserClient models. - Added oauth/tools with require_client_auth decorator method.
* Created API plugin, moved api_auth to the API pluginJoar Wandborg2012-09-131-12/+0
|
* Add OAuth models, plugin DB migrations, api_authJoar Wandborg2012-09-131-0/+105