Skip to content
Advertisement

c.e.security.jwt.AuthEntryPointJwt : Unauthorized error: Full authentication is required to access this resource

application.properties

JavaScript

config

JavaScript

log

JavaScript

enter image description here

Go to URL http://localhost:8088/swagger-ui/index.html

enter image description here

How to fix it?

Advertisement

Answer

Your configuration is mostly correct, your swagger page loads properly except that when it tries to retrieve the swagger config and api-docs via its ajax call it fails to do so because it’s under security’s control.

Look at your dev tools and watch the network traffic; you’ll probably see a couple of requests like this:

/v3/api-docs or /v3/api-docs/swagger-config

So, adding /v3/api-docs/** to your included permitAll() should do the trick.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement