This repository is a working example for the Play Framework tutorial at https://pedrorijo.com/blog/scala-play-auth/.
To start the app just type:
$ sbt run
And open the homepage at http://localhost:9000/.
You'll see listed several endpoints, each showing one of the concepts presented in the tutorial:
- Public Page
- Private Page using raw verification
- Private Page using Play helpers
- Private Page using Custom Actions
- Login with incorrect username and/or password
This app has harcoded a single user:
user001 and password
pass001. You can extend it by creating a registration form, or by simply adding more hardcoded users on the UserDAO.