Post

2 followers Follow
0
Avatar

REST call success on "getServerDefinition" but fails on "login"

Hi,

 

In my case, I could successfully login via

https://api.clarizen.com/v2.0/services/authentication/getServerDefinition

It returns the following:

{"serverLocation":"https://api2.clarizen.com/v2.0/services","appLocation":"https://app2.clarizen.com/Clarizen","organizationId":0}

I then did a login call without changing any login information or request information

https://api2.clarizen.com/v2.0/services/authentication/login

It tells me

{"errorCode":"LoginFailure","message":"Invalid username","referenceId":"3mLXPc8ZZOg1r72KlT5GCd"}

 

Advice on this would be appreciated.

Regards.

Bo Gao Answered

Please sign in to leave a comment.

2 comments

1
Avatar

Hi Bo,

This does occur if you don't send the user name & password in the HTTP POST body. The user name and password need to be specified for both getServerDefinition and login services.

You did not detail the Post body here, so I can't tell exactly what was wrong.

Anyway, please refer to the documentation for more information.

Hope this helps,

Ophir

Ophir Kenig 1 vote
Comment actions Permalink
0
Avatar

Hi Ophir,

 

Thanks for getting back to me. I must have screwed up something the other day. Today I was able to login with account information embedded in the HTTP POST body.

 

Regards,

 

Bo

Bo Gao 0 votes
Comment actions Permalink