0
votes

1.

I've been looking through the doc of wso2 apim. https://docs.wso2.com/display/AM210/apidocs/publisher/index.html#guide

And use the postman to send the request: enter image description here enter image description here

But I got 401 error response. As expected I should get the correct response payload like:

{
"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.

I have used the same method to call another URL the response is 403.The URL is correct to enter the publisher. How to solve it? Thank you.

Request Header enter image description here Request enter image description here Response Body enter image description here Response Cookies enter image description here Response Header enter image description here

Publisher Log enter image description here

1

1 Answers

0
votes

Is your Authorization header valid? "YWRtaW46YWRtaW4= " is for default admin:admin credentials.

You should base64 encode your actual username:password and set the value as a header.