aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/oauth/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixes testsxray72242013-07-141-6/+6
|
* OAuth: Support refresh tokens, etcJoar Wandborg2013-04-061-1/+1
| | | | | | | | | | | | | | 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')
* Removed Routes dependency, added admin routesJoar Wandborg2012-10-201-2/+0
|
* Fixed OAuth access_token duplicate routeJoar Wandborg2012-10-151-4/+7
| | | | Changed route name to "[...]list_connections"
* Switched most stuff over from RoutesJoar Wandborg2012-10-141-12/+12
| | | | | | | | | | Removed the Routes routing functionality and replaced it with werkzeug.routes. Most views are functional. Known issues: - Translation integration with the request object is not yet figured out. This breaks 404 pages.
* Added client registration caps to OAuth pluginJoar Wandborg2012-09-211-4/+39
| | | | | | | | | | | | | | | | | | | 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.
* Fixed a horrible security issue in the OAuth plugin.Joar Wandborg2012-09-191-3/+6
| | | | Also added some real triggering logic to the OAuthAuth Auth object.
* Added /api/entries viewJoar Wandborg2012-09-151-20/+2
|
* Created API plugin, moved api_auth to the API pluginJoar Wandborg2012-09-131-2/+0
|
* Add OAuth models, plugin DB migrations, api_authJoar Wandborg2012-09-131-0/+90