Angular App for 2 Purpose

Kevin Azure 121 Reputation points

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?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,673 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,626 Reputation points Microsoft Employee

    @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.