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

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

We want to OAuth for JIRA rest API authentication. But we are getting error which accessing token.

We are using below doc to generate Oauth Token https://developer.atlassian.com/server/jira/platform/oauth/

We are getting below error after using java -jar OAuthTutorialClient-1.0.jar requestToken, We are using Okta as SSO. We also tried to use same steps provided in local jira instance but here its working fine.

 

Jul 15, 2021 1:07:27 AM org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm="https%3A%2F%2Fjira.company.com", oauth_problem="signature_invalid", oauth_signature="E63%2FWzNLhtWu1ywX38j958cQCTLFM6p8avriOtYpF3yjkyeooZ9DK2ahvS23fLYtc30ww%3D", oauth_signature_base_string="POST%26https%253A%252F%252Fjira.company.com%252Fplugins%252Fservlet%252Foauth%252Frequest-token%26oauth_callback%253Doob%2526oauth_consumer_key%253DOauthKey%2526oauth_nonce%253D45f3c36cbb893cc1%2526oauth_signature_method%253DRSA-SHA1%2526oauth_timestamp%253D1626336447", oauth_signature_method="RSA-SHA1"}
com.google.api.client.http.HttpResponseException: 401
oauth_problem=signature_invalid&oauth_signature=y5W0ZsMBsyZ63%2FWzNLhtWu1ywX38j958cQCTLFM6p8avriOtYpF3yjkyeooZ9DK2ahvS23fLYtc30ww%3D&oauth_signature_base_string=POST%26https%253A%252F%252Fjira.company.com%252Fplugins%252Fservlet%252Foauth%252Frequest-token%26oauth_callback%253Doob%2526oauth_consumer_key%253DOauthhKey%2526oauth_nonce%253D45f3c36cbb893cc1%2526oauth_signature_method%253DRSA-SHA1%2526oauth_timestamp%253D1626336447&oauth_signature_method=RSA-SHA1
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1070)
at com.google.api.client.auth.oauth.AbstractOAuthGetToken.execute(AbstractOAuthGetToken.java:73)
at com.atlassian.oauth.client.example.JiraOAuthClient.getAndAuthorizeTemporaryToken(JiraOAuthClient.java:37)
at com.atlassian.oauth.client.example.OAuthClient.handleGetRequestTokenAction(OAuthClient.java:69)
at com.atlassian.oauth.client.example.OAuthClient.execute(OAuthClient.java:51)
at com.atlassian.oauth.client.example.ClientMain.main(ClientMain.java:18

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

700 views 2 21
Read article

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