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 votes

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 Sign up to answer
Community showcase
Published Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

29,289 views 0 7
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