Integrating spring security in a web application which uses angularjs for routing -


my web application uses angular routing .the problem face on spring security integration is, once security xml file in action doesn't prevent intercept url's specified. please give solution.

spring security xml:

    <http auto-config="true">     <intercept-url pattern="/admin**" access="role_user" />       <form-login          login-page="/rest/testing/login"          authentication-failure-url="/rest/testing/login?error"          username-parameter="username"         password-parameter="password" />     <logout logout-success-url="/rest/testing/login"  />     <!-- enable csrf protection -->     <csrf/> </http>  <authentication-manager>     <authentication-provider>         <user-service>             <user name="admin" password="admin" authorities="role_user" />         </user-service>     </authentication-provider> </authentication-manager> 

angular routing:

  xmlview.config(function($routeprovider)    {$routeprovider      // route home page     .when('/', {         templateurl : 'transform.jsp',         controller : 'viewcontroller'     })      // route search page     .when('/search', {         templateurl : 'search.jsp',         controller : 'searchcontroller'     })      // route page     .when('/admin', {         templateurl : 'audits.jsp',         controller : 'auditcontroller'     })      .when('/login', {         templateurl : 'login.jsp',      }) 

in above js file '/admin' url pattern not intercepted spring security xml


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -