IBM Security Verify

 View Only
  • 1.  Returning Logout page with json

    Posted Mon November 16, 2020 12:30 PM
    After a successful login to the reverse proxy using pkmslogin.form, I need to return a json to logout.
    I found that in case of errors, the reverse proxy returns the content of default.json
    So I changed default.json to
    {
    "success": false,
    "errorMessage": "%ERROR%"
    }

    unfortunately I also found out that if I want to logout (using pkmslogout) and want to return a json object, it returns default.json file too.
    But since it is hard coded, success: is returning false, even if the logout was successful.

    I searched for a macro I could use to replace "false" by the result of the call to the reverse proxy, and could not find.

    Is there any way that I can return true in this situation?

    ------------------------------
    Joao Goncalves
    Pyxis, Lda.
    Sintra
    +351 91 721 4994
    ------------------------------


  • 2.  RE: Returning Logout page with json

    Posted Mon November 16, 2020 03:06 PM

    Hi Joao,

    default.json is returned only if the Reverse Proxy does not find a specific management file with the file name of the HTML file but with .json file type.

    If you create a file named logout_success.json then this will be returned after logout instead of default.html.

    The same approach is used for error files (except the default file is different). I can't remember the file name right now but it is something like default_error.json. 

    Jon. 



    ------------------------------
    Jon Harry
    Consulting IT Security Specialist
    IBM
    ------------------------------



  • 3.  RE: Returning Logout page with json

    Posted Mon November 16, 2020 04:48 PM
    It worked. Thanks

    ------------------------------
    Joao Goncalves
    Pyxis, Lda.
    Sintra
    +351 91 721 4994
    ------------------------------