When I send a GET request to my server after being logged, the response is a 200"you are logged in". But when I send a POST request, the response is the default Play's "Unauthorized" HTML page:
Unauthorized
You must be authenticated to access this page.
My routes are:
GET /logintest controllers.LoginTest.amILoggedIn
POST /logintest controllers.LoginTest.amILoggedIn
It does not even check authority with the play2auth auth config, I suspect it is not recognizing the cookie that the client has after being logged in.
I have this controller:
When I send a
GET
request to my server after being logged, the response is a200
"you are logged in"
. But when I send aPOST
request, the response is the default Play's "Unauthorized" HTML page:My routes are:
It does not even check authority with the
play2auth
auth config, I suspect it is not recognizing the cookie that the client has after being logged in.