title: Microsoft Graph API token validation failure
body: <p>I would use Microsoft Graph API in my Angular Web application.</p>
  
  <p>First I make connexion using <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/README.md" rel="noreferrer">msal library</a>
  When I try log in  with my profil I get this error</p>
  
  <p>I have configured my app as the mentionned in the official <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/samples/MSALAngularDemoApp/src/app" rel="noreferrer">git sample</a></p>
  
  <pre><code>MsalModule.forRoot({
    clientID: "Tenant ID",
    authority: "https://login.microsoftonline.com/common/",
    redirectUri: "http://localhost:4200/",
    validateAuthority : true,
    popUp: true
  }),
  </code></pre>
  
  <p>Authetification is working and I get the token.</p>
  
  <p>Then when I'm in home page I make a second request to Microsoft Graph API to get user information using that token.</p>
  
  <pre><code>getProfile() {
    let header= new Headers();
    let tokenid= sessionStorage.getItem('msal.idtoken'); 
    header.set('Authorization', 'Bearer ' + tokenid)
    let url ="https://graph.microsoft.com/v1.0/me/"
    return this.http.get(url,{headers:header});
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I get an 401 Unauthorized error with a response :</p>
  
  <pre><code>{
    "error": {
      "code": "InvalidAuthenticationToken",
      "message": "Access token validation failure.",
      "innerError": {
        "request-id": "xxxxxx",
        "date": "2018-10-09T22:58:41"
      }
    }
  }
  </code></pre>
  
  <p>I don't know why MG API is not accepting my token, Am I using wrong authority url ?</p>
  
  <p><strong>UPDATE</strong>: I have understood that actually I get id_token which is different from access token. How can I get Access token from MSAL library to make MS GRAPH API calls ?: </p>