I have a client web application and a web api application registered in "AADirectory1" App registrations In order to use web api from client I did:
- Exposed API in WEB API App registration
- Added API permissions related to my WEB API for client application
- Configured app service for my web client (
App Services->Authentication / Authorization->Azure Active Directory
, and filled Client ID and issuer URL as https://sts.windows.net/)
Now I have WEB API2 which is in AADirectory2. I don't want to create a new application registration in AADirectory2 for web client application. Instead, I want to use the current web client app (which is in AADirectory1). The problem is that I don't know how to set up my web client to be able to call both webapi1 (AADirectory1) and web api2 (AADirectory2) from web client active directory (AADirectory1).