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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Mar 26, 2018 in Hipchat Data Center

Migration of Hipchat server to Data Center - a retrospective

...able to use the clients After a bunch of testing (rooms, memberships, check for private message history, and most importantly - the custom emoticons!) nearly everything was looking as we needed, however...

452 views 2 6
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