Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get the request-token from jira?

I am trying to get a request token from jira for my client application. I am using this rest URL:

https://{JIRA_INSTANCE}/plugins/servlet/oauth/request-token

The following params are required:

oauth_consumer_key: {This is the key used when creating the Application Link}

oauth_signature_method: RSA-SHA1

oauth_timestamp: should this be the current time of make the call?

oauth_nonce: can someone explain what this param is? How do I generate it?

oauth_signature: How do I get an oauth signature. From my understanding it is the public key and some other values encrypted using RSA-SHA1? How do I get this? Some code examples would be nice.

 

The bolded fields are where I am most confused about.

1 answer

 

Answers to your questions:

timestamp: just your current timestamp.  significant in that it should be greater than the previous call and less than the next call

nonce: a random number that is not reused in any other request

signature: oauth_signature is set to the calculated digest octet string, first base64-encoded per [RFC2045] section 6.8, then URL-encoded per Parameter Encoding.

 

With that said...you should be able to use a library to do the oauth handshake rather than re-inventing the wheel yourself.  

See: https://developer.atlassian.com/cloud/jira/platform/authentication-for-apps/

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

3,993 views 11 5
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you