Regeneration of client secret not refreshed on developer portal

Solution Verified - Updated -

Environment

  • 2.X On-Premises

Issue

  • Clicking on Regenerate button regenerates the Client Secret but does not refresh the value shown on the developer portal

Resolution

On the developer portal, when Regenerate button for an application on the Dashboard > APPLICATIONS > Product screen is clicked, the key is regenerated and the value shown on screen is refreshed. The refreshing is done based on the following jQuery response returned when the Regenerate key is clicked

$("#oauth_secret, #application_keys .key code").html("{new-key-value}")

Developer Portal customization related to layouts on 3scale built-in pages can cause the jQuery selector that selects the key to stop working.

The solution is to fix the the developer portal customization so jQuery selector does not break. Customizing Developer Portal has some guidelines on making changes to built-in 3scale pages.

Root Cause

Developer customization related to layout on 3scale built-in pages can cause the jQuery code in response to stop working.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments