使用Google Cloud Instance进行开源MANO(OSM)授权

时间:2018-04-03 12:08:36

标签: google-chrome google-cloud-platform authorization ubuntu-16.04

我正在Google Cloud Instance Ubuntu 16.04上安装Open Source MANO(OSM)三。 输入以下命令后,终端返回" DONE"没有错误。

./install_osm.sh

接下来,在Chrome中,尝试访问(35.231.195.141是主机IP):

https://35.231.195.141:8443

但是我无法登录,因为下面的重定向页面总是停滞不前:(

https://10.142.0.4:8009/authorization?response_type=code&redirect_uri=https%3A%2F%2F10.142.0.4%3A8443%2Fcallback&scope=openid&client_id=cncudWkub3BlbmlkY2xpZW50

(10.142.0.4是内部ip)

此网页是否与OSM WIKI上的警告相关,如下所示?

它位于https://osm.etsi.org/wikipub/index.php/OSM_Release_THREE

Please note that in OSM 3, authentication is performed using OpenIDConnect and OAuth2.0.
An identity provider has been added to the platform and provided as a service in the SO container running on port 8009.
This means both the browser and the UI server components (that run on the SO container) need to be able to access the SO container using identical URIs.
In short, the tuple of scheme://location:port needs to be reachable via both the browser accessing the system and the UI server running on the SO container (e.g. https://10.66.202.206:8009 for a sample deployment).
This means that if your SO container is behind a NAT that cannot reach the public address of the host, authentication and authorization will not be possible and you will not be able to proceed using the UI.

我应该如何对SO容器进行身份验证?非常感谢!

2 个答案:

答案 0 :(得分:0)

正如wiki中的警告所说,在这种情况下无法访问UI,因此您应该找到一种旁路方法来使用您自己的机器访问SO容器正在侦听的本地IP。

有多种方法可以做到:

  • Google Cloud VPN,可能有点矫枉过正,

  • 在您的Google云端主机上设置VPN服务器,然后将您自己的计算机连接到此VPN服务器,然后您就可以访问本地IP。例如您可以在云主机上设置OpenVPN服务器。

答案 1 :(得分:0)

...或者您可以尝试使用GUI创建虚拟机,例如Windows和访问。也许您可以修改网络服务器以使用公共IP而不是内部。