소스 검색

ER模型设计

Crystal.Sea 3 년 전
부모
커밋
77d00809dd

+ 4 - 4
maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/RealmAuthenticationProvider.java

@@ -109,7 +109,7 @@ public class RealmAuthenticationProvider extends AbstractAuthenticationProvider
         	authenticationRealm.getPasswordPolicyValidator().applyPasswordPolicy(userInfo);
         }
         
-        UsernamePasswordAuthenticationToken authenticationToken = setOnline(loginCredential,userInfo);
+        UsernamePasswordAuthenticationToken authenticationToken = createOnlineSession(loginCredential,userInfo);
         //RemeberMe Config check then set  RemeberMe cookies
         if (applicationConfig.getLoginConfig().isRemeberMe()) {
             if (loginCredential.getRemeberMe() != null && loginCredential.getRemeberMe().equals("remeberMe")) {
@@ -136,7 +136,7 @@ public class RealmAuthenticationProvider extends AbstractAuthenticationProvider
 
             authenticationRealm.getPasswordPolicyValidator().passwordPolicyValid(loadeduserInfo);
             
-            Authentication authentication = setOnline(loginCredential,loadeduserInfo);
+            Authentication authentication = createOnlineSession(loginCredential,loadeduserInfo);
             
             authenticationRealm.insertLoginHistory(loadeduserInfo, loginCredential.getAuthType(), "", "", "SUCCESS");
                         
@@ -168,7 +168,7 @@ public class RealmAuthenticationProvider extends AbstractAuthenticationProvider
             LoginCredential loginCredential = new LoginCredential();
             loginCredential.setUsername(loadeduserInfo.getUsername());
             
-            Authentication authentication = setOnline(loginCredential,loadeduserInfo);
+            Authentication authentication = createOnlineSession(loginCredential,loadeduserInfo);
             
             authenticationRealm.insertLoginHistory(loadeduserInfo, type, provider, code, message);
             
@@ -180,7 +180,7 @@ public class RealmAuthenticationProvider extends AbstractAuthenticationProvider
         }
     }
     
-    public UsernamePasswordAuthenticationToken setOnline(LoginCredential credential,UserInfo userInfo) {
+    public UsernamePasswordAuthenticationToken createOnlineSession(LoginCredential credential,UserInfo userInfo) {
         String currentUserSessionId = WebContext.genId();
         //Online Tickit Id
         String onlineTickitId = WebConstants.ONLINE_TICKET_PREFIX + "-" + currentUserSessionId;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3 - 0
sql/MaxKey单点登录认证系统v2.9.1GA.chnr.json


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.