We have two different Api's running. One on a public server and one internal that should communicate with each other. We used to setup SAML with AzureAD and ITfoxtec.Identity.Saml2 to authorize a the public Api. Now we need to setup authorized communication between the two Api's with the auhtorized user.
How can we authorize the Api's between each other?
We tryed using HttpClient but can't get it to work.
HttpClient client = new HttpClient(new HttpClientHandler { UseDefaultCredentials = true, });
How can we set User and claims to the HttpClient?