oauth 2.0 – Frontend with more api recorded on AAD (Azure Active Directory)

I’ve a problem with this environment

  1. Frontend Angular
  2. MyApi1
  3. MyApi2
  4. Sharepoint Online

Each element has an clientid recorded on AAD

Frontend can access to Mypi1 and MyApi2
I want to use the OnBehalfOf to access Sharepoint with MyApi1 (I use Pnp Library)

I need the authenticated user on frontend to be recognized on all environments

I read in other post that I have to request 3 tokens

  1. token from frontend, with scope MyApi1
  2. token from frontend, with scope MyApi2
  3. token from frontend, with scope sharepoint scope

Is there another solution, with only one request?

Read more here: Source link