Cookie authentication


#1

Hi there,

I used raml-console in my site to test the api.

The site needs to login to generate a token for the user and set a cookie to store the token information. For now, the ‘/user/login’ is working well, but other api functions return 500 status, because when the console send api request, there is no cookie in the request, so it cannot be verified.

Here are the screenshot of the api request sent by raml-console and restful api client(which is working correctly):

you can see there is a truncated cookie in the request sent by restful api client.

Is anyone know how to solve this problem?

Thank you,
Poppy