title: How to implement single sign on with two sample angular apps having the same login credentials
body: <p>I have two sample applications in angular2 <strong>first</strong> with name <strong>admin-app</strong> 
  and <strong>second</strong> with name <strong>user_app</strong> where in,</p>
  
  <p><strong>First application</strong> I have only admin component,when he logs in navigates to admin page. And it has only admin page where admin needs to perform some of the admin related tasks and by clicking <strong>Go To Application</strong> button , admin must be able to access <strong>home page</strong> of user_app i.e <strong>Second application</strong></p>
  
  <pre><code>&amp;
  </code></pre>
  
  <p><strong>Second application</strong> I have admin &amp; manager user but no admin component, when manager logs in navigates to home page of the application.</p>
  
  <p>I want to implement SSO (Single Sign On) for the two application such that when the admin logs in the <strong>First application</strong> and navigates to admin page then from admin page clicking on button <strong>Go To Application</strong> , he should be redirected to home page of the <strong>second application</strong> without entering the login credentials again.</p>
  
  <p>Below shown is the directory structure of both applications <strong>admin_app</strong> &amp; <strong>user_app</strong></p>
  
  <p><a href="https://i.stack.imgur.com/MRRwt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MRRwt.png" alt="enter image description here"></a></p>
  
  <p>Please access my sample applications here</p>
  
  <p><a href="https://stackblitz.com/edit/admin-app?file=app%2Fapp.component.html" rel="nofollow noreferrer">admin_app</a></p>
  
  <p><a href="https://stackblitz.com/edit/user-app?file=app%2Fapp.component.ts" rel="nofollow noreferrer">user_app</a></p>
  
  <p>please suggest me a possible way out to implement SSO for the two sample applications.</p>