mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 08:59:10 +08:00
URL Fragment
This commit is contained in:
parent
8ce38159f0
commit
5774a8c90d
@ -497,8 +497,7 @@ public class AuthorizationEndpoint extends AbstractEndpoint {
|
||||
}
|
||||
template.scheme(redirectUri.getScheme()).port(redirectUri.getPort()).host(redirectUri.getHost())
|
||||
.userInfo(redirectUri.getUserInfo()).path(redirectUri.getPath());
|
||||
|
||||
if (fragment) {
|
||||
if (StringUtils.hasLength(redirectUri.getFragment())) {
|
||||
StringBuilder values = new StringBuilder();
|
||||
if (redirectUri.getFragment() != null) {
|
||||
String append = redirectUri.getFragment();
|
||||
@ -506,8 +505,12 @@ public class AuthorizationEndpoint extends AbstractEndpoint {
|
||||
}
|
||||
for (String key : query.keySet()) {
|
||||
if (values.length() > 0) {
|
||||
if(values.indexOf("?") == -1) {
|
||||
values.append("?");
|
||||
}else {
|
||||
values.append("&");
|
||||
}
|
||||
}
|
||||
String name = key;
|
||||
if (keys != null && keys.containsKey(key)) {
|
||||
name = keys.get(key);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user