Our SharePoint 2013 farm is using Windows Authentication and exposed to the Internet. We have a webparts contains javascript AJAX call to another server with a different hostname.
Intranet: intranet.northwind.com API: api.northwind.com
Obviously we can't turn on IIS Windows Authentication for our API server, otherwise we can't call it from javascript loading from Intranet page without exposing any user credentials.
Can I use the SharePoint FormDigest as the token to call something via CSOM or REST inside our API application to authenticate a user? There is no problem passing the X-FormDigest value across our API application, it just that I don't know if there any method to use this token to authenticate a user.