angularjs - Login page rendering inside the index page after session time out -



angularjs - Login page rendering inside the index page after session time out -

i'm trying build angularjs application using spring security authorization. application has expected behavior now. issue i'm getting when session time outs , user tries click on link login page getting loaded within index.html render content using ng-view.

how can render login page right when user session time outs.

here's spring security configuration.

@override protected void configure(httpsecurity http) throws exception { http .csrf().disable() .logout() .logouturl("/signout") .logoutrequestmatcher(new antpathrequestmatcher("/signout")) .logoutsuccessurl("/login") .and() .authorizerequests() .antmatchers("/resources/**", "/app.css", "/resetpassword/**","/api/user/resetpassword/**").permitall() .antmatchers("/testapp/**").hasrole("admin") .anyrequest().authenticated() //enforce https .and().requireschannel().anyrequest().requiressecure() .and() .formlogin().loginpage("/login").defaultsuccessurl("/").permitall() .and() .rememberme().key("testapp"); }

thanks in advance.

angularjs spring spring-security

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -