Angular App for 2 Purpose

Kevin Azure 141 Reputation points
2020-01-12T16:19:20.463+00:00

I need to use Angular App to get:

  • access token to work with web api
  • access token to work with graph.api from web api

Can I use the same Access Token with a Single App Reg?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,380 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2020-01-13T04:44:03.757+00:00

    @PaulAzure-8925, You cannot use the same access token which is issued to your webapi to call another webapi like Graph API. The reason being, an access token is always issued for a specific resource.

    There are two distinct fields in an access token i.e:

    • Iss --> Issuer, as who has issued the token.
    • Aud --> Audience, as in for whom the token is meant to be consumed.

    So there has to be separate calls inorder to get your scenario working.

    Hope this helps.

    0 comments No comments