oauth1-rev1-2016-02-05.zipoauth2-rev1-2016-02-05.ziptestproxy-rev1-2016-02-05.zipWe are facing one issue with OAUTH in one of our current project in Telstra. Could you please help understanding the behaviour?
Little urgent – appreciate your help !!!
Case 1 :
An API proxy (named oauth1) to generate OAUTH2 access token client credential based. Has only OAUTH2 filter.
Another proxy named testProxy which validates the access token and do something.
Now to publish testProxy, I have created a Product named testProduct1 with only testProxy (without outh1 proxy) and a developer app named app1 registered to that product. When I call the OUATH endpoint (oauth1 proxy endpoint) with the client id & secret of app1 to generate the access token, it generates access token. Expected – no issue.
Case 2:
An API proxy (named oauth2) to generate OAUTH2 access token client credential based. Has 2 filters – 1. GetOAuthV1Info filter 2. OAUTH2 filter. (This is how it is has implemented somewhere, Not sure why !!)
Another proxy named testProxy which validates the access token and do something.
Now to publish testProxy, I have created a Product named testProduct2 with only testProxy and a developer app named app2 registered to that product. When I call the OUATH endpoint (oauth2 proxy endpoint) with the client id & secret of app2 to generate the access token, GetOAuthV1Info filter fails saying “OAuth Failure : Invalid API call as no apiproduct match found”. Now if I add, oauth2 proxy to the product, it works and generates the access token. Why so?
In general, what’s the standard practice – shall the OAUTH Proxy be included as part of the product explicitly (As case 2)? My understanding is OUATH proxy should be a treated as a generic proxy and should not be part of Product configuration as Case 1.
All the 3 proxies attached.