An Angular (v17) application is made of different Angular elements which have to call different secured (bearer) APIs. The application is using "angular-oauth2-oidc" library from Manfred Steyer (https://github.com/manfredsteyer/angular-oauth2-oidc). The APIs are registered on the API Gateway with different OAUTH clientId from two different identity providers. In short, the need is to be able to call APIs by specifying the IDP and the clientId. Probably best is to have those in a config. All examples I found were using a unique configuration for the SPA. Continue reading...