FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Error message from webhook on login page

    Scheduled Pinned Locked Moved Unsolved Q&A
    4 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mihailacusteanu
      last edited by mihailacusteanu

      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 non 2xx message. But when I return a 500 error code 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 this

      Failed 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

      1 Reply Last reply
      Reply Quote 0
      • M
        mihailacusteanu
        last edited by

        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?

        joshuaJ 1 Reply Last reply
        Reply Quote 0
        • joshuaJ
          joshua @mihailacusteanu
          last edited by

          @mihailacusteanu

          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

          M 1 Reply Last reply
          Reply Quote 1
          • M
            mihailacusteanu @joshua
            last edited by

            @joshua Thanks for answering
            So this is not yet possible and all I can do is thumbs up the issue and wait.

            1 Reply Last reply
            Reply Quote 0
            • danD dan moved this topic from Q&A on
            • danD 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
            • First post
              Last post