Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49237

Working Example with Services 3.x User.Login and System.Connect

$
0
0

Has anybody a working user.login example with services 3.x and user.login?

I downloaded the latest repository from this git hub

http://github.com/randallknutson/services

and get the node creation for anonymous user working.

But i cant using the user login method oder system connect. I activate the session authentication , because i think oauth is more complex.

my urls are

i tried with Firefox REST Client Extension and php curl test example:

HTTP-METHOD: POST
url: http://<path to rest>/user/login <- yes the blank page comes!
Content-Type: application/json
Accept: application/json

Body:
{ "username" : "admin" , "password" : "xxx" }

I always get a 406 error with no return message.

On the System.Connect Services, i get an unauthorized error 401 with message User 0 ('anonymous') Access denied.
I thought, that the system.connect is necessary to get the session id for user.login?

I had the same thing on rest 6.x-2.x so i switched to services 6.x-3.x and downloaded the latest version from today.

Thank you very much for your help!
Best Regards
Christian


Viewing all articles
Browse latest Browse all 49237

Latest Images

Trending Articles



Latest Images