title: Making SSO with django rest framework
body: <p>We have two apps <code>App1</code> with domain <code>www.app1.com</code>  and <code>App2</code> with domain <code>www.app2.com</code>. Backend of both apps is api based using <code>django-rest-framework</code>. On frontend side we are using <code>Angular2</code>. Both apps had their different user base but now we decided to merge the user base and want a single authentication service.   </p>
  
  <p><strong>Both apps needs to use eachother's functionality. And we want seemless experience for user. If a user a singed in one app. It should not be login from other app.</strong></p>
  
  <p>I did some research and find out that it can be achieved with <code>SSO</code>. Here is the link to the relevant stack-overflow question (<a href="https://stackoverflow.com/questions/4662348/implementing-single-sign-on-sso-using-django">Implementing SSO with django</a>). I also find many libraries. Most of them are very old so can't use legacy code. </p>
  
  <p>Following are the libraries that I have tried and why these couldn't fit into my problem.</p>
  
  <ol>
  <li>Server with <a href="https://github.com/jbittel/django-mama-cas" rel="noreferrer">django-mama-cas</a> and client with <a href="https://github.com/mingchen/django-cas-ng" rel="noreferrer">django-cas-ng</a>. This worked perfectly but only for session based apps and my client apps are rest-api based. </li>
  <li>Another one is <a href="https://github.com/namespace-ee/django-rest-framework-sso" rel="noreferrer">django-rest-framework-sso</a>. This is year old library and also I am not sure how will sure the <code>jwt</code> between angular apps. </li>
  </ol>
  
  <p>So can you please share how to implement <code>SSO</code> with <code>rest-fraemwork</code> ? </p>