How to hide sensitive information in the Active directory error message ?

Copper Contributor

I am just starting out on Azure. I am getting an error AADSTS50020. User account '**************' from identity provider '******' does not exist in tenant '***' and cannot access the application '**********'(**********) in that tenant. How do I change the error so that it does not display the application name and id?

I have given access to the users that need it. I donot want to display any information about the application in this error message or any other error message. I am writing my application in .net core 6.0. Is there a azure setting or code in .net to hide this information?

 

1 Reply

@alroyf I've also encountered the same issue as you and was about to ask the question. Does anyone know how to resolve this? If so, please provide guidance.