首页 > 数据库技术 > 详细

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

时间:2020-04-06 18:34:45      阅读:65      评论:0      收藏:0      [点我收藏+]

试图使用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了:

技术分享图片

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
技术分享图片

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

原文:https://www.cnblogs.com/sap-jerry/p/12643452.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!