From d957d48279fa02bac90608edae4fc8b671920331 Mon Sep 17 00:00:00 2001 From: davigonz Date: Wed, 22 Apr 2020 14:03:46 +0200 Subject: [PATCH] Move some OAuth constants out of the library --- .../lib/common/accounts/AccountUtils.java | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java index 3d38533f..40d1013a 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java @@ -292,6 +292,8 @@ public class AccountUtils { /** * Flag signaling if the ownCloud server can be accessed with OAuth2 access tokens. */ + + // TODO Please review this constants, move them out of the library, the rest of OAuth variables are in data layer public static final String KEY_SUPPORTS_OAUTH2 = "oc_supports_oauth2"; public static final String OAUTH_SUPPORTED_TRUE = "TRUE"; @@ -316,22 +318,6 @@ public class AccountUtils { */ public static final String KEY_DISPLAY_NAME = "oc_display_name"; - /** - * OAuth2 user id - **/ - public static final String KEY_USER_ID = "user_id"; - - /** - * OAuth2 refresh token - **/ - public static final String KEY_OAUTH2_REFRESH_TOKEN = "oc_oauth2_refresh_token"; - - /** - * OAuth2 scope - */ - public static final String KEY_OAUTH2_SCOPE = "oc_oauth2_scope"; - public static final String OAUTH2_OIDC_SCOPE = "openid offline_access email profile"; - public static final int ACCOUNT_VERSION = 1; } }