https://github.com/fancellu/play-security-example
A couple of examples of play endpoint security, basic authentication and form based
https://github.com/fancellu/play-security-example
basic-authentication play-framework scala security
Last synced: 7 months ago
JSON representation
A couple of examples of play endpoint security, basic authentication and form based
- Host: GitHub
- URL: https://github.com/fancellu/play-security-example
- Owner: fancellu
- Created: 2019-11-11T12:56:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T13:36:01.000Z (about 6 years ago)
- Last Synced: 2025-02-25T10:32:49.378Z (11 months ago)
- Topics: basic-authentication, play-framework, scala, security
- Language: Scala
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# play-security-example
A couple of examples of play endpoint security, basic authentication and form based
## To run
`sbt run` or `sbt runProd` to run in prod mode in place
Point browser at localhost:9000
GET / controllers.HomeController.index
### https://en.wikipedia.org/wiki/Basic_access_authentication
### https://tools.ietf.org/html/rfc7235#section-3.1
### (name is admin, password is password)
GET /basic controllers.HomeController.basic
### (name is admin2, password is password2)
GET /basic2 controllers.HomeController.basic2
### Form based login (name is admin, password is password)
GET /login controllers.LoginController.login
POST /login controllers.LoginController.tryLogin
GET /logout controllers.LoginController.logout
GET /loggedin controllers.LoginController.loggedIn
GET /loggedin2 controllers.LoginController.loggedIn2
GET /maybeloggedin controllers.LoginController.maybeLoggedIn