com.gu.pandomainauth.action

AuthActions

trait AuthActions extends PanDomainAuth

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

Type Members

  1. case class Authenticated(authedUser: AuthenticatedUser) extends AuthenticationStatus with Product with Serializable

  2. sealed trait AuthenticationStatus extends AnyRef

  3. case class Expired(authedUser: AuthenticatedUser) extends AuthenticationStatus with Product with Serializable

  4. case class InvalidCookie(exception: Exception) extends AuthenticationStatus with Product with Serializable

  5. case class NotAuthorized(authedUser: AuthenticatedUser) extends AuthenticationStatus with Product with Serializable

Abstract Value Members

  1. abstract def authCallbackUrl: String

    The auth callback url.

    The auth callback url. This is where google will send the user after authentication. This action on this url should invoke processGoogleCallback

    returns

  2. abstract def domain: String

    Definition Classes
    PanDomainAuth
  3. abstract def system: String

    Definition Classes
    PanDomainAuth
  4. abstract def validateUser(authedUser: AuthenticatedUser): Boolean

    Returns true if the authed user is valid in the implementing system (meets your multifactor requirements, you recognise the email etc.

    Returns true if the authed user is valid in the implementing system (meets your multifactor requirements, you recognise the email etc.).

    If your implementing application needs to audit logins / register new users etc then this ia also the place to do it.

    authedUser
    returns

    true if the user is valid in your app

Concrete Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. val ANTI_FORGERY_KEY: String

  5. object APIAuthAction extends ActionBuilder[UserRequest]

    Action that ensures the user is logged in and validated.

    Action that ensures the user is logged in and validated.

    This action is for API / XHR type requests where the user can't be sent to the auth provider for auth. In the cases where the auth is not valid repsonce codes are sent to the requesting app and the javascript that initiated the request should handle these appropriately

    If the user is not authed then a 401 response is sent, if the auth has expired then a 419 response is sent, if the user is authed but not allowed to perform the action a 403 is sent

  6. object AuthAction extends ActionBuilder[UserRequest]

    Action that ensures the user is logged in and validated.

    Action that ensures the user is logged in and validated.

    This action is for page load type requests where it is possible to send the user for auth and for them to interact with the auth provider. For API / XHR type requests use the APIAuthAction

    if the user is not authed or the auth has expired they are sent for authentication

  7. val GoogleAuth: GoogleAuth

  8. val LOGIN_ORIGIN_KEY: String

    A Play session key that stores the target URL that was being accessed when redirected for authentication

  9. object NotAuthenticated extends AuthenticationStatus with Product with Serializable

  10. lazy val actorSystem: ActorSystem

    Definition Classes
    PanDomainAuth
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. lazy val authSettings: Agent[PanDomainAuthSettings]

    Definition Classes
    PanDomainAuth
  13. def awsCredentials: Option[AWSCredentials]

    Definition Classes
    PanDomainAuth
  14. def awsRegion: Option[Region]

    Definition Classes
    PanDomainAuth
  15. lazy val bucket: S3Bucket

    Definition Classes
    PanDomainAuth
  16. def checkMultifactor(authedUser: AuthenticatedUser): Boolean

  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. lazy val domainSettingsRefreshActor: ActorRef

    Definition Classes
    PanDomainAuth
  19. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  21. def extractAuth(request: RequestHeader): AuthenticationStatus

    Extract the authentication status from the request.

  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def flushCookie(result: Result): Result

  24. def generateCookie(authedUser: AuthenticatedUser): Cookie

  25. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  27. def includeSystemInCookie(authedUser: AuthenticatedUser)(result: Result): Result

  28. def invalidUserMessage(claimedAuth: AuthenticatedUser): String

    Generates the message shown to the user when user validation fails.

    Generates the message shown to the user when user validation fails. override this to add a custom error message

    claimedAuth
    returns

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. val multifactorChecker: Option[Google2FAGroupChecker]

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

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

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

    Definition Classes
    AnyRef
  34. def processGoogleCallback()(implicit request: RequestHeader): Future[Result]

  35. def processLogout(implicit request: RequestHeader): Result

  36. def proxyConfiguration: Option[ProxyConfiguration]

    Definition Classes
    PanDomainAuth
  37. def readAuthenticatedUser(request: RequestHeader): Option[AuthenticatedUser]

  38. def readCookie(request: RequestHeader): Option[Cookie]

  39. def sendForAuth[A](implicit request: RequestHeader, email: Option[String] = None): Future[Result]

    starts the authentication process for a user.

    starts the authentication process for a user. By default this just sends the user off to google for auth but if you want to show welcome page with a button on it then override.

  40. def settings: PanDomainAuthSettings

    Definition Classes
    PanDomainAuth
  41. lazy val settingsMap: Map[String, String]

    Definition Classes
    PanDomainAuth
  42. def showUnauthedMessage(message: String)(implicit request: RequestHeader): Result

    invoked when the user is not logged in a can't be authed - this may be when the user is not valid in yur system or when they have exoplicitly logged out.

    invoked when the user is not logged in a can't be authed - this may be when the user is not valid in yur system or when they have exoplicitly logged out.

    Override this to add a logged out screen and display maeesages for your app. The default implementation is to ust return a 403 response

    message
    request
    returns

  43. def shutdown: Unit

    Definition Classes
    PanDomainAuth
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    AnyRef → Any
  46. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PanDomainAuth

Inherited from AnyRef

Inherited from Any

Ungrouped