Spring security for REST and Angular 2.0
<p>Working on a Login application. Separated the front end with Angular2 and accessing backend using REST implemented with Spring. Initially implemented Login app with spring security but no angular 2 just with plain jsp.</p>

<p>Now I want to achieve the same with REST. Need some inputs on this.</p>

<ol>
<li>Angular 2 front end</li>
<li>Spring REST API's for login, register, logout,...</li>
<li>Spring security with OAuth.</li>
</ol>

<p>Later I wanted to extend the same with OpenId(Google and Facebook)</p>