Hello Everybody! I have a little problem whith JIRA and OAuth.

I try to get Token by:

ClientRequest request = new ClientRequest(TOKEN_LOCATION);
    .formParameter("oauth_consumer_key", OAUTH_CONSUMER_KEY)
    .formParameter("oauth_signature_method", OAUTH_SIGNATURE_METOD)
    .formParameter("oauth_nonce", OAUTH_NONCE)
    .formParameter("oauth_timestamp", getTimeStamp())
    .formParameter("oauth_signature", OAUTH_SIGNATURE);
    ClientResponse<String> response = request.post(String.class);

And have some Exeption:
net.oauth.OAuthException: java.security.SignatureException: Signature length not correct: got 318 but was expecting 64

Signature really right!
Any answers?

1 answer

Hey Serj,


By performing some research on this matter I found out a very good answer from Martin Cassidy, maybe you'd like to have a read:



Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

767 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you