Skip to content

Advanced: without authorization

Manabu Nakamura edited this page May 11, 2013 · 1 revision

For action that doesn't require authorization

you can AuthenticationElement insted of AuthElement for authentication without authorization.

object Application extends Controller with AuthenticationElement with AuthConfigImpl {

  def index = StackAction { implicit request =>
    val user: User = loggedIn
    Ok(html.index(user))
  }

}