Permalink
Commits on Nov 6, 2011
  1. Allow Flask-OAuth to be send requests from multiple tokens.

    Currently, Flask-OAuth supported only a single token per OAuth instance.
    This means that you can, for example, sign up with your Twitter account,
    and send tweets from that account, but if you sign up with multiple
    Twitter accounts, you are unable to send tweets from an arbitrary one of
    them (at least not without residing to evil solutions like keeping
    global state with the "default" OAuth token to use).
    
    What this patch adds:
    
    * Each of OAuth's request methods (get, post, put, delete, and request)
      gets an optional `token` argument, which can be passed in to send the
      request using that token.
    * The token will be passed to the `tokengetter_func`.  The tokengetter
      function thus can be prepared to receive a `token` argument.  For
      example:
    
          @twitter.tokengetter
          def my_token_getter(token=None):
              if token is not None:  # During auth, token won't be passed
                  oauth_secret = get_my_secret_for_token(token)
                  return (token, oauth_secret)
              return None
    
    * For backwards-compatibility, the `token` argument will only be passed
      to the `tokengetter_func` when it is explicitly passed as a kwarg to
      one of the request methods.
    committed Nov 6, 2011
Commits on Sep 7, 2011
  1. @mitsuhiko
  2. @mitsuhiko

    0.11

    mitsuhiko committed Sep 7, 2011
  3. @mitsuhiko
  4. @mitsuhiko

    Improved the exception system and made it possible to override the me…

    …thod for token authorizations.
    mitsuhiko committed Sep 7, 2011
  5. @mitsuhiko

    Merge pull request #6 from dag/master

    Corrected two typos in the documentation
    mitsuhiko committed Sep 7, 2011
  6. @mitsuhiko

    0.10

    mitsuhiko committed Sep 7, 2011
  7. @mitsuhiko

    Added facebook support

    mitsuhiko committed Sep 7, 2011
  8. @mitsuhiko

    Also accept text/javascript

    mitsuhiko committed Sep 7, 2011
Commits on Apr 25, 2011
  1. @dag @mitsuhiko

    Typos

    Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
    dag committed with mitsuhiko Apr 23, 2011
Commits on Apr 23, 2011
  1. @dag

    Typos

    dag committed Apr 23, 2011
Commits on Feb 17, 2011
  1. @lolsborn @mitsuhiko

    support for additional request parameters when fetching request token…

    …, needed to support Google's implementation which requires a non-standard 'scope' parameter
    
    Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
    lolsborn committed with mitsuhiko Feb 9, 2011
Commits on Aug 6, 2010
  1. @mitsuhiko
  2. @mitsuhiko

    Fixed an invalid call

    mitsuhiko committed Aug 6, 2010
Commits on Jul 16, 2010
  1. @passy @mitsuhiko

    Fixed wrong link target in docs

    passy committed with mitsuhiko Jul 16, 2010
  2. @passy @mitsuhiko

    Fixed typo in docs

    passy committed with mitsuhiko Jul 16, 2010
Commits on May 9, 2010
  1. @mitsuhiko

    Fixed an error with twitter

    mitsuhiko committed May 9, 2010
  2. @mitsuhiko

    Fixed setup.py

    mitsuhiko committed May 9, 2010
  3. @mitsuhiko
  4. @mitsuhiko
  5. @mitsuhiko

    Added docs

    mitsuhiko committed May 9, 2010
Commits on May 8, 2010
  1. @mitsuhiko
  2. @mitsuhiko
  3. @mitsuhiko
  4. @mitsuhiko

    Updated README

    mitsuhiko committed May 8, 2010
  5. @mitsuhiko