title: access_token given by Oauth2 procedure is not authorized for accessing Orion FI-LAB
body: <p>The oauth2 procedure that we used to get the access token for accessing Orion FI-LAB instance provided at <a href="https://github.com/fgalan/oauth2-example-orion-client" rel="nofollow">https://github.com/fgalan/oauth2-example-orion-client</a> does not work anymore.
  something has happened since 10 days ago.
  we have used the same procedure for retrieving the token in our android application.now either our android app dose not work.</p>
  
  <p><strong>The probblem is :</strong></p>
  
  <p>The access token generated by the server.js code is not recognized as a valid X-Auth-Token for the orion FI-LAB instance (orion.lab.fi-ware.eu:1026).
  by running the sample we get the below response </p>
  
  <pre><code> {
     "access_token": "3ujlcoB3uUCy45ZasN5c89DoV9549d",
     "expires_in": 3600,
     "token_type": "Bearer",
     "state": "xyz",
     "scope": "all_info",
     "refresh_token": "FrmaTmGCJ4DDKkeGlWxfERB6R3jtij"
   }
  </code></pre>
  
  <p>However, when we use the above access_token for making http request to orion context broker we get this answer: "User token not authorized".</p>
  
  <p>On the other hand, the token obtained by the token_script.sh shell  works well as X-Auth-Token for the orion FI-LAB instance.</p>
  
  <p><strong>The question</strong></p>
  
  <p>which way is going to be the stable approach to access the FI-LAB Orion instance:</p>
  
  <ul>
  <li>the procedure taken by the <strong>server.js</strong>(in which the given token is not working)
  or</li>
  <li>the procedure taken by <strong>token_script.sh</strong>
  ?</li>
  </ul>