Hi,
After lots of research i still wonder how to use SecureSocial with the UsernamePasswordProvider via REST.
I need to get an auth token from SecureSocial after login so that i can put this token in the X-Auth-Header for future requests to secured actions.
Following this answer I'm now able to login with curl but the answer from the server is empty (instead of the expected access token).
I'm using SecureSocial 3.0-M4 and PlayFramework 2.4 with Java. Unfortunately the docs for SecureSocial 3.0-M4 are not up to date, so I have no idea if this version supports such a scenario.
Is there a possibility to get SecureSocial working with X-Auth-Tokens? Does SecureSocial provide such functionality?
Thanks in advance!
{
"email": “so...@email.com”,
"info": {
"accessToken": “an_access_token”,
"expiresIn": a_number_with_expiration_in_seconds
}
}
The CURL output is:$ curl -v --data "username=xxxxxxxx@googlemail.com&password=test123" http://localhost:9000/authenticate/userpass
You need to POST to auth/api/authenticate/userpass.
The CURL output is:$ curl -v --data "username=xxxx...@googlemail.com&password=test123" http://localhost:9000/authenticate/userpass