Code review comment for lp://staging/~doanac/ubuntu-ci-services-itself/deployment-variables

Revision history for this message
Francis Ginther (fginther) wrote :

> After a bit of beating my head against a silly local configuration problem,
> this seems to be working well for me. It might be nice to do some kind of
> tool to generate the oauth stuff, or in the absense of that, some basic steps.
> It could even be the basic curl commands like:
> 1. curl --dump-header - -X POST --data 'oauth_consumer_key=airlinetest&oauth_s
> ignature_method=PLAINTEXT&oauth_signature=%26' https://launchpad.net/+request-
> token
>
> 2. copy the long string after 'oauth_token=' and go to: https://launchpad.net
> /+authorize-token?oauth_token={oauth_token} in a browser
> https://launchpad.net/+authorize-token?oauth_token={oauth_token}
>
> 3. Authorize read/write (no private data) in the web browser
>
> 4. Look at the long string above again, pull out the oauth token and oauth
> secret. Set the following environment vars...
>
> I'm having problems where it looks like bsb doesn't actually use the oauth
> creds I provided it, but that doesn't appear to be related to this change.

There are more steps apparently:
5. You need to exhcange the request token for an access token:
curl --dump-header - -H "Content-Type: application/x-www-form-urlencoded" -X POST --data "oauth_signature=%26{oauth_token_secret}&oauth_consumer_key={oauth_key}&oauth_token={oauth_token}&oauth_signature_method=PLAINTEXT" https://launchpad.net/+access-token

This will return a new oauth_token and oauth_token_secret. These are the value that need to be plugged into the environment.

« Back to merge proposal