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 33
33
import io .swagger .v3 .oas .models .parameters .RequestBody ;
34
34
import io .swagger .v3 .oas .models .responses .ApiResponse ;
35
35
import io .swagger .v3 .oas .models .responses .ApiResponses ;
36
+ import org .slf4j .Logger ;
37
+ import org .slf4j .LoggerFactory ;
36
38
import org .springdoc .core .customizers .OpenApiCustomiser ;
37
39
38
40
import org .springframework .boot .autoconfigure .condition .ConditionalOnBean ;
67
69
@ ConditionalOnProperty (name = SPRINGDOC_ENABLED , matchIfMissing = true )
68
70
public class SpringDocSecurityConfiguration {
69
71
72
+ private static final Logger LOGGER = LoggerFactory .getLogger (SpringDocSecurityConfiguration .class );
73
+
70
74
static {
71
75
getConfig ().addRequestWrapperToIgnore (Authentication .class )
72
76
.addResponseTypeToIgnore (Authentication .class )
@@ -142,6 +146,8 @@ OpenApiCustomiser springSecurityLoginEndpointCustomiser(ApplicationContext appli
142
146
requestMatcherField .setAccessible (false );
143
147
openAPI .getPaths ().addPathItem (loginPath , pathItem );
144
148
} catch (NoSuchFieldException | IllegalAccessException | ClassCastException ignored ) {
149
+ // Exception escaped
150
+ LOGGER .trace (ignored .getMessage ());
145
151
}
146
152
}
147
153
}
You can’t perform that action at this time.
0 commit comments