I've used basic authentication with the REST API with great success, so seems sensible to move to OAuth.
I've followed the Java based example here and it worked well enough, giving me the access token and secret, as well as retrieving data. Yay!
But all our systems are in Python - should be easy huh?
1/ The Atlassian python examples don't work - not with our Python2.7 libraries, as RSA SHA1 appears deprecated due to vulns. At the point of hashing the data, python throws raise NotImplementedError("Use module Crypto.Cipher.PKCS1_OAEP instead")
The Atlassian example is clunky anyway - we use the requests library for the existing access, so I have used the requests_oauthlib OAuth1.
token_auth = OAuth1(consumer_key, consumer_secret, auth_token,auth_token_secret)
response = requests.get(data_url,auth=token_auth)
but this fails with
response: 400
Response: oauth_problem=signature_method_rejected