Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Commit

Permalink
Use URL friendly separator "+" instead of space for scope in Linkedin…
Browse files Browse the repository at this point in the history
… oauth2 implementation
  • Loading branch information
jorcasso committed Mar 11, 2015
1 parent ec8fc90 commit 916c9ff
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,15 +490,15 @@ private String getScope() {
}
result.append(arr[0]);
for (int i = 1; i < arr.length; i++) {
result.append(" ").append(arr[i]);
result.append("+").append(arr[i]);
}
List<String> scopes = config.getPluginsScopes();
if (scopes != null && !scopes.isEmpty()) {
String scopesStr = scopes.get(0);
for (int i = 1; i < scopes.size(); i++) {
scopesStr += " " + scopes.get(i);
scopesStr += "+" + scopes.get(i);
}
result.append(" ").append(scopesStr);
result.append("+").append(scopesStr);
}
return result.toString();
}
Expand Down

0 comments on commit 916c9ff

Please sign in to comment.