question

Mwelander-3131 avatar image
0 Votes"
Mwelander-3131 asked azure-cxp-api edited

How to hide SSO error message?

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


azure-ad-saml-sso
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered Mwelander-3131 commented

Hi @Mwelander-3131 , 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


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I see. I was hoping for a GUI solution, I have no experience with powershell whatsoever. I can imagine manmy things going wrong there if I don't know what I am doing.

So there is no other way to do this except programmatically?

0 Votes 0 ·