Missed Team ’24? Catch up on announcements here.

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

oauth consumer_key_unknown when using gadget in Jira

Zsolt Nagy January 8, 2013

I would like to create a gadget for Jira that lists some issues (result of a JQL query). I created a sample gadget based on this tutorial: https://developer.atlassian.com/display/JIRADEV/Standalone+Gadget+Tutorial+-+Writing+a+JQL+Gadget.

My gadget: http://pastebin.com/be4uz31E

When I run it, I always get the same error message from oauth: consumer_key_unknown. How could I have the authentication process done in the gadget?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2013

Take a look at this example instead:

https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Writing+Gadgets+for+JIRA

What you need for oauth to work should be just trhee lines:

<Require feature="oauthpopup"/>
<Optional feature="auth-refresh" />
#oauth
Zsolt Nagy January 8, 2013

The tutorial you linked is for gadgets in plugins. My gadget has to be a standalone one - I cannot use #-directives in it. Adding the mentioned features does't solve the problem.

TAGS
AUG Leaders

Atlassian Community Events