Vorto仪表板未显示设备型号

问题描述

在运行vorto仪表板时出现以下错误

       JWT expired,getting new Token Wed Aug 26 2020 07:38:56 GMT+0100 (BST)... StatusCodeError: 401 - 
{"status":401,"error":"gateway:authentication.Failed","message":"Multiple authentication 
mechanisms were applicable but none succeeded.","description":"For a successful authentication
 see the following suggestions: { The JSON Web Token is not valid. },{ Please provide a valid JWT in the authorization header prefixed with 'Bearer ' }."

config.json的内容如下

{
  "client_id": "xxxxxxxxxxx","client_secret": "xxxxxxxxxxxx","scope": "xxxxxxxxxx","intervalMS": 10000
}

尝试将config.json的内容设置为环境变量。然后也即时得到相同的错误。附加了访问localhost:8080的Web前端的屏幕截图

enter image description here

尝试了以下链接Error running Vorto Dashboard for Bosch iot suite。但仍然无法正常工作。请帮助我解决这个问题

解决方法

我已经在内部与博世讨论了此事(免责声明:我是一名员工)。

与Bosch Suite Auth团队讨论后,这里是发生的情况的摘要。

  • Suite Auth团队最近将其身份验证技术从Keycloack转换为Hydra
  • 这里相关的一点是,以前,传递给令牌请求的范围被忽略了
  • 在请求令牌时,Vorto Dashboard应用程序一直在为scope参数传递错误的键,但该键被忽略了
  • 现在此参数是相关的,(不正确的)表示法不会产生令牌,而是获得了不适合使用Bosch IoT Things授权的令牌,因为它不包含适当的范围
  • 反过来,修复此密钥将产生一个已成功获得Bosch IoT Things授权的令牌

如果着急的话,可以检出this分支并提供修复程序(实际上是8个字符的更改集)。

否则,您可以监控this GitHub票证的关闭-当修订合并到Vorto Examples项目的master分支时,我将关闭它。