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

https://www.hipchat.com/docs/apiv2/capabilities

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 Aug 10, 2018 in Hipchat

What should I think about when migrating HipChat to Slack?

...from the beginning. We have built up a lot of content in HipChat, with it being a core tool in our distributed company model. While it is true that we didn’t need to move to Slack immediately, we felt it...

480 views 1 10
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