Scentry

org.scalatra.auth.Scentry
See theScentry companion object
class Scentry[UserType <: AnyRef](app: ScalatraBase, serialize: PartialFunction[UserType, String], deserialize: PartialFunction[String, UserType], var _store: ScentryAuthStore)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

type StrategyFactory = ScalatraBase => StrategyType
type StrategyType = ScentryStrategy[UserType]

Value members

Concrete methods

def authenticate(names: String*)(implicit request: HttpServletRequest, response: HttpServletResponse): Option[UserType]
def fromSession: PartialFunction[String, UserType]
def isAuthenticated(implicit request: HttpServletRequest, response: HttpServletResponse): Boolean
def logout()(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
def params(implicit request: HttpServletRequest): Params
def redirect(uri: String)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
def register(strategy: => ScentryStrategy[UserType]): Unit
def register(name: String, strategyFactory: StrategyFactory): Unit
def store_=(newStore: ScentryAuthStore): Unit
def strategies: Map[String, ScentryStrategy[UserType]]
def toSession: PartialFunction[UserType, String]
def unauthenticated(callback: => Unit): Unit
def user(implicit request: HttpServletRequest, response: HttpServletResponse): UserType
def userOption(implicit request: HttpServletRequest, response: HttpServletResponse): Option[UserType]
def user_=(v: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): String