mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 17:08:29 +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())
|
template.scheme(redirectUri.getScheme()).port(redirectUri.getPort()).host(redirectUri.getHost())
|
||||||
.userInfo(redirectUri.getUserInfo()).path(redirectUri.getPath());
|
.userInfo(redirectUri.getUserInfo()).path(redirectUri.getPath());
|
||||||
|
if (StringUtils.hasLength(redirectUri.getFragment())) {
|
||||||
if (fragment) {
|
|
||||||
StringBuilder values = new StringBuilder();
|
StringBuilder values = new StringBuilder();
|
||||||
if (redirectUri.getFragment() != null) {
|
if (redirectUri.getFragment() != null) {
|
||||||
String append = redirectUri.getFragment();
|
String append = redirectUri.getFragment();
|
||||||
@ -506,7 +505,11 @@ public class AuthorizationEndpoint extends AbstractEndpoint {
|
|||||||
}
|
}
|
||||||
for (String key : query.keySet()) {
|
for (String key : query.keySet()) {
|
||||||
if (values.length() > 0) {
|
if (values.length() > 0) {
|
||||||
values.append("&");
|
if(values.indexOf("?") == -1) {
|
||||||
|
values.append("?");
|
||||||
|
}else {
|
||||||
|
values.append("&");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
String name = key;
|
String name = key;
|
||||||
if (keys != null && keys.containsKey(key)) {
|
if (keys != null && keys.containsKey(key)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user