How can I take the Windows user instead of the Anonymous user in windows server IIS?

Hi, I have an application which at the first moment calls to an endpoint of an api that I have in which thanks to LDAP of .NET I can collect information from the Active Directory that I need in my app.
When doing this in local development, I have not had any problem, however when deploying to a Windows Server 2019, IIS 10.0, it fails me, as it is not able to send the user who is logging in. I have tried several of the IIS configurations regarding authentication, but it does not work for me.

Can anyone help me with this issue?

Thank you very much.