BasicAuthStrategy

org.scalatra.auth.strategy.BasicAuthStrategy
See theBasicAuthStrategy companion object
abstract class BasicAuthStrategy[UserType <: AnyRef](val app: ScalatraBase, realm: String) extends ScentryStrategy[UserType], RemoteAddress

Attributes

Companion
object
Graph
Supertypes
trait ScentryStrategy[UserType]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def afterLogout(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

Perform stuff after logging the user out and invalidating the session

Perform stuff after logging the user out and invalidating the session

Attributes

Definition Classes
override def afterSetUser(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

Perform stuff after setting the user in the session

Perform stuff after setting the user in the session

Attributes

Definition Classes
def authenticate()(implicit request: HttpServletRequest, response: HttpServletResponse): Option[UserType]

Perform the authentication for this strategy

Perform the authentication for this strategy

Attributes

Returns

a UserType option where None indicates auth failure

override def isValid(implicit request: HttpServletRequest): Boolean

Indicates if this strategy should be run.

Indicates if this strategy should be run.

Attributes

Returns

a Boolean to indicate validity

Definition Classes
override def unauthenticated()(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

Perform stuff when the request is unauthenticated and the strategy is valid

Perform stuff when the request is unauthenticated and the strategy is valid

Attributes

Definition Classes

Inherited methods

def afterAuthenticate(winningStrategy: String, user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

Perform stuff after authentication only run when the module is valid

Perform stuff after authentication only run when the module is valid

Attributes

Inherited from:
ScentryStrategy
def afterFetch(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

Perform stuff after fetching and serializing the user from session

Perform stuff after fetching and serializing the user from session

Attributes

Inherited from:
ScentryStrategy
def beforeAuthenticate(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

Perform stuff before authenticating, only run when the module is valid

Perform stuff before authenticating, only run when the module is valid

Attributes

Inherited from:
ScentryStrategy
def beforeFetch[IdType](userId: IdType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

Perform stuff before fetching and serializing the user from session

Perform stuff before fetching and serializing the user from session

Attributes

Inherited from:
ScentryStrategy
def beforeLogout(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

Perform stuff before logging the user out and invalidating the session

Perform stuff before logging the user out and invalidating the session

Attributes

Inherited from:
ScentryStrategy
def beforeSetUser(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

Perform stuff before setting the user in the session

Perform stuff before setting the user in the session

Attributes

Inherited from:
ScentryStrategy
def createStrategy(app: ScalatraBase): ScentryStrategy.this.type

Attributes

Inherited from:
ScentryStrategy
def name: String

Attributes

Inherited from:
ScentryStrategy
def registerWith(registrar: Scentry[UserType]): Unit

Attributes

Inherited from:
ScentryStrategy
protected def remoteAddress(implicit request: HttpServletRequest): String

Attributes

Inherited from:
RemoteAddress

Implicits

Implicits

implicit def request2BasicAuthRequest(r: HttpServletRequest): BasicAuthRequest