Hi Haidong,
Thanks for the reply. I was on vacation so couldn't respond earlier.
HaidongG wrote:
Hi durgamallesh,
1) are you calling the authenticationurl like "/restapi/vc/authentication/sessions/login?user.login=" + user + "&user.password=" + password ?
maybe your username or password contain special characters, which break the URL?
I have modified the password to ensure there are no special characters and tried, but no luck.
2) has your community enabled SSO?
if yes, you have to get the sso authorization token from the SSO provider and call "/restapi/vc/authentication/sessions/login?sso.authentication_token=" + ssoAuthTokenString;
Our community has enabled SSO, but I am lost as how I can get the sso authentication token. Is this something that community admins would provide?
last, through it may not be related, you may want to make sure your user id has the proper right to call REST API.
I can confirm that my ID has access to the REST API. When I login to our community forums and try to authenticate using REST API, I get a session key using which I was able to make the REST calls.
and a final question, if my community has enabled SSO, is SSO authentocation the only way to connect to REST API? or can I still use just my user id and password to connect to REST API?
Thanks again.
Cheers