Forum Discussion
(I guess blank out your user creds)
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.
- DougS12 years agoKhoros Oracle
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
- anthony12 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.- anthony12 years agoHelperNever did figure this out, so moved on to a manual solution since we didn't have that many posts. I just grabbed the messages manually, saved the xml and then did all my programmatic work on the local files.
I'm sure there's a magical configuration setting somewhere, or maybe something with SSO, but it was more efficient for me to spend the time pulling the messages than beat my head against the authentication wall.