Hi @Lorenzo Righini Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.
You would need to use the authentication-basic
policy to authenticate with a backend service using Basic authentication. This policy effectively sets the HTTP Authorization header to the value corresponding to the credentials provided in the policy
Here is a sample policy you can add to the inbound section
of the policies to add the authentication header.
<authentication-basic username="username" password="password" />
Please refer the document Set or edit Azure API Management policies to get more information on how to set p this policy.
Hope this helps! If you need any additional assistance, please let us know and we would be happy to help you.
If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.