Setting up an API that internally calls Graphman on same gateway
search cancel

Setting up an API that internally calls Graphman on same gateway

book

Article ID: 404375

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

When we try to call Graphman api  on a gateway from a a api on the same gateway it is failing , while calling it from postman it works fine

Resolution

When you do a internal routing from the same gateway it will call the Graphman api using the gateway's default private key . 

In this case the Graphman api will try to use this key to authenticate against the idp which is failing .

It should use the basic authentication header from the original request .

To do this select the routing assertion in the policy , right click and select "select private key"  use the option to not include the private key . 

Now it should use the authentication header from the original request.

The Other option is to use a custom private key in the request and assign this key to a  to a user in the default idp.