增加 ticket 的 client 锁定功能

This commit is contained in:
click33
2022-12-07 20:39:24 +08:00
parent 385cf3b2e4
commit 90d14ef23b
10 changed files with 121 additions and 431 deletions

View File

@@ -23,7 +23,7 @@ public class H5Controller {
* 获取 redirectUrl
*/
@RequestMapping("/sso/getRedirectUrl")
private Object getRedirectUrl(String redirect, String mode) {
private Object getRedirectUrl(String redirect, String mode, String client) {
// 未登录情况下,返回 code=401
if(StpUtil.isLogin() == false) {
return SaResult.code(401);
@@ -35,7 +35,7 @@ public class H5Controller {
return SaResult.data(redirect);
} else {
// 模式二或模式三
String redirectUrl = SaSsoUtil.buildRedirectUrl(StpUtil.getLoginId(), redirect);
String redirectUrl = SaSsoUtil.buildRedirectUrl(StpUtil.getLoginId(), client, redirect);
return SaResult.data(redirectUrl);
}
}