I want to enforce https routing for the login page only of my application.
Is it possible to do so with Play! without the use of a front end http server?
It does not seem to be possible from the controller point of view. From the template Pere solution works but this only generates the https url from the template.
If the user accesses the login action by either typing manually or following a link to the http url, there does not seem to be a way to enforce/redirect to https.
The best way seems to have a front end proxy.