Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring security is not configured properly #60

Open
edeati opened this issue Mar 14, 2023 · 1 comment
Open

Spring security is not configured properly #60

edeati opened this issue Mar 14, 2023 · 1 comment
Assignees

Comments

@edeati
Copy link

edeati commented Mar 14, 2023

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.

@CoderMChu CoderMChu self-assigned this Aug 5, 2024
@CoderMChu
Copy link
Member

@edeati I can't seem to reproduce this issue locally based on recent releases. Is this still an issue for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants