com.mle.play.controllers

OAuthControl

trait OAuthControl extends Controller with Log

A Controller to handle the Google OAuth2 authentication flow.

1) User is sent to initiate() 2) initiate() sends (redirects) user to Google 3) Google redirects user to redirResponse() after consent 4) redirResponse() extracts email, authenticates

Linear Supertypes
Log, Controller, Rendering, RequestExtractors, AcceptExtractors, ContentTypes, HeaderNames, play.api.http.Status, HttpProtocol, BodyParsers, Results, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OAuthControl
  2. Log
  3. Controller
  4. Rendering
  5. RequestExtractors
  6. AcceptExtractors
  7. ContentTypes
  8. HeaderNames
  9. Status
  10. HttpProtocol
  11. BodyParsers
  12. Results
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Status extends Result

    Definition Classes
    Results

Abstract Value Members

  1. abstract def ejectCall: Call

  2. abstract def isAuthorized(email: String): Boolean

  3. abstract def oAuthRedir: Call

  4. abstract def onOAuthSuccess: Call

  5. abstract def startOAuth: Call

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 ACCEPT: String

    Definition Classes
    HeaderNames
  5. val ACCEPTED: Int

    Definition Classes
    Status
  6. val ACCEPT_CHARSET: String

    Definition Classes
    HeaderNames
  7. val ACCEPT_ENCODING: String

    Definition Classes
    HeaderNames
  8. val ACCEPT_LANGUAGE: String

    Definition Classes
    HeaderNames
  9. val ACCEPT_RANGES: String

    Definition Classes
    HeaderNames
  10. val ACCESS_CONTROL_ALLOW_CREDENTIALS: String

    Definition Classes
    HeaderNames
  11. val ACCESS_CONTROL_ALLOW_HEADERS: String

    Definition Classes
    HeaderNames
  12. val ACCESS_CONTROL_ALLOW_METHODS: String

    Definition Classes
    HeaderNames
  13. val ACCESS_CONTROL_ALLOW_ORIGIN: String

    Definition Classes
    HeaderNames
  14. val ACCESS_CONTROL_EXPOSE_HEADERS: String

    Definition Classes
    HeaderNames
  15. val ACCESS_CONTROL_MAX_AGE: String

    Definition Classes
    HeaderNames
  16. val ACCESS_CONTROL_REQUEST_HEADERS: String

    Definition Classes
    HeaderNames
  17. val ACCESS_CONTROL_REQUEST_METHOD: String

    Definition Classes
    HeaderNames
  18. val AGE: String

    Definition Classes
    HeaderNames
  19. val ALLOW: String

    Definition Classes
    HeaderNames
  20. val AUTHORIZATION: String

    Definition Classes
    HeaderNames
  21. val Accepted: Status

    Definition Classes
    Results
  22. val BAD_GATEWAY: Int

    Definition Classes
    Status
  23. val BAD_REQUEST: Int

    Definition Classes
    Status
  24. val BINARY: String

    Definition Classes
    ContentTypes
  25. val BadGateway: Status

    Definition Classes
    Results
  26. val BadRequest: Status

    Definition Classes
    Results
  27. val CACHE_CONTROL: String

    Definition Classes
    HeaderNames
  28. val CACHE_MANIFEST: String

    Definition Classes
    ContentTypes
  29. val CHUNKED: String

    Definition Classes
    HttpProtocol
  30. val CONFLICT: Int

    Definition Classes
    Status
  31. val CONNECTION: String

    Definition Classes
    HeaderNames
  32. val CONTENT_DISPOSITION: String

    Definition Classes
    HeaderNames
  33. val CONTENT_ENCODING: String

    Definition Classes
    HeaderNames
  34. val CONTENT_LANGUAGE: String

    Definition Classes
    HeaderNames
  35. val CONTENT_LENGTH: String

    Definition Classes
    HeaderNames
  36. val CONTENT_LOCATION: String

    Definition Classes
    HeaderNames
  37. val CONTENT_MD5: String

    Definition Classes
    HeaderNames
  38. val CONTENT_RANGE: String

    Definition Classes
    HeaderNames
  39. val CONTENT_TRANSFER_ENCODING: String

    Definition Classes
    HeaderNames
  40. val CONTENT_TYPE: String

    Definition Classes
    HeaderNames
  41. val CONTINUE: Int

    Definition Classes
    Status
  42. val COOKIE: String

    Definition Classes
    HeaderNames
  43. val CREATED: Int

    Definition Classes
    Status
  44. def CSS(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  45. val Conflict: Status

    Definition Classes
    Results
  46. val Created: Status

    Definition Classes
    Results
  47. val DATE: String

    Definition Classes
    HeaderNames
  48. val ETAG: String

    Definition Classes
    HeaderNames
  49. def EVENT_STREAM(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  50. val EXPECT: String

    Definition Classes
    HeaderNames
  51. val EXPECTATION_FAILED: Int

    Definition Classes
    Status
  52. val EXPIRES: String

    Definition Classes
    HeaderNames
  53. val EntityTooLarge: Status

    Definition Classes
    Results
  54. val ExpectationFailed: Status

    Definition Classes
    Results
  55. val FAILED_DEPENDENCY: Int

    Definition Classes
    Status
  56. val FORBIDDEN: Int

    Definition Classes
    Status
  57. def FORM(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  58. val FOUND: Int

    Definition Classes
    Status
  59. val FROM: String

    Definition Classes
    HeaderNames
  60. val FailedDependency: Status

    Definition Classes
    Results
  61. val Forbidden: Status

    Definition Classes
    Results
  62. def Found(url: String): Result

    Definition Classes
    Results
  63. val GATEWAY_TIMEOUT: Int

    Definition Classes
    Status
  64. val GONE: Int

    Definition Classes
    Status
  65. val GatewayTimeout: Status

    Definition Classes
    Results
  66. val Gone: Status

    Definition Classes
    Results
  67. val HOST: String

    Definition Classes
    HeaderNames
  68. def HTML(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  69. val HTTP_1_0: String

    Definition Classes
    HttpProtocol
  70. val HTTP_1_1: String

    Definition Classes
    HttpProtocol
  71. val HTTP_VERSION_NOT_SUPPORTED: Int

    Definition Classes
    Status
  72. val HttpVersionNotSupported: Status

    Definition Classes
    Results
  73. val IF_MATCH: String

    Definition Classes
    HeaderNames
  74. val IF_MODIFIED_SINCE: String

    Definition Classes
    HeaderNames
  75. val IF_NONE_MATCH: String

    Definition Classes
    HeaderNames
  76. val IF_RANGE: String

    Definition Classes
    HeaderNames
  77. val IF_UNMODIFIED_SINCE: String

    Definition Classes
    HeaderNames
  78. val INSUFFICIENT_STORAGE: Int

    Definition Classes
    Status
  79. val INTERNAL_SERVER_ERROR: Int

    Definition Classes
    Status
  80. val InsufficientStorage: Status

    Definition Classes
    Results
  81. val InternalServerError: Status

    Definition Classes
    Results
  82. def JAVASCRIPT(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  83. def JSON(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  84. val LAST_MODIFIED: String

    Definition Classes
    HeaderNames
  85. val LENGTH_REQUIRED: Int

    Definition Classes
    Status
  86. val LOCATION: String

    Definition Classes
    HeaderNames
  87. val LOCKED: Int

    Definition Classes
    Status
  88. val Locked: Status

    Definition Classes
    Results
  89. val MAX_FORWARDS: String

    Definition Classes
    HeaderNames
  90. val METHOD_NOT_ALLOWED: Int

    Definition Classes
    Status
  91. val MOVED_PERMANENTLY: Int

    Definition Classes
    Status
  92. val MULTIPLE_CHOICES: Int

    Definition Classes
    Status
  93. val MULTI_STATUS: Int

    Definition Classes
    Status
  94. val MethodNotAllowed: Status

    Definition Classes
    Results
  95. def MovedPermanently(url: String): Result

    Definition Classes
    Results
  96. val MultiStatus: Status

    Definition Classes
    Results
  97. val NON_AUTHORITATIVE_INFORMATION: Int

    Definition Classes
    Status
  98. val NOT_ACCEPTABLE: Int

    Definition Classes
    Status
  99. val NOT_FOUND: Int

    Definition Classes
    Status
  100. val NOT_IMPLEMENTED: Int

    Definition Classes
    Status
  101. val NOT_MODIFIED: Int

    Definition Classes
    Status
  102. val NO_CONTENT: Int

    Definition Classes
    Status
  103. val NoContent: Result

    Definition Classes
    Results
  104. val NonAuthoritativeInformation: Status

    Definition Classes
    Results
  105. val NotAcceptable: Status

    Definition Classes
    Results
  106. val NotFound: Status

    Definition Classes
    Results
  107. val NotImplemented: Status

    Definition Classes
    Results
  108. val NotModified: Result

    Definition Classes
    Results
  109. val OK: Int

    Definition Classes
    Status
  110. val ORIGIN: String

    Definition Classes
    HeaderNames
  111. val Ok: Status

    Definition Classes
    Results
  112. val PARTIAL_CONTENT: Int

    Definition Classes
    Status
  113. val PAYMENT_REQUIRED: Int

    Definition Classes
    Status
  114. val PRAGMA: String

    Definition Classes
    HeaderNames
  115. val PRECONDITION_FAILED: Int

    Definition Classes
    Status
  116. val PROXY_AUTHENTICATE: String

    Definition Classes
    HeaderNames
  117. val PROXY_AUTHENTICATION_REQUIRED: Int

    Definition Classes
    Status
  118. val PROXY_AUTHORIZATION: String

    Definition Classes
    HeaderNames
  119. val PartialContent: Status

    Definition Classes
    Results
  120. val PreconditionFailed: Status

    Definition Classes
    Results
  121. val RANGE: String

    Definition Classes
    HeaderNames
  122. val REFERER: String

    Definition Classes
    HeaderNames
  123. val REQUESTED_RANGE_NOT_SATISFIABLE: Int

    Definition Classes
    Status
  124. val REQUEST_ENTITY_TOO_LARGE: Int

    Definition Classes
    Status
  125. val REQUEST_TIMEOUT: Int

    Definition Classes
    Status
  126. val REQUEST_URI_TOO_LONG: Int

    Definition Classes
    Status
  127. val RESET_CONTENT: Int

    Definition Classes
    Status
  128. val RETRY_AFTER: String

    Definition Classes
    HeaderNames
  129. def Redirect(call: Call): Result

    Definition Classes
    Results
  130. def Redirect(url: String, queryString: Map[String, Seq[String]], status: Int): Result

    Definition Classes
    Results
  131. def Redirect(url: String, status: Int): Result

    Definition Classes
    Results
  132. val RequestTimeout: Status

    Definition Classes
    Results
  133. val ResetContent: Result

    Definition Classes
    Results
  134. val SEE_OTHER: Int

    Definition Classes
    Status
  135. val SERVER: String

    Definition Classes
    HeaderNames
  136. val SERVICE_UNAVAILABLE: Int

    Definition Classes
    Status
  137. val SET_COOKIE: String

    Definition Classes
    HeaderNames
  138. val SET_COOKIE2: String

    Definition Classes
    HeaderNames
  139. val SWITCHING_PROTOCOLS: Int

    Definition Classes
    Status
  140. def SeeOther(url: String): Result

    Definition Classes
    Results
  141. val ServiceUnavailable: Status

    Definition Classes
    Results
  142. def Status(code: Int): Status

    Definition Classes
    Results
  143. val TE: String

    Definition Classes
    HeaderNames
  144. val TEMPORARY_REDIRECT: Int

    Definition Classes
    Status
  145. def TEXT(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  146. val TODO: Action[AnyContent]

    Definition Classes
    Controller
  147. val TOO_MANY_REQUEST: Int

    Definition Classes
    Status
  148. val TRAILER: String

    Definition Classes
    HeaderNames
  149. val TRANSFER_ENCODING: String

    Definition Classes
    HeaderNames
  150. def TemporaryRedirect(url: String): Result

    Definition Classes
    Results
  151. val TooManyRequest: Status

    Definition Classes
    Results
  152. val UNAUTHORIZED: Int

    Definition Classes
    Status
  153. val UNPROCESSABLE_ENTITY: Int

    Definition Classes
    Status
  154. val UNSUPPORTED_MEDIA_TYPE: Int

    Definition Classes
    Status
  155. val UPGRADE: String

    Definition Classes
    HeaderNames
  156. val USER_AGENT: String

    Definition Classes
    HeaderNames
  157. val USE_PROXY: Int

    Definition Classes
    Status
  158. val Unauthorized: Status

    Definition Classes
    Results
  159. val UnprocessableEntity: Status

    Definition Classes
    Results
  160. val UnsupportedMediaType: Status

    Definition Classes
    Results
  161. val UriTooLong: Status

    Definition Classes
    Results
  162. val VARY: String

    Definition Classes
    HeaderNames
  163. val VIA: String

    Definition Classes
    HeaderNames
  164. val WARNING: String

    Definition Classes
    HeaderNames
  165. val WWW_AUTHENTICATE: String

    Definition Classes
    HeaderNames
  166. def XML(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  167. val X_FORWARDED_FOR: String

    Definition Classes
    HeaderNames
  168. val X_FORWARDED_HOST: String

    Definition Classes
    HeaderNames
  169. val X_FORWARDED_PORT: String

    Definition Classes
    HeaderNames
  170. val X_FORWARDED_PROTO: String

    Definition Classes
    HeaderNames
  171. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  172. def chunk(trailers: Option[Iteratee[Array[Byte], Seq[(String, String)]]]): Enumeratee[Array[Byte], Array[Byte]]

    Definition Classes
    Results
  173. def chunk: Enumeratee[Array[Byte], Array[Byte]]

    Definition Classes
    Results
  174. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  175. val creds: GoogleOAuthCredentials

  176. def dechunk: Enumeratee[Array[Byte], Array[Byte]]

    Definition Classes
    Results
  177. def discover(): Future[GoogleOAuthConf]

  178. def ejectWith(message: String): Result

    Attributes
    protected
  179. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  181. def fail(msg: String): Result

  182. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  183. def fut[T](item: T): Future[T]

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

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

    Definition Classes
    AnyRef → Any
  186. def initiate: Action[AnyContent]

  187. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  188. val log: Logger

    Attributes
    protected
    Definition Classes
    Log
  189. val logoutMessage: String

  190. val messageKey: String

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

    Definition Classes
    AnyRef
  192. def noConsentFailure: Result

  193. final def notify(): Unit

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

    Definition Classes
    AnyRef
  195. val oauth: GoogleOAuth

  196. def onOAuthUnauthorized(email: String): Result

  197. object parse

    Definition Classes
    BodyParsers
  198. def redirResponse: Action[AnyContent]

  199. def redirURL(implicit req: RequestHeader): String

  200. implicit def request2flash(implicit request: RequestHeader): Flash

    Definition Classes
    Controller
  201. implicit def request2lang(implicit request: RequestHeader): Lang

    Definition Classes
    Controller
  202. implicit def request2session(implicit request: RequestHeader): Session

    Definition Classes
    Controller
  203. def sessionUserKey: String

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

    Definition Classes
    AnyRef
  205. def toString(): String

    Definition Classes
    AnyRef → Any
  206. def unauthorizedMessage(email: String): String

  207. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  210. def withCharset(mimeType: String)(implicit codec: Codec): String

    Definition Classes
    ContentTypes

Inherited from Log

Inherited from Controller

Inherited from Rendering

Inherited from RequestExtractors

Inherited from AcceptExtractors

Inherited from ContentTypes

Inherited from HeaderNames

Inherited from play.api.http.Status

Inherited from HttpProtocol

Inherited from BodyParsers

Inherited from Results

Inherited from AnyRef

Inherited from Any

Ungrouped