AuthFlow

com.malliina.web.AuthFlow
trait AuthFlow[F[_], U] extends FlowStart[F] with CallbackValidator[F, U]

Attributes

Graph
Supertypes
trait CallbackValidator[F, U]
trait FlowStart[F]
class Object
trait Matchable
class Any
Known subtypes
class StandardAuthFlow[F, V]
class EmailAuthFlow[F]

Members list

Concise view

Value members

Inherited methods

protected def commonAuthParams(authScope: String, redirectUrl: FullUrl, clientId: ClientId): Map[String, String]

Attributes

Inherited from:
FlowStart
def extraRedirParams(redirectUrl: FullUrl): Map[String, String]

Attributes

Inherited from:
FlowStart
def start(redirectUrl: FullUrl, extraParams: Map[String, String]): F[Start]

Attributes

Inherited from:
FlowStart
def validate(code: Code, redirectUrl: FullUrl, requestNonce: Option[String]): F[Either[AuthError, U]]

Returns either a successfully validated user object or an AuthError if validation fails.

Returns either a successfully validated user object or an AuthError if validation fails.

The returned Future fails with a ResponseException if any network request fails.

Attributes

code

auth code

redirectUrl

redir url

Returns:

a user object or a failure

Inherited from:
CallbackValidator
def validateCallback(cb: Callback): F[Either[AuthError, U]]

Attributes

Inherited from:
CallbackValidator