Forum Discussion

shahbaz2k8's avatar
New Member
2 years ago

swagger 3 open api 3 authorize problem

I am developing a spring boot application, my spring boot version is 3.1.0. with the latest spring security enabled with jwt authentication. I have configured the my springboot application for swagger ui by using below dependency and configuration. Every api is working in postman. Normal api is working but jwt enabled endpoints is not working giving error  full authentication is required. I have added bearer token in swagger ui which i got from signin endpoint. I think there is problem with swagger configuration through which swagger is not adding bearer as a header. I request to swagger teamor any friend to share me the configuration of swagger open api 3 which can work with spring boot 3 and can enable jwt authorization in swagger ui. I am able to find the configuration of swagger 2 but it is not compatable with spring boot 3.



No RepliesBe the first to reply