mirror of
https://github.com/vakinge/jeesuite-passport.git
synced 2025-10-25 01:45:49 +08:00
+
This commit is contained in:
@ -27,7 +27,7 @@ public class PassportApiClient {
|
||||
|
||||
public static Map<String, String> getConfigs(){
|
||||
|
||||
String url = PassportConfigHolder.buildServerUrl("/auth/configs");
|
||||
String url = PassportConfigHolder.buildServerUrl("/api/configs");
|
||||
String body = executeRequest(url, null);
|
||||
return JsonUtils.toHashMap(body, String.class);
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ import com.jeesuite.springweb.utils.ParameterUtils;
|
||||
* @date 2019年6月4日
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping(value = "/auth")
|
||||
@RequestMapping(value = "/api")
|
||||
public class ClientApiController {
|
||||
|
||||
private static final int SIGN_EXPIRE_MILLIS = 5 * 60 * 1000;
|
||||
|
||||
@ -22,7 +22,7 @@ import com.wf.captcha.SpecCaptcha;
|
||||
import com.wf.captcha.base.Captcha;
|
||||
|
||||
@Controller
|
||||
@RequestMapping(value = "/auth/common")
|
||||
@RequestMapping(value = "/api/common")
|
||||
public class CommonController {
|
||||
|
||||
@RequestMapping(value = "/send_code", method = RequestMethod.POST)
|
||||
|
||||
@ -14,7 +14,7 @@ import com.jeesuite.security.model.UserSession;
|
||||
import com.jeesuite.springweb.model.WrapperResponse;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/auth/user")
|
||||
@RequestMapping(value = "/api/user")
|
||||
public class UserController {
|
||||
|
||||
@Autowired
|
||||
|
||||
@ -30,7 +30,7 @@ mybatis.type-aliases-package=com.jeesuite.passport.dao.entity
|
||||
mybatis.mapper-locations=classpath:mapper/*Mapper.xml
|
||||
|
||||
|
||||
security.anonymousUris=/auth/login;/auth/logout;/auth/status;/auth/ticket_exchange;/auth/current_user;/api/common/*;/auth/openlogin/*
|
||||
security.anonymousUris=/auth/*;/api/common/*
|
||||
|
||||
security.jwt.secret=THEjJPuNOjJfRdapJPsLwMI4ysxqRAgL
|
||||
security.token.headerName=Authorization
|
||||
|
||||
@ -12,7 +12,7 @@ enum Api {
|
||||
Login = '/auth/login?ticket=',
|
||||
Logout = '/auth/logout',
|
||||
CurrentUser = '/auth/current_user',
|
||||
CurrentUserDetails = '/auth/user/baseInfo'
|
||||
CurrentUserDetails = '/api/user/baseInfo'
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user