-
Hi,
I have a webhook that could fail of several reasons. So I want to return an error message based on the reason and then display that message on the login page.
From my understanding to fail a webhook you have to return a non2xxmessage. But when I return a500 errorcode on the login page I receive this error message:
A validation error occurred during the login attempt. An event log was created for the administrator to review.
and when I look in the event log I see thisFailed to complete a login for Identity Provider [simple oidc]. The following errors occurred: { "fieldErrors" : { }, "generalErrors" : [ { "code" : "[WebhookTransactionException]", "message" : "My custom message" } ] }After I read some github issues and some forum posts here I am still not sure if this is possible.
Thanks,
Mihai -
So can I display the
"My custom message", which was returned from the webhook, above the login form as the reason of the login fail? -
It sounds like you are looking for parts of the functionality described here
https://github.com/FusionAuth/fusionauth-issues/issues/814
I will let you know if anything else pops to mind and post back if so.
Thanks,
Josh -
@joshua Thanks for answering
So this is not yet possible and all I can do is thumbs up the issue and wait. -
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login