How to set 'Redirect URIs' in the service settings in Hub

时间:2016-04-25 09:04:21

标签: jetbrains-ide upsource

I can access upsource locally using http://pcname:42424/projectname/view.

Trying to access it using the IP eg. http://192.168.1.42:42424/projectname/view yields

OAuth 2.0 Error

unauthorized_client: Unregistered Redirect URI. Client service 'Upsource' requests authorization entity for the URI which is not registered in Hub: http://192.168.3.143:42424/. If you have Hub administrator permissions and the suspicious URI does belong to 'Upsource', please add this URI to the list of 'Redirect URIs' in the service settings in Hub

With link to https://www.jetbrains.com/help/hub/2.0/OAuth-2.0-Errors.html#auth.unauthorized_client

I could not find how to set redirectUri though in Upsource (went through maybe all of the settings pages).

Where can I find the redirectUri setting so I can add my IP to it?

Update

I set up another instance on a different box and set the URL and port to be http://192.168.1.42:42424 and now it works successfully to be accessed remotely using the IP.

1 个答案:

答案 0 :(得分:4)

出于某种原因,即使您是管理员,重定向URI设置区域也会隐藏在Hub中。我在JetBrains知识库中搜索其他内容并遇到this page,这导致我尝试在浏览器中将/services添加到我的中心网址的末尾:

  

http://my.serverurl.up/hub/services

这让我看到了这个奇妙的页面,其中包含一些我无法通过管理界面访问的配置选项:

enter image description here

FWIW:我最初尝试做的是配置UpSource通过端口80上的反向代理访问,而不是默认的8080.我将我的UpSource配置从一个服务器移动到另一个服务器并阅读documentation from JetBrains关于这个问题,但它没有工作。

我的错误:在运行

之前我没有停止UpSource

<upsource_home>\bin\upsource.sh configure --listen-port 1111 --base-url http://upsource.mydomain.com:2222

UpSource没有警告我该命令没有做任何事情。它的消息是&#34; UpSource现在正在运行&#34;。我停止了UpSource,应用了更改并重新启动,一切正常。我应该知道,但我没有。

希望能有所帮助。