Skip to content

Spring security is not configured properly #60

@edeati

Description

@edeati

The first time you hit RVF in a browser and you hit the /api endpoint you receive an error message:

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: 

The tab has to be closed and reopened to be able to see the swagger page.

This is caused by spring security misconfiguration. /api/swagger-ui.html, /api/swagger-resources/** and other swagger related endpoints need to be added to the non secure pages during spring security initialisation with permitAll(). Currently they are incorrectly added without the /api path in them.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions