Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit d957d48

Browse files
davigonzabelgardep
authored andcommitted
Move some OAuth constants out of the library
1 parent 7b32f7b commit d957d48

File tree

1 file changed

+2
-16
lines changed
  • owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts

1 file changed

+2
-16
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ public static class Constants {
292292
/**
293293
* Flag signaling if the ownCloud server can be accessed with OAuth2 access tokens.
294294
*/
295+
296+
// TODO Please review this constants, move them out of the library, the rest of OAuth variables are in data layer
295297
public static final String KEY_SUPPORTS_OAUTH2 = "oc_supports_oauth2";
296298

297299
public static final String OAUTH_SUPPORTED_TRUE = "TRUE";
@@ -316,22 +318,6 @@ public static class Constants {
316318
*/
317319
public static final String KEY_DISPLAY_NAME = "oc_display_name";
318320

319-
/**
320-
* OAuth2 user id
321-
**/
322-
public static final String KEY_USER_ID = "user_id";
323-
324-
/**
325-
* OAuth2 refresh token
326-
**/
327-
public static final String KEY_OAUTH2_REFRESH_TOKEN = "oc_oauth2_refresh_token";
328-
329-
/**
330-
* OAuth2 scope
331-
*/
332-
public static final String KEY_OAUTH2_SCOPE = "oc_oauth2_scope";
333-
public static final String OAUTH2_OIDC_SCOPE = "openid offline_access email profile";
334-
335321
public static final int ACCOUNT_VERSION = 1;
336322
}
337323
}

0 commit comments

Comments
 (0)