using jrjc lib using Oauth


I'm trying to integrate my JIRA site using the jrjc lib version -0.6-m8


I managed connecting my site using BasicAuth.

and also, managed to 'do the oauth dance' and get my access token.

I'm trying to use the OAuthAuthenticationHandler class. but it fails.

so my code looks like that:


JerseyJiraRestClientFactory factory = new JerseyJiraRestClientFactory();
URI jiraUri = new URI(JIRA_URL);
OAuthParameters params = getParameters();
OAuthSecrets secrets = getSecrets();
JiraRestClient restClient = factory.create(jiraUri, new OAuthAuthenticationHandler(params,secrets));
Issue issue = restClient.getIssueClient().getIssue("WB-21739", new ProgressMonitor() {

 what am I missing here....

and what is ProgressMonitor?

thanks you all

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

445 views 6 16
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot