Add-ons installation flow with Oauth2 (Java)

I found next in documentation: - Your add-on can request a short lived token (valid for 1 hour) using the standard OAuth2 Client Credentials flow.  To do that, construct a POST request to the token URL, using HTTP basic authentication (with the OAuth ID and secret as the basic username and password, respectively), containing the following form-encoded parameters: ... -

But I didn't find How and Where I can get  OAuth ID and secret parameters.

Could you please provide some links with documentation or REST end-point?

1 answer

0 vote

When your addon is installed it will be provided with the oauth id and secret

Please refer to the callbackUrl field of the capabilities descriptor of your addon

The URL to receive a confirmation of an integration installation. The message will be an HTTP POST with the following fields in a JSON-encoded body: 'capabilitiesUrl', 'oauthId', 'oauthSecret', and optionally 'roomId'. The installation of the integration will only succeed if the POST response is a 200.



Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Published Oct 07, 2017 in Hipchat

Bringing Structure to your HipChat Instance

...have mention name FirstnameLastname. Fe.: @MaartenCautreels This certainly helps to know who is being mentioned in a conversation. Imagine your colleague sends the following message...

458 views 1 4
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