IBM Security Verify

 View Only
  • 1.  WebSeal bearer oauth authentication

    Posted 3 days ago
    Edited by Sascha W 3 days ago

    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 2 days ago

    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 2 days ago
    Edited by Philip Nye 2 days ago

    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
    ------------------------------



  • 4.  RE: WebSeal bearer oauth authentication

    Posted 2 days ago

    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.




  • 5.  RE: WebSeal bearer oauth authentication

    Posted 2 days ago
    Edited by Philip Nye 2 days ago

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



  • 6.  RE: WebSeal bearer oauth authentication

    Posted 2 days ago

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




  • 7.  RE: WebSeal bearer oauth authentication

    Posted 2 days ago

    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
    ------------------------------