Layer7 API Management

 View Only
  • 1.  Any Documentation or Sample how to use API Key in the Portal

    Posted Nov 22, 2019 02:46 PM
    We can publish an API in the portal and there is a sample Standard Policy Template Fragment - API Key. Tried to create an app and it seems it will generate a pair of API Key and Secret under OAuth , e.g. 

    API Key (Client ID): l7cc9ffcd670c04fb5b0becf18dd5f1cdd
    Shared Secret (Client Secret): 2e59f012d2ed4b92bf7d1628f74be44c

    Not sure why we need to provide callback / redirect URL(s) and Scope info 

    But the issue is that when I using a REST client to call the API, it always failed as "Invalid API Key" even we clearly put in into the header as apiKey.

    Any documentation and sample how to use API key when an API is published by the Portal.

    Any simple step by step guide? 

    Thanks in advance.


  • 2.  RE: Any Documentation or Sample how to use API Key in the Portal
    Best Answer

    Broadcom Employee
    Posted Nov 24, 2019 07:42 PM
    Dear Louie,
    How do you send the test request, by curl? by postman?
    at the begging of your gateway policy, you can add audit detail for following context variables,
    all headers:
    ${request.http.allheadervalues}

    header apikey:
    ${request.http.header.apikey}

    and see if the header pass to the gateway properly.

    Regards,
    Mark


  • 3.  RE: Any Documentation or Sample how to use API Key in the Portal

    Posted Nov 28, 2019 08:48 AM
    Thanks.

    ------------------------------
    Enterprise Architect
    TwoCoins.ca Inc.
    ------------------------------