Hello everyone, I'm trying to login using rest with cookie in drupal 8 (like drupal 7 but not using basic auth or oauth) following this guidelines: https://www.drupal.org/node/2076725
The basics is Post to user/ whith this json {"name":"","pass":"","form_id":"user_login_form"} but I receive the error No route found to "user"
I enabled Rest permisions to access POST and enabled user resource with cookie login (using REST UI).
I'm using alpha 14 at this time.
Anybody trying to login too?


tyler.frankenstein’s picture

Try POSTing to user/login and setting the Accept header to application/json, and setting the Content-type header to application/x-www-form-urlencoded.

You may have to append the credentials to the path, for example: user/login?name=foo&pass=bar&form_id=user_login_form