title: Google OAuth using Angular 5 with Spring boot
body: <p>I am a beginner to spring as well as angular. I have a simple application built with Spring boot with Spring REST data JPA and Angular 5 as front-end. Built a basic CRUD application which stores the user's wishlist and everything is working fine. What I am trying to achieve is, user should able to login to the application using any Auth provider (Google/Facebook) and have access to only their resources.</p>
  
  <p>I tried to use OAuth in my app. So, I installed and followed the instructions given in this tutorial <a href="https://github.com/abacritt/angularx-social-login" rel="nofollow noreferrer">https://github.com/abacritt/angularx-social-login</a> and I got the front-end working as the demo given in the link. But I have no idea how to integrate the Angular side OAuth to restrict the resource from backend(Spring app).</p>
  
  <p>Any resources or idea to how can I achieve this?</p>
  
  <p><strong>Edited</strong></p>
  
  <p>I followed the below tutorial <a href="https://chariotsolutions.com/blog/post/angular-2-spring-boot-jwt-cors_part2/" rel="nofollow noreferrer">https://chariotsolutions.com/blog/post/angular-2-spring-boot-jwt-cors_part2/</a> to implement the sign-in logic within my app and it's working fine. But I have no idea how to implement social sign-in with this and how to store user information in my app.</p>