Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 12, 2012
  1. @maxcountryman
Commits on Jun 11, 2012
  1. @maxcountryman
  2. @maxcountryman
  3. @maxcountryman
  4. @maxcountryman
Commits on Jun 10, 2012
  1. @maxcountryman

    having OAuth1Service.get_request_token return response.content on error

    maxcountryman authored
    Previously we would use response.raise_for_status to ensure errored responses
    did not percolate beyond the method call. Now we instead identify bad requests
    via response.ok and then condtionally return the raw content on an error. This
    should make rauth more transparent when things go wrong in the request token
    retrieval process.
  2. @maxcountryman
Commits on Jun 9, 2012
  1. @maxcountryman
  2. @maxcountryman

    adding a @joeshaw test ;)

    maxcountryman authored
  3. @maxcountryman

    adding a @joeshaw test ;)

    maxcountryman authored
Commits on Jun 8, 2012
  1. @maxcountryman
  2. @maxcountryman
Commits on Jun 2, 2012
  1. @maxcountryman

    bump v0.4.5

    maxcountryman authored
Commits on Jun 1, 2012
  1. @maxcountryman
  2. @maxcountryman
  3. @maxcountryman
  4. @maxcountryman

    Merge pull request #13 from joeshaw/joeshaw-unittest2

    maxcountryman authored
    try to fallback to unittest2 if using an older python version
  5. @joeshaw

    try to fallback to unittest2 if using an older python version

    joeshaw authored
    Python 2.6 doesn't have unittest.TestCase.assertIsNotNone, among
    others.  If we don't have it, try to import unittest2 as unittest.
  6. @maxcountryman
Commits on May 25, 2012
  1. @maxcountryman

    bumping version 0.4.3

    maxcountryman authored
  2. @joeshaw

    construct auth_session lazily

    joeshaw authored
    This allows the consumer token and secret to be changed prior to using
    the service object.  This is nice in web apps where you might be pulling
    tokens and secrets from a config file after statically constructing the
    service object.  It also matches behavior of the OAuth2Service.
Commits on May 13, 2012
  1. @maxcountryman

    updating tests

    maxcountryman authored
Commits on May 11, 2012
  1. @maxcountryman

    updating to address an issue with header authentication

    maxcountryman authored
    Essentially header authenication would fail under certain circumstances due to
    the fact that optional oauth parameters, such as `oauth_verifier` were being
    appended multiple times. This is now solved by parsing out these paramters
    before generating the `oauth_params` property.
    
    Additionally Token objects have been removed; they add unneeded complexity to
    the wrapper. Values of tokens are simply set as attributes directly on the hook
    itself. This simplifies this portion of the library and reduces the number of
    classes needed without breaking existing functionality.
    
    Finally `get_authenticated_session` has been removed and replaced by
    `_get_session`. This also signals an important aspect of this update: state
    of the hook was not being saved between authentication steps or even calls.
    Now through the use of this new method and instantiation of the hook as an
    attribute of the service wrapper, we are able to update attribtes on the
    hook object, rather than re-instantiate it on each call.
Commits on May 9, 2012
  1. @maxcountryman

    adding a LinkedIn example app, fixes #11

    maxcountryman authored
    This updates rauth to v0.4.1 and fixes a bug wherein POSTing to a given
    endpoint could not contain the oauth_verifier parameter. Now instead of
    keeping a record of the verifier on the token object we assign it as a
    property of the hook. This property is populated automatically: in the scope
    of the hook's `__call__` method we introspect URL parameters and data, if we
    find `oauth_verifier` in either this value is assigned to our hook instance
    as a property. Otherwise this can be manually overridden by explicit
    assignment.
Commits on May 4, 2012
  1. @maxcountryman

    v0.4.0, fixes #6 :cake:

    maxcountryman authored
Commits on Apr 27, 2012
  1. @maxcountryman

    fixing a bug where params containing whitespace are not properly encoded

    maxcountryman authored
    Previously parameters that contained whitespace, while quoted and encoded, were
    not escaped. This would cause authentication problems due to the fact that
    the signature being generated was incorrect. Now this is solved by calling
    replace('+', '%20') on the string returned by urlencode.
    
    Additionally handling of OAuth 1.0/a POSTs has been updated to include the
    oauth paramters in the query string. This is a stopgap fix, the fact that the
    request body cannot be updated within the scope of a hook remains an issue on
    Requests. This will be updated once a fix has been pushed there.
Commits on Apr 23, 2012
  1. @maxcountryman
  2. @maxcountryman

    updating to 0.3.0, fixes #9

    maxcountryman authored
    This release is not directly compatiable with the previous releases as the API
    has been updated and extended. Namely the service wrapper request calls have
    been made more generic to allow for various HTTP methods as well as flexibility
    when indicating the name of provider credentials, such as access_token.
    
    Specifically this addresses an issue where a service uses a non-standard naming
    scheme, such as Foursquare. Previously there was no easy way to overide the
    parameter name and internally the variable was required or the method would
    throw an error. Now the method has been abstracted to allow for generic naming
    as well as dynamic HTTP methods.
    
    Also the API has been extended and modified to be more closely aligned with
    Request's. For instance, all service wrappers now have get(), post(), put(),
    and delete() methods and corrospond to their respective HTTP methods. Some
    naming conventions were altered, such as the http_method parameter which is now
    simply method. (This also mirrors Request's API.)
Commits on Apr 22, 2012
  1. @joeshaw

    Merge pull request #10 from brunoqc/master

    joeshaw authored
    Typo 'not possible' -> 'now possible'
  2. @brunoqc
Commits on Apr 10, 2012
  1. @maxcountryman
  2. @maxcountryman
Commits on Apr 2, 2012
  1. @maxcountryman

    bumping v0.2.4

    maxcountryman authored
  2. @maxcountryman

    switch-a-roo

    maxcountryman authored
  3. @maxcountryman
Something went wrong with that request. Please try again.