File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
springdoc-openapi-security/src/main/java/org/springdoc/security Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 3333import io .swagger .v3 .oas .models .parameters .RequestBody ;
3434import io .swagger .v3 .oas .models .responses .ApiResponse ;
3535import io .swagger .v3 .oas .models .responses .ApiResponses ;
36+ import org .slf4j .Logger ;
37+ import org .slf4j .LoggerFactory ;
3638import org .springdoc .core .customizers .OpenApiCustomiser ;
3739
3840import org .springframework .boot .autoconfigure .condition .ConditionalOnBean ;
6769@ ConditionalOnProperty (name = SPRINGDOC_ENABLED , matchIfMissing = true )
6870public class SpringDocSecurityConfiguration {
6971
72+ private static final Logger LOGGER = LoggerFactory .getLogger (SpringDocSecurityConfiguration .class );
73+
7074 static {
7175 getConfig ().addRequestWrapperToIgnore (Authentication .class )
7276 .addResponseTypeToIgnore (Authentication .class )
@@ -142,6 +146,8 @@ OpenApiCustomiser springSecurityLoginEndpointCustomiser(ApplicationContext appli
142146 requestMatcherField .setAccessible (false );
143147 openAPI .getPaths ().addPathItem (loginPath , pathItem );
144148 } catch (NoSuchFieldException | IllegalAccessException | ClassCastException ignored ) {
149+ // Exception escaped
150+ LOGGER .trace (ignored .getMessage ());
145151 }
146152 }
147153 }
You can’t perform that action at this time.
0 commit comments