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

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

SAP Data Intelligence API如何获得Access Token - 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的名称加反斜杠加用户名。
SAP Data Intelligence API如何获得Access Token - no authentication means found

返回的payload:

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

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

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

然后在get API里就能anzhao Bearer
Token的方式使用这个token了:

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

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
SAP Data Intelligence API如何获得Access Token - no authentication means found

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

上一篇:mysql 学习 - 查询重写规则


下一篇:Sql Sever 表遍历,Exec动态执行sql语句返回变量