File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
swagger-meta/src/main/java/com/networknt/swagger
swagger-security/src/main/java/com/networknt/security Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ public class SwaggerOperation {
35
35
private final Path pathObject ;
36
36
private final HttpMethod method ;
37
37
private final Operation operation ;
38
- private String endpoint ;
39
- private String clientId ;
40
38
41
39
public SwaggerOperation (final NormalisedPath pathString , final Path pathObject ,
42
40
final HttpMethod method , final Operation operation ) {
@@ -75,19 +73,4 @@ public Operation getOperation() {
75
73
return operation ;
76
74
}
77
75
78
- public String getEndpoint () {
79
- return endpoint ;
80
- }
81
-
82
- public void setEndpoint (String endpoint ) {
83
- this .endpoint = endpoint ;
84
- }
85
-
86
- public String getClientId () {
87
- return clientId ;
88
- }
89
-
90
- public void setClientId (String clientId ) {
91
- this .clientId = clientId ;
92
- }
93
76
}
Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ public void handleRequest(final HttpServerExchange exchange) throws Exception {
83
83
// endpoint and swaggerOperation available. This handler will enrich the auditInfo.
84
84
if (auditInfo == null ) {
85
85
auditInfo = new HashMap <>();
86
- auditInfo .put (Constants .CLIENT_ID , claims .getStringClaimValue (Constants .CLIENT_ID ));
87
- auditInfo .put (Constants .USER_ID , claims .getStringClaimValue (Constants .USER_ID ));
88
86
exchange .putAttachment (AuditHandler .AUDIT_INFO , auditInfo );
89
87
}
88
+ auditInfo .put (Constants .CLIENT_ID , claims .getStringClaimValue (Constants .CLIENT_ID ));
89
+ auditInfo .put (Constants .USER_ID , claims .getStringClaimValue (Constants .USER_ID ));
90
90
if (config != null && (Boolean )config .get (ENABLE_VERIFY_SCOPE ) && SwaggerHelper .swagger != null ) {
91
91
Operation operation = null ;
92
92
SwaggerOperation swaggerOperation = (SwaggerOperation )auditInfo .get (Constants .SWAGGER_OPERATION );
You can’t perform that action at this time.
0 commit comments