angular 2 login with spring security
im trying to integrate spring security with a custom angular 2 login, that is a specific endpoint of my app is protected with spring security, trying to access it will redirect to /login that is handled in angular 2. as things stands now i have no clue as to how to perform the login and grant access to the backend API once logged. i am configuring spring security as follows: @Override protected void configure(final HttpSecurity http) throws Exception { http .csrf().disable() .cors().and() .authorizeRequests() .antMatchers("/api/someEndpoint/**") .hasRole(ADMIN_ROLE).and().formLogin()