question

KevinAzure avatar image
0 Votes"
KevinAzure asked ·

Angular App for 2 Purpose

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
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

soumi-MSFT avatar image
0 Votes"
soumi-MSFT answered ·

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



· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.