Hide Authentication methods in Api Explorer

Document ID : KB000010585
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

How to remove authentications methods on Api Explorer

Instructions:

You can modify the options available in API Explorer Authentication by editing the following file: 

/SYSTEM/conf/sitebuilder/packages/layer7/modules/APIExplorer/xsl/display.xsl 

Comment out the options that are not necessary. In this case: 

<option value="http-basic">HTTP Basic</option> 
<option value="oauth">OAuth 1.0</option> 
<option value="oauth2">OAuth 2.0</option> 

And comment them out as shown below: 

<!-- <option value="http-basic">HTTP Basic</option> --> 
<!-- <option value="oauth">OAuth 1.0</option> --> 
<!-- <option value="oauth2">OAuth 2.0</option> --> 

Then publish the changes to that file, and you'll see the changes take effect after you refresh the api explorer page. The changes above effectively hide HTTP Basic, OAuth 1.0, and OAuth 2.0, but leave the API Key still intact.