title: ADFS/Web Api/Angularjs with Single Signon
body: <p>Anybody know how to use ADFS, Web Api 2 and Angularjs together to achieve single sign-on inside the same domain? I created a ASP.NET Project with MVC template (.Net 4.5) and setup as on-permises org. authentication integrated with ADFS, I got everything working (successful login). My main question is, How do I get jwt token from API in angularjs ? After I did the research, it looks like it's impossible to do single signon without using MVC controller as a middle guy, so I can get the token from ADFS and then I can parse the jwt and get the information I am looking for (claims)? How do I get the token from MVC controller? any example? My current setup is Angularjs->MVC Controller->Web Api-> ADFS, any better suggestion? MVC Controller is really redundant, the only reason I need it, it's because to achieve single sign-on. </p>