Jira Rest OAuth

I’m trying to authenticate against recently installed local jira. I added the Application link and I using the following code based on this tutorial https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-oauth-authentication)

$oauth = new OAuth($key,$secret, OAUTH_SIG_METHOD_RSASHA1,OAUTH_AUTH_TYPE_URI);
$request_token_info = $oauth->getRequestToken("http://localhost:8089/plugins/servlet/oauth/request-token");

But I get the following error:

protected ‘message’ => string ‘Signature generation failed’ (length=27)

$key and $secret are correct.

Kind regards

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s