I tried to call an API with an invalid access token - and following in the
the response I get..  Shouldn't I get a JSON response here..?

curl -H "Authorization: Bearer 227f7e7119361b31f873b1b6b3abfdff"  -k  -H
"Accept: application/json"  https://localhost:8243/mywso2/1.0.0/employee/4

<ams:fault 
xmlns:ams="http://wso2.org/apimanager/security";><ams:code>900901</ams:code><ams:message>Invalid
Credentials</ams:message><ams:description>Access failure for API: /mywso2,
version: 1.0.0 with key:
227f7e7119361b31f873b1b6b3abfdff</ams:description></ams:fault>


Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to