Simplifier Community Home Forums Simplifier Forum reaction when error 401 is thrown

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25417
    AvatarKlaus79
    Participant
    • Topics: 35
    • Replies: 43
    • Jedi Master

    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

    #25431
    AvatarNina Schmidt
    Moderator
    • Topics: 0
    • Replies: 2
    • Padawan
    Up
    1
    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.