Repository: kylin Updated Branches: refs/heads/2.1.x f336c654b -> 50a822f0b
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 <liy...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/50a822f0 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/50a822f0 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/50a822f0 Branch: refs/heads/2.1.x Commit: 50a822f0b51072e0680338cdd4ec45dfa6bd0313 Parents: f336c65 Author: 10069681 <peng.jian...@zte.com.cn> Authored: Fri Jul 14 15:41:42 2017 +0800 Committer: Li Yang <liy...@apache.org> Committed: Wed Jul 19 16:06:12 2017 +0800 ---------------------------------------------------------------------- server/src/main/resources/kylinSecurity.xml | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/50a822f0/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>