aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/oauth
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into merge-python3-portChristopher Allan Webber2014-09-161-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Has some issues, will iteratively fix! Conflicts: mediagoblin/gmg_commands/__init__.py mediagoblin/gmg_commands/deletemedia.py mediagoblin/gmg_commands/users.py mediagoblin/oauth/views.py mediagoblin/plugins/api/views.py mediagoblin/tests/test_api.py mediagoblin/tests/test_edit.py mediagoblin/tests/test_oauth1.py mediagoblin/tests/test_util.py mediagoblin/tools/mail.py mediagoblin/webfinger/views.py setup.py
| * Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. ↵Loïc Le Ninan2014-06-131-4/+4
| | | | | | | | Replaced Required with InputRequired.
* | Cleanup mediagoblin._compat and fix translation tests.Berker Peksag2014-07-281-1/+1
| |
* | Remove sqlalchemy-migrate imports from the codebase. Do not touch tests yet.Berker Peksag2014-06-271-4/+0
| |
* | Use six.text_type instead of unicode().Berker Peksag2014-06-022-6/+10
| | | | | | | | I will be switch to use ``from __future__ import unicode_literals`` later.
* | Use six.moves.urllib.parse instead of the urlparse module.Berker Peksag2014-05-261-1/+1
|/
* Fixes testsxray72242013-07-143-9/+8
|
* Moves json_response into tools/json.pyxray72242013-07-112-2/+2
|
* Fix-bug-667-Use-lazy_pass_to_ugettext-for-forms.Aditi Mittal2013-04-241-1/+1
|
* OAuth: Support refresh tokens, etcJoar Wandborg2013-04-065-94/+252
| | | | | | | | | | | | | | 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
|
* Providing warning to users about instability of OAuth/APIChristopher Allan Webber2013-03-081-0/+4
|
* Fixed hidden fields in oauth client authorizationJoar Wandborg2013-03-022-5/+4
| | | | | | Removed the translation marking and passed in empty strings to avoid WTForms automagically creating the labels from the field names (i.e. client_id => 'Client Id').
* Move db.sql.migration_tools to db.migration_tools.Elrond2013-01-081-1/+1
| | | | Follow the new trend.
* Move all the migration tools into new migration_tools.pyElrond2013-01-081-1/+1
| | | | | | | | | Factor all the migration related stuff out into a new .db.sql.migration_tools. First we don't have to load this module for our normal server. Second it makes all the import dependencies a little more cleaner.
* Mv db.sql.base to db.baseSebastian Spaeth2013-01-071-1/+1
| | | | | | | | This concludes the db.sql.* -> db.* move. Our db abstraction layer is sqlalchemy, so there is no need to a separate db.sql.* hierarchy. All tests have been run for each of the commit series to make sure everything works at every step.
* Move db.sql.models* to db.models*Sebastian Spaeth2013-01-072-2/+2
|
* Move db.sql.util to db.utilSebastian Spaeth2013-01-071-1/+1
| | | | | | | | Now that sqlalchemy is providing the database abstractions, there is no need to hide everything in db.sql. sub-modules. It complicates the code and provides a futher layer of indirection. Move the db.sql.util.py to db.util.py and adapt the importers.
* 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>
* SQL Migrations: Rewrite table creation completely.Elrond2012-11-241-7/+85
| | | | | | | | | | | | | We have migrations creating new tables. Those currently use "raw" table definitions. This easily gives errors (we already had this problem). So instead rewrite those to use declarative tables and use those to create new tables. Just copy the new table over to the migration, strip it down to the bare minimum, rename to _v0, base it on declarative_base() and be done! Do this for the current migrations.
* 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.
* Replaced all request.POST with request.form, ...Joar Wandborg2012-09-292-15/+49
| | | | | - Fixed error handling in OAuth plugin - Changed request.POST file fields to request.files
* Correcting a couple of spelling errors. Thanks elesa, for finding them!Christopher Allan Webber2012-09-241-1/+1
|
* Fixed typos visisble, appplicationJoar Wandborg2012-09-221-2/+2
|
* Added name kwarg to Column(Enum(...)) in OAuth modelsJoar Wandborg2012-09-211-2/+4
|
* Added client registration caps to OAuth pluginJoar Wandborg2012-09-2111-31/+575
| | | | | | | | | | | | | | | | | | | 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 typo in OAuth READMEJoar Wandborg2012-09-191-1/+1
|
* Added security warning to OAuth READMEJoar Wandborg2012-09-191-0/+5
|
* 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 some more helpful links to the OAuth docsJoar Wandborg2012-09-181-1/+7
| | | | | | - OAuth v2.25 draft - IRC channel - OAuth plugin source code
* Fixed typo in OAuth docs, recieve => receiveJoar Wandborg2012-09-181-1/+1
|
* Added documentation for the OAuth pluginJoar Wandborg2012-09-181-0/+130
|
* Added /api/entries viewJoar Wandborg2012-09-151-20/+2
|
* Created API plugin, moved api_auth to the API pluginJoar Wandborg2012-09-132-14/+0
|
* Add OAuth models, plugin DB migrations, api_authJoar Wandborg2012-09-133-0/+253