We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 341152c + b515014 commit 2a1fb1bCopy full SHA for 2a1fb1b
android/src/main/java/io/fullstack/oauth/OAuthManagerProviders.java
@@ -268,11 +268,19 @@ private static ServiceBuilder _oauth2ServiceBuilder(
268
builder.scope(scopeStr);
269
}
270
271
+ boolean rawScopes = (cfg.containsKey("rawScopes") && ((String)cfg.get("rawScopes")).equalsIgnoreCase("true"));
272
+
273
if (opts != null && opts.hasKey("scopes")) {
274
scopes = (String) opts.getString("scopes");
- String scopeStr = OAuthManagerProviders.getScopeString(scopes, ",");
275
+ String scopeStr = null;
276
277
+ if (!rawScopes)
278
+ scopeStr = OAuthManagerProviders.getScopeString(scopes, ",");
279
+ else
280
+ scopeStr = scopes;
281
282
- }
283
+ }
284
285
if (callbackUrl != null) {
286
builder.callback(callbackUrl);
0 commit comments