getContextPath

This commit is contained in:
MaxKey
2023-02-14 15:57:45 +08:00
parent fe82cb8c72
commit 22340037eb
5 changed files with 19 additions and 47 deletions

View File

@@ -60,7 +60,7 @@ public class SocialSignOnEndpoint extends AbstractSocialSignOnEndpoint{
) {
_logger.trace("SocialSignOn provider : " + provider);
String instId = WebContext.getInst().getId();
String originURL =WebContext.getHttpContextPath(request,false);
String originURL =WebContext.getContextPath(request,false);
String authorizationUrl =
buildAuthRequest(
instId,
@@ -77,7 +77,7 @@ public class SocialSignOnEndpoint extends AbstractSocialSignOnEndpoint{
public ResponseEntity<?> scanQRCode(HttpServletRequest request,
@PathVariable("provider") String provider) {
String instId = WebContext.getInst().getId();
String originURL =WebContext.getHttpContextPath(request,false);
String originURL =WebContext.getContextPath(request,false);
AuthRequest authRequest =
buildAuthRequest(
instId,
@@ -112,7 +112,7 @@ public class SocialSignOnEndpoint extends AbstractSocialSignOnEndpoint{
HttpServletRequest request) {
//auth call back may exception
try {
String originURL = WebContext.getHttpContextPath(request,false);
String originURL = WebContext.getContextPath(request,false);
SocialsAssociate socialsAssociate =
this.authCallback(userInfo.getInstId(),provider,originURL + applicationConfig.getFrontendUri());
socialsAssociate.setSocialUserInfo(accountJsonString);
@@ -139,7 +139,7 @@ public class SocialSignOnEndpoint extends AbstractSocialSignOnEndpoint{
HttpServletRequest request) {
//auth call back may exception
try {
String originURL =WebContext.getHttpContextPath(request,false);
String originURL =WebContext.getContextPath(request,false);
String instId = WebContext.getInst().getId();
SocialsAssociate socialsAssociate =
this.authCallback(instId,provider,originURL + applicationConfig.getFrontendUri());