Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-10002

Fix application keys formats validations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • System
    • None
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      There are some inconsistencies on the application keys formats validations:

      When the app auth type is "API Key (User key)":

      user_key:

      • The UI says:
      Only alphanumeric characters [0-9, a-z, A-Z], hyphen-minus , no spaces and 256 characters at most.

       

      When the app auth type is "App_ID and App_Key Pair" or "OpenID Connect":

      app_id:

      • The UI doesn't allow setting the App Id, but it can be done through the API endpoint:
      POST /admin/api/accounts/{account_id}/applications.xml

      app_key/client_key:

      • The UI says:
      Only alphanumeric characters [0-9, a-z, A-Z], hyphen-minus , between 5 and 256 characters long. No spaces allowed.

      This needs some rework: either we update all UI labels to match the backend validations, or we update backend validations to something that makes more sense. Or both. It doesn't make sense to allow spaces in app ids and app keys, IMO.

        1. ascii.jpg
          780 kB
          Joan Lledo
        2. image-2023-07-28-10-10-13-902.png
          22 kB
          Joan Lledo
        3. image-2023-07-28-10-09-06-599.png
          25 kB
          Joan Lledo

            Unassigned Unassigned
            rh-ee-jlledo Joan Lledo
            Matej Dujava Matej Dujava
            Daria Mayorova Daria Mayorova
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: