Forum Discussion
bos4mu
Jul 19, 2024Copper Contributor
Customize Error message Azure AD login AADSTS50105
Dear all, we find the error message AADSTS50105 a bit hard to understand and would like to display a custom text to users, on how to request access. Do you know if it is possible to change the Er...
sdtslmn
Jul 24, 2024MCT
you can use this link to provide feedback/improvement ideas
https://feedback.azure.com/d365community
and additionally
if this is an application you have developed
you can create an errorcontroller
first add this code to your startup.cs
app.UseStatusCodePagesWithReExecute("/Error/{0}");
then create ErrorController
public IActionResult Error(int statusCode)
{
if (statusCode == 50105)
{
return View("LicenseError"); // View with your custom message
}
}
bos4mu
Jul 24, 2024Copper Contributor
Thanks a lot for your help, but it is a standard app, where we can't read error codes :-(. But I have added a comment to the improvement idea: https://feedback.azure.com/d365community/idea/c52019e3-b825-ec11-b6e6-000d3a4f0789
Kind regards,
Simon
Kind regards,
Simon