Hello.
I'm experiencing troubles with the User Authentication method for accessing Europeana API.
I want to access My Europeana (that is, user data) from a web application using the API.
Based on the documentation, the user authentication should be performed in the following way:
1. First, make an HTTP POST to
http://europeana.eu/api/login.do, including username/password or public/private keys of the user. The response should return a cookie named "JSESSIONID" with the session id.
2. Send the cookie with every subsequent API call that requires authentication.
The first step seems to be ok. I make a post to
http://europeana.eu/api/login.do with my username and password and I get a HTTP 302 redirect to
http://europeana.eu/api/ (which indicates that the authentication is correct) and also I get the cookie with the session id. Everything working fine and according to the documentation until here.
The troubles arises with the subsequent calls. Since I have authenticated with username and password I send requests to the "
http://europeana.eu/api/v2/user" endpoint.
Every time I make a HTTP GET request to
http://europeana.eu/api/v2/user/profile.json, including a cookie "JSESSIONID" with the session id obtained previously, I get an HTTP 401 Unauthorized as a response.
Is there any bug in the Europeana side? I'm doing something wrong?
Thanks in advance.
Kind regards,
Aldo Gordillo