Hello,
I would like to get your help regarding the correct implementation about this set-up:
Description:
1- Our APIC API gateway will act as proxy for some partner APIs : the company consumers must retrieve a native Oauth access token to get access to it (this part is OK)
2- Then the APIC API gateway must invoke as target-URL for the Partner API which is protected by an external (from APIc) partner Oauth provider. (this part is NOT OK)
Help needed :
How been able to retrieve an Oauth 2.0 Client access token for our API Gateway from the partner Oauth Provider using the ClientID/ClientSecret and token URL they provide to us ?
Is there any IBM supported lib or gateway script we could use to retrieve a client oauth 2.0 access token at runtime ?
We are looking for a simple lib or gateway script where we could just configure ClientID/ClientSecret & token URL of the remote Oauth Provider to be able to get an access token to be used when calling the target-URL.
We are also wondering if the refresh token or access token TTL could also be directly managed by such lib or gateway script.
We had think this use case is a standard one but we do not find any post or article dealing with such case, this make us in doubt....
If it is a "bad idea" please provide some insights : why ? How such a goal could be achieved form APIc API gateway ?
Solution we tried :
- Configure the partner Oauth provider as "APIc 3rd party provider": the communications is working but the internal consumers have to identify themselves to the partner Oauth provider and this is something we would like to avoid.
Thanks in advance for the time you will spend to understand our issue and try to help us.
NB: I'm sorry I am not fluent in english so I add a diagram to help to understand our need, in case my description is not clear enough
------------------------------
Icham B.
------------------------------