OAuth

com.gu.pandomainauth.service.OAuth
class OAuth(config: OAuthSettings, system: String, redirectUrl: String)(implicit context: ExecutionContext, ws: WSClient)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def generateAntiForgeryToken(): String
def oAuthResponse[T](r: WSResponse)(block: JsValue => T): T
def redirectToOAuthProvider(antiForgeryToken: String, email: Option[String])(implicit context: ExecutionContext): Future[Result]
def validatedUserIdentity(expectedAntiForgeryToken: String)(implicit request: RequestHeader, context: ExecutionContext, ws: WSClient): Future[AuthenticatedUser]

Concrete fields

val random: SecureRandom