Layer7 API Management

 View Only
  • 1.  API Key Validation error in Gateway due to duplicate Application in Portal

    Posted Jun 22, 2020 06:36 PM
    Hello Everyone,


    We recently faced an issue where an application was created in the Developer portal but the generated APIKey and Secret didn't work while accessing the API mapped to the corresponding application.

    My colleague did some investigation and found that there were 2 Application with same name. He stated the below

    While the Portal lets you create an application with the same characters, as long as there is a difference in capital vs lowercase. But when the API is called, the key validation on the Gateway cannot see the lowercase vs. capital differences, and treats these applications as the same thing.
     
    The result is an APIKey failure, although the application/api assignment is correct. The gateway simply sees these two applications as the same thing, and tries to match the application with the apikey, and due to the application already existing with the same characters, the database selects the initial record, and causes failure.


    Below are my questions
    Has anyone come across such issue?
    What is the best way to handle such scenario?
    Is there any settings to make the portal case-insensitive for Application registration?



  • 2.  RE: API Key Validation error in Gateway due to duplicate Application in Portal
    Best Answer

    Broadcom Employee
    Posted Jun 25, 2020 10:59 AM
    Hello Adash,

    This comes down to a database issue and you should set your database to force case sensitivity if it is not doing so.  As we allow you to use several databases with the use of the API Developer portal you may want to review your DB docs on making sure it is set.  If you are seeing this as an issue you may want to also make sure your gateways DB is also set this way.

    ------------------------------
    Support Engineer
    Broadcom
    ------------------------------



  • 3.  RE: API Key Validation error in Gateway due to duplicate Application in Portal

    Posted Jun 25, 2020 11:15 AM
    Many thanks @Matthew Hogan​.

    We are using postgres db that comes along with the portal 4.4.

    Do you happen to know if there are any documented steps to enforce the case insensitivity for postgres?

    Thanks,
    Adarsh