title: How to authorize user in page request if logged in with REST API?
body: <p>Before, I had asked a question <a href="https://stackoverflow.com/questions/16502811/access-control-to-a-page-with-rest-service">Access control to a page with REST service</a></p>
  
  <p>But maybe I need to ask more briefly and more generally to get the idea.</p>
  
  <p>I have a REST API. Client is browser. "login" is also one of my REST Service, where user enters his credentials and authenticated. Then, the user begins navigate different pages.</p>
  
  <p>Please note that I do not ask about REST API security, authentication/authorization etc.</p>
  
  <p>The question is:</p>
  
  <p>How do I check if the user was authenticated before, through REST API, to see if the user has right to view a particular web page? (Web Server is based on java)</p>
  
  <p>Thank you for any idea.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I see that the question is understood how to authorize with REST API.</p>
  
  <p>After authentication via REST API, I'm not asking the other requests to REST API. I want to see that authentication in my <strong>Web Server</strong>, which is at another domain, isolated from REST Server. I imagine some work-arounds; however I would like to hear design alternatives. Isn't there anyone who has separated his Web Server and REST API? Is this totally wrong?</p>