IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  API Gateway Identify a user when they call an API

    Posted 03/27/21 11:18 AM

    Hello

    I have an API configured with OAuth to authorize access based on token provided and this works. However, I would also like to identify which user called the API. Is this possible? I have API Gateway version 10.3.

    Regards,

    Yunus Aswat.


    #webMethods
    #API-Gateway
    #API-Management


  • 2.  RE: API Gateway Identify a user when they call an API

    Posted 03/29/21 04:32 AM

    Hi Yunus,
    Can you please elaborate a bit more on the use case? Are you looking for passing the user details to API along with OAuth?

    Regards.


    #webMethods
    #API-Management
    #API-Gateway


  • 3.  RE: API Gateway Identify a user when they call an API

    Posted 03/29/21 04:56 AM

    Hello Prabaa,

    Yes I do want the user details passed and authenticated in addition to OAuth (OR is there a way to relate the OAuth token back to the user who obtained it?). I want to log using the “Log Invocation” policy so that I can aggregate and report on who accessed the API.

    Regards,

    Yunus Aswat.


    #API-Management
    #API-Gateway
    #webMethods


  • 4.  RE: API Gateway Identify a user when they call an API

    Posted 03/30/21 04:42 AM

    Hi Yunus,
    You can use Basic Auth along with OAuth but you have to create a custom policy in Identify and Access to do this.

    Hope it helps.

    Regards.


    #API-Gateway
    #API-Management
    #webMethods


  • 5.  RE: API Gateway Identify a user when they call an API

    Posted 03/31/21 03:56 AM

    Hello Praba,

    Thank you for the information.

    I now have the challenge of introspecting the MessageContext to pull out the OAuth token. There appears to be very little documentation available about MessageContext. Where can I find documentation about this? Also what jars do I need?

    Regards,

    Yunus Aswat.


    #API-Management
    #API-Gateway
    #webMethods


  • 6.  RE: API Gateway Identify a user when they call an API

    Posted 04/06/21 01:53 AM

    Hi Yunus,
    I believe you are trying to use the MessageContext variable. Please use the below documentation.

    The API for Context Variables

    Regards.


    #API-Gateway
    #API-Management
    #webMethods