android-components / mozilla.components.feature.accounts / FirefoxAccountsAuthFeature

FirefoxAccountsAuthFeature

class FirefoxAccountsAuthFeature (source)

Ties together an account manager with a session manager/tabs implementation, facilitating an authentication flow.

Constructors

Name Summary
<init> FirefoxAccountsAuthFeature(accountManager: FxaAccountManager, redirectUrl: String, coroutineContext: CoroutineContext = Dispatchers.IO, onBeginAuthentication: (<ERROR CLASS>, String) -> Unit = { _, _ -> })
Ties together an account manager with a session manager/tabs implementation, facilitating an authentication flow.

Properties

Name Summary
interceptor val interceptor: RequestInterceptor

Functions

Name Summary
beginAuthentication fun beginAuthentication(context: <ERROR CLASS>): Unit
beginPairingAuthentication fun beginPairingAuthentication(context: <ERROR CLASS>, pairingUrl: String): Unit

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.