mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-06-28 13:34:18 +08:00
!333 oauth2中, scope分割符支持加号
Merge pull request !333 from sonhuagao007/dev
This commit is contained in:
commit
f6ec0fa465
@ -45,9 +45,10 @@ public class SaOAuth2DataConverterDefaultImpl implements SaOAuth2DataConverter {
|
|||||||
if(SaFoxUtil.isEmpty(scopeString)) {
|
if(SaFoxUtil.isEmpty(scopeString)) {
|
||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
// 兼容以下三种分隔符:空格、逗号、%20
|
// 兼容以下三种分隔符:空格、逗号、%20、加号
|
||||||
scopeString = scopeString.replaceAll(" ", ",");
|
scopeString = scopeString.replaceAll(" ", ",");
|
||||||
scopeString = scopeString.replaceAll("%20", ",");
|
scopeString = scopeString.replaceAll("%20", ",");
|
||||||
|
scopeString = scopeString.replaceAll("+", ",");
|
||||||
return SaFoxUtil.convertStringToList(scopeString);
|
return SaFoxUtil.convertStringToList(scopeString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user