org.scalatra.auth

ScentryStrategy

trait ScentryStrategy[UserType <: AnyRef] extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScentryStrategy
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def app: ScalatraBase

    Attributes
    protected
  2. 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

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def afterAuthenticate(winningStrategy: String, user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Perform stuff after authentication only run when the module is valid

  7. def afterFetch(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Perform stuff after fetching and serializing the user from session

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

    Perform stuff after logging the user out and invalidating the session

  9. def afterSetUser(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Perform stuff after setting the user in the session

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def beforeAuthenticate(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

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

  12. def beforeFetch[IdType](userId: IdType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Perform stuff before fetching and serializing the user from session

  13. def beforeLogout(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Perform stuff before logging the user out and invalidating the session

  14. def beforeSetUser(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Perform stuff before setting the user in the session

  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def createStrategy(app: ScalatraBase): ScentryStrategy.this.type

  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. 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

  24. def name: String

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def registerWith(registrar: Scentry[UserType]): Unit

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. def unauthenticated()(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

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

  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped