how to Secure Spring Boot RESTful service with OAuth2 and Social login
<p>I am trying to use Angular 2 Front End application as a client which will consume the resource from Spring RESTful Web Service.</p>

<p>So thought of protecting this web service with OAuth 2 authentication and Social Login (Google and Facebook).</p>

<p>After successful login with Social Login it's not redirecting to the URL (port at which Angular 2 is running in local environment with 3000 port) from which I made the request but its redirecting to 8080 port in local environment</p>

<p>localhost:3000 - Front End
localhost:8080 - OAuth</p>

<p>I followed this tutorial <a href="https://spring.io/guides/tutorials/spring-boot-oauth2/" rel="nofollow">https://spring.io/guides/tutorials/spring-boot-oauth2/</a> for the above scenario but they are using JAVA Application as their client and it's handling with annotations.</p>