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

    Error message from webhook on login page

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    4
    426
    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
            • First post
              Last post