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
Expand all | Collapse all

WebSeal bearer oauth authentication

  • 1.  WebSeal bearer oauth authentication

    Posted Wed July 24, 2024 05:59 AM
    Edited by Sascha W Wed July 24, 2024 06:00 AM

    Hi,

    i'm trying to protect an API on webseal with OAUTH.

    It only works OOTB with ROPC tokens (probably because they can be linked to a stssu user).

    Reading documentation i can't find a complete guide to enable bearer tokens (from client_credential flow specifically) to work.

    I believe it need an STS chains and mapping rule to be configure but i can't find it.

    I know it can be done with JWTs  (OAuth: JWT as an Access Token) but in this scenario i need just bearers.

    Documentation says nothing specific or technical on how to achieve it (OAuth Authentication)

    Since my environment is upgraded from very old versions maybe this feature is now enable by default on newer releases but need to be manually configured on older ones?

    Thanks to anyone who will help.

    Sascha



  • 2.  RE: WebSeal bearer oauth authentication

    Posted Wed July 24, 2024 04:36 PM

    Sacha,

     

    You can configure WebSEAL to either use a WS-Trust chain within the federation component and have WebSEAL reference this, or more ideally you can configure WebSEAL to introspect the token by calling out directly to the OAuth provider.  I would go with the later.  The documentation on configuring the later is available at: https://www.ibm.com/docs/en/sva/10.0.8?topic=authentication-oauth-introspection.

     

    What did you mean when you said that the capability needed to be manually configured since you upgraded from an older version?

     

    I hope that this helps.

     

    Scott A. Exton
    Senior Software Engineer
    Chief Programmer - IBM Security Verify Access

    IBM Master Inventor

    cid4122760825*<a href=image002.png@01D85F83.85516C50">

     

     

     






  • 3.  RE: WebSeal bearer oauth authentication

    Posted 20 days ago

    Hi Scott,

    I wonder what the difference between outh-auth = https and oauth-introspection-auth = https may be. Basically - for my understanding - both shall work with a bearer Token.

    thx,

    Jens



    ------------------------------
    Jens Petersen
    ------------------------------



  • 4.  RE: WebSeal bearer oauth authentication

    Posted 20 days ago

    Hey Jens, 

    At a high level - The OAUTH-AUTH works through our WS-TRUST STS callout and has been around since before "Introspection", OAuth introspection is based on the "standard" introspection request. 

    OAuth Auth will work nicely with our standard OAuth provider in AAC/Fed, While the introspection can work with any introspection standard endpoint... 

    But I believe in principal they are offering the same end feature. 

    Hope that helps? 



    ------------------------------
    Philip Nye
    Senior Product Manager - IBM Verify
    ------------------------------



  • 5.  RE: WebSeal bearer oauth authentication

    Posted 20 days ago

    Hi Phil,

    thanks, basically as I expected. How about oauth-eas and than at least there is the API protection working with a POP redirecting to the AAC I think. Guess thats basically the same as well, isn't it?

    I'm just running into a silly situation where the OAuth flows seem to work (following the rt-Tracing) but weasel still presents the login form. So I was testing with all the different methods, but still no success. I know it's actually working straight forward. Any hint?

    Thanks,

    Jens



    ------------------------------
    Jens Petersen
    ------------------------------



  • 6.  RE: WebSeal bearer oauth authentication

    Posted Thu July 25, 2024 02:13 AM
    Edited by Philip Nye Thu July 25, 2024 02:13 AM

    At a high level - there is no difference to how the reverse proxy perceives the OAuth AT whether it was an ROPC or CC flow. 

    the RP will call the OAuth Mapping rules to validate the tokens, and it will return a username associated. 
    Usually with ROPC - you'll get a username - and it will then build the credential based on that username from LDAP. 
    For CC - I *think* you'll get a username that is the client ID. Which WON'T be in LDAP. 

    So you can do one of two things,
    1) you can define a user that is the ClientID, and you might find thats sufficient to allow you to proceed,
    2) You can configure OAuth for 'external' users - or users that aren't in LDAP. 
    https://community.ibm.com/community/user/security/discussion/oauth-for-external-users 
    is an indepth conversation on this topic. 

    Where you might want to apply logic to only do this for a client_credentials generated credential. 




    ------------------------------
    Philip Nye
    IBM
    Gold Coast
    ------------------------------



  • 7.  RE: WebSeal bearer oauth authentication

    Posted Thu July 25, 2024 04:24 AM

    Thank you Scott and Philip for your replies.

    In my scenario i need cc tokens to work and to segment each junction to each client.

    ClientA only access to JunctionA

    ClientB only access to JunctionB

    The easiest way to do it is by creating a user to match the client and give that user ACL access to JunctionA.I can confirm it works.

    Probably it is possible via external users and mapping rules but i seems complicated. Might be interesting to brainstorm how to do it.

    Thanks for your precious support both.

    S.




  • 8.  RE: WebSeal bearer oauth authentication

    Posted Thu July 25, 2024 08:34 AM
    Edited by Philip Nye Thu July 25, 2024 08:35 AM

    You might also want to  look at the API access control capabilities, where you can configure introspection at a path level:



  • 9.  RE: WebSeal bearer oauth authentication

    Posted Thu July 25, 2024 09:47 AM

    Thank you, theres a cookbook or some useful resource for the API Access Control part?




  • 10.  RE: WebSeal bearer oauth authentication

    Posted Thu July 25, 2024 09:02 PM

    I would start here - and have a play. 

    https://www.ibm.com/docs/en/sva/10.0.8?topic=control-overview-api-access



    ------------------------------
    Philip Nye
    IBM
    Gold Coast
    ------------------------------