From a3f2f55548aa811a87d3bfbf681274a9dbd34df5 Mon Sep 17 00:00:00 2001 From: Vlad Filippov Date: Thu, 12 Dec 2019 21:00:20 +0100 Subject: [PATCH] Closes #5913: Add new sessionToken scope (#6155) --- .../java/org/mozilla/fenix/components/BackgroundServices.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt b/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt index 362fa1fa0..923c655a8 100644 --- a/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt +++ b/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt @@ -32,6 +32,7 @@ import mozilla.components.service.fxa.ServerConfig import mozilla.components.service.fxa.SyncConfig import mozilla.components.service.fxa.SyncEngine import mozilla.components.service.fxa.manager.FxaAccountManager +import mozilla.components.service.fxa.manager.SCOPE_SESSION import mozilla.components.service.fxa.manager.SCOPE_SYNC import mozilla.components.service.fxa.sync.GlobalSyncableStoreProvider import mozilla.components.service.sync.logins.SyncableLoginsStore @@ -176,7 +177,10 @@ class BackgroundServices( // during authentication unless we explicitly specify it below. // This is a good example of an information leak at the API level. // See https://github.com/mozilla-mobile/android-components/issues/3732 - SCOPE_SYNC + SCOPE_SYNC, + // Necessary to enable "Manage Account" functionality and ability to generate OAuth + // codes for certain scopes. + SCOPE_SESSION ) ).also { accountManager -> // TODO this needs to change once we have a SyncManager