File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
android/src/main/java/io/fullstack/oauth Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -268,11 +268,19 @@ private static ServiceBuilder _oauth2ServiceBuilder(
268
268
builder .scope (scopeStr );
269
269
}
270
270
271
+ boolean rawScopes = (cfg .containsKey ("rawScopes" ) && ((String )cfg .get ("rawScopes" )).equalsIgnoreCase ("true" ));
272
+
271
273
if (opts != null && opts .hasKey ("scopes" )) {
272
274
scopes = (String ) opts .getString ("scopes" );
273
- String scopeStr = OAuthManagerProviders .getScopeString (scopes , "," );
275
+ String scopeStr = null ;
276
+
277
+ if (!rawScopes )
278
+ scopeStr = OAuthManagerProviders .getScopeString (scopes , "," );
279
+ else
280
+ scopeStr = scopes ;
281
+
274
282
builder .scope (scopeStr );
275
- }
283
+ }
276
284
277
285
if (callbackUrl != null ) {
278
286
builder .callback (callbackUrl );
You can’t perform that action at this time.
0 commit comments