Share via

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 Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,861 Reputation points Microsoft Employee Moderator
    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.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.