search cancel

CA API Management: OAuth Manager is slow to load

book

Article ID: 8699

calendar_today

Updated On:

Products

STARTER PACK-7 CA Rapid App Security CA API Gateway

Issue/Introduction

The OAuth manager (/oauth/manager) can be slow to load sometimes taking several minutes to render the page.

This applies to the login screen as well as all client and token management. While the pages will eventually load without any noticeable errors there are extreme delays.

Cause

When there are no other contributing factors, such as network latency, this problem typically stems from a failure to load the "jquery.min.js" Javascript.

This is loaded as part of each screen and if inaccessible will severely delay the load time.

 

Environment

API Management Gateway with the OAuth Toolkit installed and configured

Resolution

To resolve the issue we will need to load the jquery script using ONE of these methods:

1. Ensure https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js is accessible from your Gateway. This can be done with a simple curl command via SSH. If this is not accessible you will need to configure access from your network or edit the firewall rules to allow access

[[email protected]]# curl -v https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js

2. Host the file internally on a web server accessible to the Gateway. The variable named 'js' can be changed in the below policies and the script source set to your internally hosted file.

<Please see attached file for image>

style="" src="/servlet/servlet.FileDownload?file=0150c000004AKH9AAO" alt="policies.png" width="351" height="73">

<Please see attached file for image>

src="/servlet/servlet.FileDownload?file=0150c000004AKH7AAO" alt="js.png" width="1111" height="618">

 

3. Lastly, you can embed the jquery script directly in the variable

 

<Please see attached file for image>

style="" src="/servlet/servlet.FileDownload?file=0150c000004AKH8AAO" alt="min.png" width="893" height="503">

 

Additional Information

As of OTK 4.1 these changes can be made, however please be advised that in the future these policies will be read only and this changes will no be possible through a direct change. 

 

Attachments

1558700676326000008699_sktwi1f5rjvs16p5u.png get_app