I have an Angular app hosted in AppService while two FunctionApps serving as APIs. All 3 are registered with Azure AD and configured to with Azure AD authentication. The AD users can have different appRoles for each of these FunctionApps.
The AppService has been given permissions to access the two FunctionApps.
It is also configured to return a JWT in the access_token. However, I can only add one application as resource in the additionalLoginParams for the AppService.
Thus the generated access_token after calling /.auth/me from AppService has claims only for one FunctionApp and not the other FunctionApp. This means I can not access both the FunctionApps from the Angular code in the AppService.
Any way to work around this and get access_token(s) to access both the FunctionApps?