For Unsucessfull login challange in Azure AD login page, is it possible to redirect from Azure AD to Application login page with error details or error codes

Aswani Thota 1 Reputation point
2023-01-05T09:16:30.07+00:00

We are trying to implement a new functional behavior,

If User is not Authenticated via SSO Authentication provider then provide Error message and Return on Application LoginPage and display appropriate error message.

Question: Is the Azure AD has the provision to add a redirect url for On error case such (Invalid login or Invalid password).

Currently what we are seeing is when user clicks on login via SSO link on Application page it will redirect to Azure SSO Authentication provider page and for successful authentication able to land(redirect) into application page.

But if when user clicks on login via SSO link on Application page it will redirect to Azure SSO Authentication provider page and user provides invalid credentials/Challenge user details the error is on the Azure AD page.

Do we have any possible way to redirect from Azure SSO Authentication provider page to Application page for unsuccessful authentication.
276454-image.png

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Nicolas Roche 411 Reputation points
    2023-01-05T10:24:36.063+00:00

    Hello,

    On your case, the authentication is trusted by Microsoft, that is why the error message is on Microsoft Page.
    Azure AD just send a Token, if the user is authorized, for initiate the connection.

    In certain case, the user need to be create in the application, and in the Azure AD, at this moment, you can have error message on webpage of applications. But i think it not possible in your case, and it's not a standard.

    0 comments No comments

Your answer

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