Forum Discussion
(I guess blank out your user creds)
- anthony13 years agoHelper
The code I've used is abstracted Java (ColdFusion), but also Websphere middleware (CastIron - so also Java) and just plain dropping the URL into a browser.
It does the same thing, regardless which is either a GET:
http://xxx.xxx.com/restapi/vc/authentication/sessions/login?user.login=xxLoginNamexx&usern.password=xxPasswordxx[EDIT: Fixed Typo in Link above to represent what I'm actually doing (it had wrong querystring names)]
or a POST with login and password sent as form fields instead of querystring. According to the docs, this should work, but it doesn't. With the same creds I can log in to the community via browser and execute REST which works for about 75% of my needs, but I need message bodies for a thread, so want to loop through programmatically. If not...it's download each one at a time, which is time consuming and tedious, but possible.- I suspect it's a setting somewhere or something configuration-wise that I'm not getting, but I haven't found anything beyond what i've tried and don't see how to get to the log files that would give me stack traces or more detailed information.
Sign in to react to this post- DougS13 years agoKhoros Alumni (Retired)
Hi Anthony,
Here is a link to the REST documentation for the authentication/sessions/login call:
It looks like you are using username.login instead of user.login and username.password instead of user.password -- I think that may be your issue.
-Doug
Sign in to react to this post- anthony13 years agoHelperBah. Typo in my post. Sorry about that - I'm actually using user. not username. Too many years of typing username/password :/
One thing I haven't tried is also passing the authentication method. I'll see if i can find the values for that in the javadocs and give that a whirl.
I'll update my post above as well to fix that.Sign in to react to this post