Admin Swagger UI only supports port 8443?

Document ID : KB000098880
Last Modified Date : 06/07/2018
Show Technical Document Details
Issue:
Problem
Have the CA SSO Admin UI installed on port 18443.
When attempting to access the  Admin Swagger UI as https:...:18843/ca/api/sso/services/v1/api-doc/?url=CA.SM.json.
The Authenticate Button on the right upper corner shows login screen where it indicated Basic Authentication works only over 'HTTPS' port 8443
Resolution:
-After the successful installation and configuration of the Admin UI, there is a collection of files that are deployed under a directory similar to the following: C:\Program Files\CA\siteminder\adminui\standalone\deployments\iam_siteminder.ear\api-doc.war
-The reason why the Swagger UI does not work when the AdminUI is configured to use port other than 8443, is that the index.html file under this subdirectory hard coded the port number.
-The initial file contains the following: window.location = "https://" + window.location.hostname + ":8443" + window.location.pathname + window.location.search;
-As a workaround, as long as this line is replaced with window.location = "https://" + window.location.hostname + ":" + window.location.port + window.location.pathname +  window.location.search;
Then the Swagger UI will just work.