Commit 3eba272e authored by 喻春霖's avatar 喻春霖

fixed

parent 32902eb3
...@@ -62,6 +62,7 @@ public class AuthController { ...@@ -62,6 +62,7 @@ public class AuthController {
String clientId = request.getParameter("client_id"); String clientId = request.getParameter("client_id");
String returnUrl = request.getParameter("redirect_uri"); String returnUrl = request.getParameter("redirect_uri");
String business_client = request.getParameter("business_client");
AuthLog authLog = new AuthLog(); AuthLog authLog = new AuthLog();
authLog.setLogType(LogType.login); authLog.setLogType(LogType.login);
if (StringUtils.isNotEmpty(clientId)){ if (StringUtils.isNotEmpty(clientId)){
...@@ -95,6 +96,15 @@ public class AuthController { ...@@ -95,6 +96,15 @@ public class AuthController {
ClientItem item = clientItemMap.get("readingroomClientId"); ClientItem item = clientItemMap.get("readingroomClientId");
authLog.setClientId("readingroomClientId"); authLog.setClientId("readingroomClientId");
authLog.setAuthSource(item.getClientName()); authLog.setAuthSource(item.getClientName());
}else if ("cloudcourse".equals(business_client) || "cloudcourse-test".equals(business_client)){
ClientItem item = clientItemMap.get("cloudcourse");
authLog.setClientId("cloudcourse");
authLog.setAuthSource(item.getClientName());
}else if ("adaptive-learning".equals(business_client)){
ClientItem item = clientItemMap.get("adaptive-learning");
authLog.setClientId("adaptive-learning");
authLog.setAuthSource(item.getClientName());
} }
OauthType oauthType = OauthType.getValue(loginType); OauthType oauthType = OauthType.getValue(loginType);
......
...@@ -63,3 +63,12 @@ oauthclient: ...@@ -63,3 +63,12 @@ oauthclient:
- clientName: 阅览室 - clientName: 阅览室
clientId: readingroomClientId clientId: readingroomClientId
clientSecret: readingroomClientSecret clientSecret: readingroomClientSecret
- clientName: 空中课堂
clientId: cloudcourse
clientSecret: cloudcourseSecret
- clientName: 自适应学习
clientId: adaptive-learning
clientSecret: adaptive-learningSecret
...@@ -63,3 +63,9 @@ oauthclient: ...@@ -63,3 +63,9 @@ oauthclient:
- clientName: 阅览室 - clientName: 阅览室
clientId: readingroomClientId clientId: readingroomClientId
clientSecret: readingroomClientSecret clientSecret: readingroomClientSecret
- clientName: 空中课堂
clientId: cloudcourse
clientSecret: cloudcourseSecret
- clientName: 自适应学习
clientId: adaptive-learning
clientSecret: adaptive-learningSecret
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment