You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're authenticating hipchat over oauth, you can get the server API url from the capabilities.json. However, this already includes the version number in it. The HipChat ruby gem seems to want the server URL without the version string in it for HipChat Server connections.
At first I thought you could just use the "subdomain" field in the capabilities descriptor to get around this, but it's not consistent with HipChat Cloud, eg:
If you're authenticating hipchat over oauth, you can get the server API url from the capabilities.json. However, this already includes the version number in it. The HipChat ruby gem seems to want the server URL without the version string in it for HipChat Server connections.
At first I thought you could just use the "subdomain" field in the capabilities descriptor to get around this, but it's not consistent with HipChat Cloud, eg:
https://api.hipchat.com/v2/capabilities
https://marketplace.lightning.hcsinf.com/v2/capabilities
So the only thing I can think of is to take the API url given and chop the last three characters off, but that seems like quite the hack.
Any recommendation on a better way to extract the proper server url for users authenticating with Oauth?
The text was updated successfully, but these errors were encountered: