Swagger + Atlassian spring boot connect

Hi,

I am trying to integrate Swagger as a tool for documenting the endpoints of our Spring application which uses Atlassian Spring Boot Connect library for authentication. As a result, when I try to open the report using the documented url http://localhost:8080/swagger-ui.html I get 401 Unauthorized since Atlassian Connect Spring Boot library is trying to perform the default authentication as if normal behaviour.

  • Has anyone managed to successfully integrate Swagger to their Spring Application?

  • Is it possible to disable authentication for some cases / endpoints?

Atlassian Connect Spring Boot version is 2.2.1

Thank you in advance.

Kind Regards,
Philip

Hi @HenryBurkhardt,

per the library README, you can use the configuration property atlassian.connect.require-auth-exclude-paths to expose that endpoint.

2 Likes