Comment 2 for bug 314507

Revision history for this message
Max Berger (max-berger) wrote : Re: API: Authorization header ignores first key

Diogo,

I am experimenting with sending the requests in Java, using the oauth library at [1]. Getting the request token and delegating it works fine, the token is the one I got from step 3 at [2].

As said, in this example:

Authorization: OAuth realm="https://api.launchpad.net/",
                oauth_consumer_key="just+testing",
                oauth_token="PsK9cpbll1KwehhRDckr",
                oauth_signature_method="PLAINTEXT",
[...]

It doesn't matter what is sent as first value (realm= in this case), it seems to be ignored. Just re-arranging the key-value pairs shows the bug.

[1] http://code.google.com/p/oauth/
[2] https://help.launchpad.net/API/SigningRequests