16
Views
1
Comments
[IdPReact] Redirect if login has failed
idp-react
Reactive icon
Forge asset by Telmo Martins
Application Type
Reactive

Hello everyone. We faced some problems in our ADFS service functionality. Sometimes our users get the error of invalid login. 

My question is if there is a possibility to process this situation and redirect users to login page where they can enter their credentials manually if the login has failed. 

I couldn't find this setting in the IDP dashboard.

I've attached a screenshot of logic of calling IDP. We use an Azure connector and IDP version is v5.0.1.


Many thanks!


2024-05-15 10_57_42-Service Studio.jpg
2025-01-06 11-59-23
Dieter Vennekens

Hi,
There is no option build-in IDP for this. 

But you could always build a landing page yourself. 

On this page you do a simple check:
 if you are logged in, continue to the app
 if you aren't logged in, something went wrong and you can redirect to the page where they can enter credentials

By passing this page as the OriginalUrl to the IDP react component, all login trafic will pass through this landing page.
You will have to add some logic to first store the application you want to access, so that the landing page knows where to redirect you to after a successful login.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.