O'Reilly logo

Lift in Action: The Simply Functional Web Framework for Scala by Timothy Perrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. SiteMap and access control

 

This chapter covers

  • Access control functionality
  • Menu generation
  • Building custom location parameters
  • HTTP authorization

 

SiteMap offers you granular page-level security, a tidy DSL for defining application structure, and an automatic way to generate user navigation. Bearing in mind Lift’s view-first architecture and the way in which snippets are executed in a given page request, there’s nothing to effectively control access or execute code before the page (and its snippets) start to load. This is where SiteMap fits in, architecturally speaking.

Everything within the SiteMap is related to what is known as a location, or Loc for short. These locations typically represent pages that have a corresponding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required