試圖使用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的原創文章,請關注公衆號"汪子熙":