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.  OAuth token cache expiration with STS

    Posted 05/24/19 12:12 PM

    Hi

     

    I believe that when WebSEAL (with oauth-auth=https configured) receives inbound an OAuth token inside a Bearer header, it performs a validity check with its configured STS services (using WS-Trust), but only once. All other following inbound calls with the same Bearer token will be considered already validated, up to its expiration time.  Is this right?

     

    Now, without going to the extreme other scenario where we would tell WebSEAL to validate every incoming Bearer token with the STS regardless it may have validated it already, is there a way to tell WebSEAL to revalidate a pre-validated Bearer token every now and then? This is to make sure that if the token as been invalidated administratively (from the LMI) or by other means (revoke end-point), that the Deny authorization process can take effect somewhat more rapidly.

     

    I guess this is more applicable to scenario with long token (1h or more), compare to cases where the tokens are set to relatively short duration (5 min).

     

    Also, what is it with this thing about calling the same thing with 2 different names: "Bearer" or "OAuth" token. I'm sure some on this group can provide a pre-historic perspective on the matter. (-; I know it may sound "cooler" to say "Bearer" token ... can it be really something else than an OAuth token? That was my Friday trivia question.

     

     

    Sylvain



  • 2.  RE: OAuth token cache expiration with STS

    Posted 05/24/19 12:23 PM
    Hi Sylvain,

    The reason that the OAuth token is not checked on subsequent requests is because ISAM has created a session based on the Authorization header.  The token won't be revalidated until that session expires - either based on maximum time or inactivity timeout.  Set these values in the Reverse Proxy configuration to change the timeouts and force revaluation of token more frequently. Of course this will impact all sessions on the Reverse Proxy.

    Jon.

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



  • 3.  RE: OAuth token cache expiration with STS

    Posted 05/24/19 12:28 PM

    Got it.

     

    So it has more to do with the fact that WebSEAL looks for Bearer token in Authorization header only when it is not finding session information (cookie). When it does find a still-valid session in subsequent requests, it just does not care or bother that an Authorization header is still present.

     

    Thanks

     

     

    Sylvain Gilbert, p. ing., Conseiller Sécurité Expert/Security Advisor Expert

    Intact Corporation Financière | 1935 des Cascades, Saint-Hyacinthe, QC J2S 8K9

    (T) 855.646.8228, x 86667 | (M) 450.223.9537

    sylvain.gilbert@intact.net | www.intactfc.com

     

    isits

    AVIS DE CONFIDENTIALITÉ - Les renseignements contenus dans le présent message sont confidentiels et s'adressent uniquement aux destinataires.  Si vous n'êtes pas le destinataire indiqué, veuillez svp en avertir l'expéditeur et le détruire sans le recopier ni le divulguer.  Toute divulgation, reproduction, diffusion ou autre utilisation de ce document non visé est strictement interdite.

    CONFIDENTIALITY NOTICE - The information contained in this message is confidential and is intended only for use of the addressee(s).  If you are not the intended recipient, please notify the sender and delete this message without copying or disclosing it.  Any disclosure, reproduction, distribution or other use of this document by a person not indicated as an addressee is strictly prohibited.

     



    ------Original Message------

    Hi Sylvain,

    The reason that the OAuth token is not checked on subsequent requests is because ISAM has created a session based on the Authorization header.  The token won't be revalidated until that session expires - either based on maximum time or inactivity timeout.  Set these values in the Reverse Proxy configuration to change the timeouts and force revaluation of token more frequently. Of course this will impact all sessions on the Reverse Proxy.

    Jon.

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


  • 4.  RE: OAuth token cache expiration with STS

    Posted 05/24/19 12:34 PM
    Yes, except session doesn't have to be maintained by cookie.  It can also be maintained based on the Authorization header so that cookies are not needed (REST clients don't always like cookies)

    Session can also be maintained by SSL/TLS session ID but that's another story...

    Jon.

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



  • 5.  RE: OAuth token cache expiration with STS

    Posted 05/24/19 12:31 PM
    To answer the trivia question, I think that a Bearer token is any token which can be presented with a request to obtain access.  An OAuth token has these properties and therefore is a Bearer token.

    That answer doesn't seem fully satisfying - Can anybody else do better?

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