access_token same as id_token when trying to acquire access token with ADAL.js AuthenticationContext?
问题 I am authenticating my Single Page App (Angular4) with Azure AD, and using Adal.js for the same. On the login page, I click a button that redirects to Microsoft AAD and upon successful login it redirects back to application home page, and receives id_token and user info from JWT. I need the access_token for back-end API access, which I am trying to acquire through the the ADAL AuthenticationContext 's getCachedToken() method, and sending the clientId as parameter: this.context.getCachedToken