Our client wants us to implement a trusted subsystem design, meaning they have their Azure AD (Client AD) to authorize the users for the frontend. And asked us to use our own Azure AD (Dev AD) to authorize the frontend to the backend. We managed authorization flow from Cliend AD (using angular-msal library) and there are no problems. We get an access token and authorized into frontend. But then I need to request another access token from (Dev AD) without user interaction (client credential flow) using client_secret, application_id. for being able to call a secure API (our back end). That is how my backend guys propose. So after that, they can validate the second access_token on the back end and provide secure data back to the client. My question is: Is this a right and secure way to acquire an access token from the angular app using client_secret, application_id? At least when I'm trying I have CORS problem. A client also added the following description that I don't understand. If it can help to understand the problem:
When the MSAL library is used, the Identity Provider (Azure AD) can be given as a parameter when a token is requested