GoogleAuth

wvlet.airframe.rx.html.widget.auth.GoogleAuth
class GoogleAuth(config: GoogleAuthConfig) extends LogSupport

Load the Google API https://github.com/google/google-api-javascript-client to use this component:

<script src="https://apis.google.com/js/platform.js"></script>

Usage:

val auth = new GoogleAuth(GoogleAuthConfig(clientId = "......"))
auth.init.transform {
 case None =>
   div("Loading ...")
 case _ =>
   auth.getCurrentUser.transform {
     case Some(userProfile) => ...
     case None => ...
   }
}

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def getAuthInstance: Dynamic

Get the current Google Auth2 instance

Get the current Google Auth2 instance

Attributes

def init: RxOption[Boolean]

Initialize GoogleAPI Auth2 and return true if the user is already authenticated

Initialize GoogleAPI Auth2 and return true if the user is already authenticated

Attributes

def isSignedIn: Boolean
def refreshAuth: Unit
def signIn(uxMode: String): Unit

Attributes

uxMode

"popup" or "redirect"

def signOut: Unit

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods