Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira oauth client can't access others account data using consumer app from php

SHIMUL DEY
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 21, 2018

My jira client PHP app can access my jira url and can use the rest api but cant authorize or access other users data. what is the solution for this 

 

like below i can use my url https://wkjira.atlassian.net/ but i cant use another user url 

https://anotheruser.atlassian.net/

$oauth = new Atlassian\OAuthWrapper('https://wkjira.atlassian.net/'); // replace your jira url

$oauth->setConsumerKey('test') // replace your jira consumer key     ->setConsumerSecret(__DIR__ . '/test.pem') // privet key     ->setRequestTokenUrl('plugins/servlet/oauth/request-token')     ->setAuthorizationUrl('plugins/servlet/oauth/authorize?oauth_token=%s')     ->setAccessTokenUrl('plugins/servlet/oauth/access-token')     ->setCallbackUrl( $app['url_generator']->generate('callback', array(), true) );

 

 

Please give me a solution for this. 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events