<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00006iTuPfSAKOkta Classic EngineIntegrationsAnswered2020-12-04T22:45:55.000Z2019-10-03T15:56:19.000Z2020-07-18T17:56:30.000Z

JohnK.83948 (Customer) asked a question.

Swagger UI Configuration with OKTA

I am new to OKTA. After securing my Spring/Java REST services using OKTA, I can no longer get to my Swagger UI page at http://localhost:{port}/swagger-ui.html*/ . I get a popup with the following text:

 

Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually:

 

Ideally I'd like to have the Swagger UI page only accessible to users in a developers group. But first things first. How can I get the page to display? All worked fine previously(before enabling security with OKTA).

 

Any assistance is appreciated.


This question is closed.
Loading
Swagger UI Configuration with OKTA