title: How to test a SSO using tokens in java?
body: <p>I have to two applications :<br>
    A : is the parent application<br>
    B  : is the child application.</p>
  
  <p>When the user has to access B , he needs to sign in to A , which creates a token, and then the user can access B with that token</p>
  
  <p>Manually using post-man I was able to test the flow.   <strong>How can I write automation for the same flow. How can my automation test in B access the same token from A and use it ?</strong> My automation will be using the RestAssure lib.</p>
  
  <p>Both the applications are in JAVA.</p>
  
  <p>Manually using post-man this is what I have so far :</p>
  
  <pre><code>curl -X POST \
    http://localhost:8080/applicationB/endpoint \
    -H 'authorization: Bearer &lt;token_value&gt;' 
  </code></pre>
  
  <p>I got the token_value by login into A that created the token that I used.</p>