libauthentication:content-type

Last commit made on 2017-12-18
Get this branch:
git clone -b content-type https://git.launchpad.net/libauthentication

Branch merges

Branch information

Name:
content-type
Repository:
lp:libauthentication

Recent commits

699149a... by Alberto Mardegan

WIP: add tweak options to define requests

Something similar could be used to decide where to put parameters
(query, in body, in which format...).

ac94d6d... by Alberto Mardegan

OAuth1, OAuth2: move some common code into AbstractAuthenticator

f1e9995... by Alberto Mardegan

OAuth2: return proper URL in authorizationUrl()

Before this change, a "?" in the URL would be replaced by "%3F" and
therefore the query would not be recognized.

acf5da8... by Alberto Mardegan

AbstractAuthenticator: rename parameterTransmission property

The behaviour has not changed. I'm still unsure on whether we need a
similar property to decide how to encode the method parameters; for the
time being, let's not change the code.
What is important for now is to have the API right; we definitely need a
way to decide how to pass the authorization, and now we have it. :-)

5912340... by Alberto Mardegan

OAuth1: remove signRequest() methods

Their functionality is already provided by the newly added methods in
AbstractAuthenticator.
The tests are also redundant, since the signedRequest test covers those
cases.

5fa02ac... by Alberto Mardegan

AbstractAuthenticator: add qml method to make custom HTTP requests

a24d5a0... by Alberto Mardegan

AbstractAuthenticator: rename signedRequest() to authenticatedRequest()

"Sign" is only appropriate for OAuth 1.0.

ed44fc9... by Alberto Mardegan

AbstractAuthenticator: take signedRequest() method from OAuth1

This is generic enough to be useful for all authentication methods.

863b7ee... by Alberto Mardegan

OAuth1: add signedRequest() method

This can be used to easily perform PUT, HEAD, DELETE and custom HTTP
requests.

10532e1... by Alberto Mardegan

OAuth1: let tests inject their nonce and timestamp

Keep the default values to as they were before, in order to avoid
updating all existing tests.