trait ScentryStrategy[UserType <: AnyRef] extends AnyRef
- Alphabetic
 - By Inheritance
 
- ScentryStrategy
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
Abstract Value Members
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        app: ScalatraBase
      
      
      
- Attributes
 - protected
 
 - 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        authenticate()(implicit request: HttpServletRequest, response: HttpServletResponse): Option[UserType]
      
      
      
Perform the authentication for this strategy
Perform the authentication for this strategy
- returns
 a UserType option where None indicates auth failure
 
Concrete Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        afterAuthenticate(winningStrategy: String, user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
      
      
      
Perform stuff after authentication only run when the module is valid
 - 
      
      
      
        
      
    
      
        
        def
      
      
        afterFetch(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
      
      
      
Perform stuff after fetching and serializing the user from session
 - 
      
      
      
        
      
    
      
        
        def
      
      
        afterLogout(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
      
      
      
Perform stuff after logging the user out and invalidating the session
 - 
      
      
      
        
      
    
      
        
        def
      
      
        afterSetUser(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
      
      
      
Perform stuff after setting the user in the session
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        beforeAuthenticate(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
      
      
      
Perform stuff before authenticating, only run when the module is valid
 - 
      
      
      
        
      
    
      
        
        def
      
      
        beforeFetch[IdType](userId: IdType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
      
      
      
Perform stuff before fetching and serializing the user from session
 - 
      
      
      
        
      
    
      
        
        def
      
      
        beforeLogout(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
      
      
      
Perform stuff before logging the user out and invalidating the session
 - 
      
      
      
        
      
    
      
        
        def
      
      
        beforeSetUser(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
      
      
      
Perform stuff before setting the user in the session
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 -  def createStrategy(app: ScalatraBase): ScentryStrategy.this.type
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( classOf[java.lang.Throwable] )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        isValid(implicit request: HttpServletRequest): Boolean
      
      
      
Indicates if this strategy should be run.
Indicates if this strategy should be run.
- returns
 a Boolean to indicate validity
 -  def name: String
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      
- Definition Classes
 - AnyRef
 
 -  def registerWith(registrar: Scentry[UserType]): Unit
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        unauthenticated()(implicit request: HttpServletRequest, response: HttpServletResponse): Unit
      
      
      
Perform stuff when the request is unauthenticated and the strategy is valid
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )