ScentrySupport

org.scalatra.auth.ScentrySupport
trait ScentrySupport[UserType <: AnyRef] extends Initializable

Attributes

Graph
Supertypes
trait Initializable
class Object
trait Matchable
class Any
Self type
ScalatraBase

Members list

Type members

Inherited classlikes

trait Config

Attributes

Inherited from:
Initializable
Supertypes
class Object
trait Matchable
class Any

Inherited types

type ConfigT

Attributes

Inherited from:
Initializable

Value members

Abstract methods

protected def fromSession: PartialFunction[String, UserType]
protected def toSession: PartialFunction[UserType, String]

Concrete methods

protected def authenticate()(implicit request: HttpServletRequest, response: HttpServletResponse): Option[UserType]
protected def configureScentry(): Unit
def initialize(config: ConfigT): Unit

A hook to initialize the class with some configuration after it has been constructed.

A hook to initialize the class with some configuration after it has been constructed.

Not called init because GenericServlet doesn't override it, and then we get into https://lampsvn.epfl.ch/trac/scala/ticket/2497.

Attributes

protected def isAnonymous(implicit request: HttpServletRequest): Boolean
protected def isAuthenticated(implicit request: HttpServletRequest): Boolean
protected def logOut()(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
protected def registerAuthStrategies(): Unit

Override this method to register authentication strategies specific to this servlet. registerAuthStrategy('UserPassword, app => new UserPasswordStrategy(app))

Override this method to register authentication strategies specific to this servlet. registerAuthStrategy('UserPassword, app => new UserPasswordStrategy(app))

Attributes

protected def scentry(implicit request: HttpServletRequest): Scentry[UserType]
protected def scentryOption(implicit request: HttpServletRequest): Option[Scentry[UserType]]
protected def userOption(implicit request: HttpServletRequest): Option[UserType]
protected def user_=(user: UserType)(implicit request: HttpServletRequest): String

Inherited methods

protected def shutdown(): Unit

A hook to shutdown the class. Bridges the gap between servlet's destroy and filter's destroy.

A hook to shutdown the class. Bridges the gap between servlet's destroy and filter's destroy.

Attributes

Inherited from:
Initializable

Implicits

Implicits

implicit protected def user(implicit request: HttpServletRequest): UserType

Inherited implicits

implicit protected def configWrapper(config: ConfigT): Config

Attributes

Inherited from:
Initializable