reaction when error 401 is thrown

  • Klaus79
        vor 3 Jahren #25417

        Hi,

        how could I react in my application (no matter which action is tried to be executed) on a 401 error code when application runs in a timeout in background?

        POST https://xyz.com/client/1.0/executeBO 401

        Request URL:
        https://xyz.com/client/1.0/executeBO
        Request Method:
        POST
        Status Code:
        401

        Do I have to implement I fail callback for every called business object and connector or is there a way how to catch it once for all.

         

        Best regards

        Klaus

        Chris Bouveret
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
            Has successfully completed the online course Basics (100)
            Has successfully completed the online course Advanced (320)
            Has successfully completed the Intermediate Certification
            Has successfully completed the Advanced Certification
          vor 3 Jahren #25431
          Up
          2
          Down
          ::

          Hi Klaus,

          in your Simplifier instance you can specify the lifetime of the user’s authentication token.

          As soon as the token is expired the user will get a 401 error when he triggers any action where he needs to interact with the server. Hence, he is not authenticated anymore.

           

          We created a Business Object (BO) which can help you to notify the user when his authentication is expired and tells him to reload the application.

          You can find a detailed description how to use it and where to download the BO in the knowledge base article below:

          https://community.simplifier.io/knowledge/how-to-check-simplifier-token-validity/

          On the end of the article, you will also find some information on the Simplifier token in general.

          Best regards,
          Nina

        Ansicht von 2 Beiträgen – 1 bis 2 (von insgesamt 2)

        You must be logged in to reply to this topic.