Skip to content

Commit

Permalink
minor change to allow reading in yaml list for scopes (#379)
Browse files Browse the repository at this point in the history
Co-authored-by: Kenyatta Clark <kclark@mbopartners.com>
  • Loading branch information
kenyattaclark and Kenyatta Clark authored May 22, 2020
1 parent cfa4308 commit e17cd15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ else if (SYSPROPS_TOKEN.equalsIgnoreCase(location)) {
}

if (Strings.hasText(props.get(DEFAULT_CLIENT_SCOPES_PROPERTY_NAME))) {
Set<String> scopes = new HashSet<>(Arrays.asList(props.get(DEFAULT_CLIENT_SCOPES_PROPERTY_NAME).split(" ")));
Set<String> scopes = new HashSet<>(Arrays.asList(props.get(DEFAULT_CLIENT_SCOPES_PROPERTY_NAME).split("[\\s,]+")));
clientConfig.setScopes(scopes);
}

Expand Down

0 comments on commit e17cd15

Please sign in to comment.