How to hide SSO error message?

Mwelander 1 Reputation point
2021-04-22T08:28:25.08+00:00

I have an SSO integration with a WP site. It is configured to only allow accounts in my directory (on my domain). Whenever an account from a different domain tries to log in, the user is faced with the attached error message. The text is in Swedish, but you get the point.

I don't want an error page that gives away my Azure application ID etc.

Ideally a customized error message saying "Only users within the organization is allowed, try signing in with a company account" or something, but a standardized stop message will suffice, rather than this technical and revealing message.

Any hints where I can configure that?

90301-skarmavbild-2021-04-22-kl-102306.png

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-04-22T18:48:58.733+00:00

    Hi @Mwelander , you can use custom policies for this. This thread shows an example of how you can do this. It is an older thread, so if it doesn't work please let me know and I can find another solution.

    If this answer helped you, please mark it as "Verified" so other users may reference it.

    Thank you,
    James


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.