CognitoAuthFlow

com.malliina.web.CognitoAuthFlow
See theCognitoAuthFlow companion object
class CognitoAuthFlow[F[_]](host: String, identityProvider: IdentityProvider, validator: CognitoIdValidator, val oauth: GenericAuthConf[F])(implicit evidence$1: Sync[F]) extends CallbackValidator[F, CognitoUser], StaticFlowStart[F]

Attributes

Companion
object
Graph
Supertypes
trait StaticFlowStart[F]
trait FlowStart[F]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def extraRedirParams(redirectUrl: FullUrl): Map[String, String]

Attributes

Definition Classes
def tokenParameters(code: Code, redirUrl: FullUrl): Map[String, String]
override def validate(code: Code, redirectUrl: FullUrl, requestNonce: Option[String]): F[Either[AuthError, CognitoUser]]

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.

Value parameters

code

auth code

redirectUrl

redir url

Attributes

Returns

a user object or a failure

Definition Classes

Inherited methods

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

Attributes

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

Attributes

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

Attributes

Inherited from:
CallbackValidator

Concrete fields

override val conf: StaticConf