天天看点

SAP Data Intelligence API如何获得Access Token - no authentication means found

试图使用postman访问SAP Data Intelligence graph API时,遇到401 unauthorized的错误:

no authentication means found

API url:

https://vsystem.ingress.dh-l5uukgih.dhaas-live.shoot.live.k8s-hana.ondemand.com/app/pipeline-modeler/service/v1/graphs/20180aa4240340e6b9804b295e789eaa/operator/httpserver1/objects/1

取得Access Token的方法:

使用这个login API endpoint:

https://vsystem.ingress.dh-l5uukgih.dhaas-live.shoot.live.k8s-hana.ondemand.com/auth/login

注意user name的规范是tenant的名称加反斜杠加用户名。

返回的payload:

从返回的Cookie字段里获得Access Token:

然后在get API里就能anzhao Bearer

Token的方式使用这个token了:

本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。

继续阅读