Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Oauth jira authentication client returns 405 when requesting token


Hi all,

I am following instructions at to get the access token for jira api access. However, at the step of requesting temporary token by calling the request-Token endpoint(/plugins/servlet/oauth/request-token), it keeps returns 405 Method Not Allowed for me.  When I changed the method from "post" to "get", this error is gone, however returns null token. So it looks to me my private key and consumer key are passed correctly, so what could be wrong? 405 Method Not Allowed
at com.atlassian.oauth.client.example.JiraOAuthClient.getAndAuthorizeTemporaryToken(
at com.atlassian.oauth.client.example.OAuthClient.handleGetRequestTokenAction(
at com.atlassian.oauth.client.example.OAuthClient.execute(
at com.atlassian.oauth.client.example.ClientMain.main(

Process finished with exit code 0


My config.properities file is:



thank you very much

1 answer

0 votes

Hi there!

Firstly, I would strongly recommend you delete/edit this post to remove information from the post, as it contains sensitive information that you do not want shared.

Secondly, I do not think this is the right place to post this question, as this is the community for the Automation for Jira. I think you're looking for 'Jira' community, so maybe remove this post and repost your question (without the key info) there.


Thank you for your response.

I did modify the private key and other confidential info when posting here but thank you for bringing this up

Just an update the issue is fixed by not using string concat for the private key string, instead of converting it to one line string.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Atlassian Automation

Jira Automation: Sum Up Story Points Roundup (Initiatives -> Epics -> Story/Tasks -> Subtasks)

Hi Everyone, In this roundup we combine all the jira automation rules to sum up story points across different issue types. We start from the lowest level, summing up story points from sub-tasks t...

1,818 views 2 7
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