Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Demonstrates the Play! authentication in a very stripped-down way (no disturbing knick-knack).

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 conf
Octocat-spinner-32 project
Octocat-spinner-32 public
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE

Play! Login Sample

This is a sample application showing the basic login (authentication/authorization) with Play! 2 for Scala. The sample is based on Play! 2 Zentasks Sample, but everything except what matters to show authentication and authorization has been removed.


It is a default Play! project, thus

  • clone the project
  • $ play run

will do the job and you can browse to localhost:9000


The application is structured straight forward

/ default, public index page
/restricted restricted content, login will be enforced
/login the login form
/logout triggers the logout

Version information

  • Play! 2.0.4
  • sbt 0.11.3
Something went wrong with that request. Please try again.