Role based AngularJS JWT authentication
<p>I have an angularJS web application. To serve data from the backend to the SPA I'm using asp.net web api. </p>

<p>At the backend I implemented JSON web token authentication like in this great blog post: <a href="http://bitoftech.net/2015/03/31/asp-net-web-api-claims-authorization-with-asp-net-identity-2-1/" rel="nofollow">http://bitoftech.net/2015/03/31/asp-net-web-api-claims-authorization-with-asp-net-identity-2-1/</a></p>

<p>Now I'm looking for an implementation at client-side. I found a lot of angular packages for authentication. But I couldn't found any using JSON web token and role based authentication. </p>

<p>Do you know any solution with:</p>

<ul>
<li>ui-router</li>
<li>roles</li>
<li>JSON web token (jwt)</li>
<li>refresh token</li>
<li>external login (Facebook, Google, ...)</li>
</ul>

<p>The backend solution is working very well and I would like to find a suitable angularJS frontend solution. </p>