DataPower

DataPower

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.

 View Only
  • 1.  Token cache in datapower when calling third party Auth Server PING

    Posted Tue April 14, 2026 08:49 AM

    Current Flow

    1.Datapower calls Ping to get Auth token

    2.Datapower add Auth header with ping token and sends request to company internal URL

    Issue:

    Datapower is getting token for every call.I want datapower to get new token only if token is expired.

    I am using XI52 



    ------------------------------
    Sai Thota
    ------------------------------


  • 2.  RE: Token cache in datapower when calling third party Auth Server PING

    Posted Tue April 14, 2026 09:22 AM

    Typically you can use Distributed variables for this.  



    ------------------------------
    Jeroen Willems
    Integration Architect - Managing Partner
    Integration Designers
    ------------------------------



  • 3.  RE: Token cache in datapower when calling third party Auth Server PING

    Posted Tue April 14, 2026 10:42 AM

    Thank you for replying.I don't see an option to create distributed variable in my appliance.Could you please share reference or sample on how to resolve this



    ------------------------------
    Sai Thota
    ------------------------------



  • 4.  RE: Token cache in datapower when calling third party Auth Server PING

    Posted Tue April 14, 2026 02:26 PM

    Sai,

    You're not going to be able to do this with distributed variables in your FW version, as it wasn't introduced until 10.6.  (I'm actually surprised the XI52 supports 10.5!)  I suspect you have a cluster?   If not, you can just use a document cache or AAA policy, but that does not replicate over a cluster.

    You could look into caching solutions like eXtreme Scale, REDIS (not easy), or, if you have a SQL DB around, you can use that.   Alternatively, standing up an API for this wouldn't be particularly difficult, though you'd need pretty good and fast replicas if losing a token is critically bad.



    ------------------------------
    Joseph Morgan
    CEO - Independent
    ------------------------------



  • 5.  RE: Token cache in datapower when calling third party Auth Server PING

    Posted Fri April 17, 2026 09:03 AM

    @Joseph Morgan indeed, didn't look at XI52 and version ;-).



    ------------------------------
    Jeroen Willems
    Integration Architect - Managing Partner
    Integration Designers
    ------------------------------