I've finally cracked the code of using JIRA authentication endpoints with OAuth. It wasn't easy, but the key was using the RSA-SHA1 algorithm (not very standard - most implementations use HMAC-SHA1) - and the private key in the consumer-secret. BTW, when will OAuth2 be available???
Anyway, now that I do the 3-legged dance, and I have an oauth_token... now - how do I use it? I can't find a single example of actually using that token in an HTTP request for the REST interface.
Typically I would format it into the header of a request like so:
{ "Authorization" : "Bearer gZ9qgJLEaNJh3349VEIbCQ9jm7baNAbcDefgVjFqJY" }But this doesn't seem to do the trick, even for a very simple query.
How should the auth_token be formatted and used? I can't find any examples or instructions on this...