Worklight Adapter基本身份验证

时间:2015-11-30 04:50:24

标签: worklight-adapters worklight-server worklight-security

基于博客实施基本身份验证 https://developer.ibm.com/mobilefirstplatform/2015/02/04/protect-adapter-backend/

问题是,当我提供基本的auth标头时,它总是给出无效请求作为响应,即使凭据是正确的, 如果我不提供基本的auth标题,它给401未经授权的

1 个答案:

答案 0 :(得分:0)

这是我重现的步骤:

  1. https://github.com/nasht00/BackendAccessAuthentication
  2. 下载样本为zip
  3. 导入MobileFirst Platform 7.0 Studio
  4. 部署适配器
  5. 在Postman中,向http://localhost:10080/BackendAccessAuthentication/invoke?adapter=Protected&procedure=doAction&parameters=['hello']
  6. 发出了GET请求
  7. Authorization标签中,我选择了Basic Auth并输入了userpassword
  8. 成功
  9. 你有什么不同的吗?

相关问题