在WSO2 API Manager问题中注册REST客户端

时间:2018-02-21 07:42:05

标签: wso2 wso2-am

1

我一直在查看wso2 apim的文档。 https://docs.wso2.com/display/AM210/apidocs/publisher/index.html#guide

并使用邮递员发送请求: enter image description here enter image description here

但我收到了401错误回复。正如所料,我应该得到正确的响应有效负载,如:

{
"callBackURL": "www.google.lk",
"jsonString":
"{
\"username\":\"admin\",
\"redirect_uris\":\"www.google.lk\",
\"tokenScope\":[Ljava.lang.String;@3a73796a,
\"client_name\":\"admin_rest_api_store\",
\"grant_types\":\"authorization_code password refresh_token iwa:ntlm
urn:ietf:params:oauth:grant-type:saml2-bearer client_credentialsimplicit\"
}",
"clientName": null,
"clientId": "HfEl1jJPdg5tbtrxhAwybN05QGoa",
"clientSecret": "l6c0aoLcWR3fwezHhc7XoGOht5Aa"
}

2

我使用相同的方法调用另一个响应为403的URL。输入发布者的URL是正确的。 怎么解决?谢谢。

请求标头 enter image description here 请求 enter image description here 响应机构 enter image description here 响应Cookie enter image description here 响应标题 enter image description here

发布者日志 enter image description here

1 个答案:

答案 0 :(得分:0)

您的授权标头是否有效? " YWRtaW46YWRtaW4 ="是默认管理员:管理员凭据。

您应该对您的实际用户名进行base64编码:密码并将值设置为标题。

相关问题