'Spring security for REST and Angular 2.0

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.

Now I want to achieve the same with REST. Need some inputs on this.

  1. Angular 2 front end
  2. Spring REST API's for login, register, logout,...
  3. Spring security with OAuth.

Later I wanted to extend the same with OpenId(Google and Facebook)



Solution 1:[1]

See this repo for an example of Rest API's, login, Spring, Spring Security, JWT and Angular 2.

However there is not OAuth example.

https://github.com/RedFroggy/angular-spring-hmac/tree/master

Solution 2:[2]

Here is an example, Also you will found OAuth2 Implementation here with different examples.

OAUTH2_SPRING_BOOT2_MYSQL and Spring Security With Angular Client

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Imranmadbar