title: Accessing Azure App Proxy service from SharePoint Online
body: <p>I am working on validating whether we can access an internal on-prem service, exposed externally via Azure App Proxy, in a client side code. </p>
  
  <p>Structure of things
  1. An internal service
  2. Azure App Proxy exposing the internal service externally
  3. A SharePoint Online Page - On this page I am trying to validate whether I can access the service via app proxy</p>
  
  <p>Flow
  1. User signs-in to the SharePoint Online site
  2. Navigates to a page that pulls data from azure app proxy service
  3. User should see data from internal service passed over through Azure App Proxy without any authentication challenge</p>
  
  <p>Is the above flow possible? I tried the same and it fails where the call to Azure App Proxy is stopped with status code 307. I suspect the call is deemed as unauthenticated and hence failing. </p>
  
  <p>Had a look at the various cookies passed when I access SharePoint Online - FedAuth and rtfa</p>
  
  <p>Had a look at the various cookies passed when I access Azure App Proxy directly and once authenticated by login - AzureAppProxyUserSessionCookie, ASP.NET_SessionId, AzureAppProxyAccessCookie</p>
  
  <p>Considering there are different set of cookies for each authenticated session, I am doubtful, the desired flow is plausible.</p>