IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Root Junction Not found

    Posted 01/02/21 08:07 AM
    When I look at the definition of a junction, I can see the list for example /isam.
    When I look at the appliance reverse proxy traffic, in the Traffic Details, I can find 2 Junctions: / and /isam!

    Why is this happening? How do I interpret the total requests over time? Should I add both requests?


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


  • 2.  RE: Root Junction Not found

    Posted 01/03/21 11:55 PM
    HI

    Both junctions have different work

    / -- is the root junction which will provide access to local hosted pages for example, /login and other requests which needs / junction interaction. so these requests, must be showing those requests(pre and post logins if you are dependent on login.html to login the user)

    /isam -> is meant for requests which used /isam junction. when /isam is pointing to federation/aac runtime, then all requests for federations or aac will use this junction

    total request should be for / and /isam

    you are seeing this because you have selected aspect to the junction so it has showed you the grouping based on each junction.


    thanks
    tushar


    thanks
    tushar

    ------------------------------
    Tushar
    Tushar
    ------------------------------



  • 3.  RE: Root Junction Not found

    Posted 01/04/21 06:56 AM
    Thanks Tushar.
    Your reply only partially answered my question.
    The difference between / and /isam is given. But I did not understand what you meant by "then all requests for federations or aac will use this junction". Does this mean that when a client access /, it is forward to /isam?
    In this case, on the Reverse Proxy Traffic we should not add to get the total!
    If that is not the case, then the requests for / are in fact separate to the the /isam junction.

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



  • 4.  RE: Root Junction Not found

    Posted 01/04/21 07:30 AM
    Hi Joao,

    The root junction "/" is a special junction which allows access to web resources that are hosted directly on the Reverse Proxy.  There is some configuration but usually a request is sent for processing at the root junction only if the path doesn't match any configured junction.

    Putting aside things like junction mapping table and junction cookies, any request that starts /isam/... will be processed by the /isam junction (and forwarded to runtime) and any other request will be processed by the root junction (and return local files).

    Note that the local junction is intended for storing things like CSS and image assets for custom login pages etc.  It is not intended as a place to store large quantities of content.

    Jon.

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



  • 5.  RE: Root Junction Not found

    Posted 01/05/21 08:36 AM
    Can the root junction be disabled?

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



  • 6.  RE: Root Junction Not found

    Posted 01/05/21 09:34 AM
    take a look at

    https://www.ibm.com/support/knowledgecenter/SSPREK_10.0.1/com.ibm.isva.doc/wrp_config/concept/con_disable_local_junc.htm

    don't apply it directly in production, review your need to disable it and other cases and take a look at request.log to understand what you are exactly getting at /

    ------------------------------
    Tushar
    Tushar
    ------------------------------



  • 7.  RE: Root Junction Not found

    Posted 01/05/21 09:42 AM
    Thanks for the information, it is not clear to me what the manual means by "Local Junctions".
    Is it just Root (/) or junctions that server SAML or OIDC too, which are also local?

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



  • 8.  RE: Root Junction Not found

    Posted 01/05/21 07:59 PM
    its just /

    /isam or junctions serving other saml/oidc  , are non local junctions

    / is only meant to serve local content ( federations/oidc flows are pointed through a junction wherein /isam points to federation runtime)

    ------------------------------
    Tushar
    Tushar
    ------------------------------



  • 9.  RE: Root Junction Not found

    Posted 03/04/22 04:45 AM
    Hi Jon,

    I would like to deepen your statement:
    "Note that the local junction is intended for storing things like CSS and image assets for custom login pages etc. It is not intended as a place to store large quantities of content."

    i'm trying to make a custom login + redirect for a jct (or vhj) but i can't.
    I have created a folder in the mgmt with the name of the junction and I can customize the login page.
    After login, however, the login_success.html page is not read, which contains the redirect I need.
    The 2 two files are in the same folder but only 1 is processed.
    The result is that even by logging in with a custom page I find myself inside the index.html of the jct root.

    Any idea?

    Thanks

    ------------------------------
    Patrizio
    ------------------------------



  • 10.  RE: Root Junction Not found

    Posted 03/04/22 05:13 AM
    Hi Patrizio,

    The login-success.html page is only shown when login completes but there is not session available.  This can happen, for example, if you trigger EAI directly (rather than it being triggered by an ACL or POP) and there's no redirect URL returned in the EAI message.

    The normal behaviour for WebSEAL is to redirect you to the originally requested resource after login.  So, if you request https://webseal.com/junction, WebSEAL will show you the login page associated with /junction but after login will redirect you directly back to https://webseal.com/junction.  You won't ever see the login-success.html.

    It is possible to force WebSEAL to always redirect to a fixed page after authentication.  To do this you would use:

    #----------------------
    # AUTOMATIC REDIRECT
    #----------------------
    # Page to which users are automatically redirected after completing a successful
    # authentication. The configured URL can contain special macro's which will
    # allow dynamic substitution of information from WebSEAL.
    #
    # The supported macro's include:
    #  %AUTHNLEVEL%       Level at which the session is currently authenticated.
    #  %HOSTNAME%         Fully qualified host name.
    #  %PROTOCOL%         The client connection protocol used. Can be HTTP or HTTPS.
    #  %URL%              The original URL requested by the client.
    #  %USERNAME%         The name of the logged in user.
    #  %HTTPHDR{<name>}%  The value of the specified HTTP header.
    #  %CREDATTR{<name>}% The value of the specified credential attribute.
    #
    # The format can either be an absolute URL or server relative URL and can
    # include macro information as listed above:
    #       login-redirect-page = http://www.ibm.com/
    #       login-redirect-page = /jct/page.html
    #       login-redirect-page = /jct/page.html?url=%URL%&hdr=%HTTPHDR{Host}%
    #
    # Please note that in order for the configured login redirect to take affect
    # the redirect capability must be enabled for the desired authentication
    # mechanisms using the [enable-redirects] stanza.​


    As it says, you also need to enable redirects for the authentication mechanisms you want to use:

    [enable-redirects]
    # This stanza contains a list of authentication mechanisms
    # for which automatic redirects are enabled.
    # Valid choices are forms-auth, token-auth, basic-auth, cert-auth,
    # oidc and ext-auth-interface
    # Any or all of them may be enabled.
    #redirect = forms-auth
    #redirect = basic-auth
    #redirect = token-auth
    #redirect = cert-auth
    #redirect = ext-auth-interface
    #redirect = oidc

    As far as I can tell, there's only on  redirect URL per server - it doesn't look like you can change it per junction.
    However, you could pass the originally requested URL as a macro in query string and then use client-side script to implement different behaviour based on junction.

    Jon.

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