You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2017/07/19 08:05:58 UTC

kylin git commit: KYLIN-2742 Spring security 4.x will use a dynamically generated default login page when no login page is specified.

Repository: kylin
Updated Branches:
  refs/heads/master f1247abe9 -> 7145b6d21


KYLIN-2742 Spring security 4.x will use a dynamically generated default login page when no login page is specified.

Signed-off-by: Li Yang <li...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/7145b6d2
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/7145b6d2
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/7145b6d2

Branch: refs/heads/master
Commit: 7145b6d21f983238ab44ffc252756393c4198c82
Parents: f1247ab
Author: 10069681 <pe...@zte.com.cn>
Authored: Fri Jul 14 15:41:42 2017 +0800
Committer: Li Yang <li...@apache.org>
Committed: Wed Jul 19 16:05:50 2017 +0800

----------------------------------------------------------------------
 server/src/main/resources/kylinSecurity.xml | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/7145b6d2/server/src/main/resources/kylinSecurity.xml
----------------------------------------------------------------------
diff --git a/server/src/main/resources/kylinSecurity.xml b/server/src/main/resources/kylinSecurity.xml
index 53ed511..ce068d7 100644
--- a/server/src/main/resources/kylinSecurity.xml
+++ b/server/src/main/resources/kylinSecurity.xml
@@ -246,6 +246,7 @@
             <scr:intercept-url pattern="/api/admin*/**" access="hasRole('ROLE_ADMIN')"/>
             <scr:intercept-url pattern="/api/**" access="isAuthenticated()"/>
 
+            <scr:form-login login-page="/login" />
             <scr:logout invalidate-session="true" delete-cookies="JSESSIONID" logout-url="/j_spring_security_logout" logout-success-url="/." />
             <scr:session-management session-fixation-protection="newSession"/>
         </scr:http>
@@ -288,6 +289,7 @@
             <scr:intercept-url pattern="/api/admin*/**" access="hasRole('ROLE_ADMIN')"/>
             <scr:intercept-url pattern="/api/**" access="isAuthenticated()"/>
 
+            <scr:form-login login-page="/login" />
             <scr:logout invalidate-session="true" delete-cookies="JSESSIONID" logout-url="/j_spring_security_logout" logout-success-url="/." />
             <scr:session-management session-fixation-protection="newSession"/>
         </scr:http>