reta commented on code in PR #2724:
URL: https://github.com/apache/cxf/pull/2724#discussion_r2519827881


##########
rt/rs/description-swagger-ui/src/main/java/org/apache/cxf/jaxrs/swagger/ui/SwaggerUiConfig.java:
##########
@@ -336,4 +339,17 @@ public void setTryItOutEnabled(Boolean tryItOutEnabled) {
         this.tryItOutEnabled = tryItOutEnabled;
         setQueryConfigEnabledIfNeeded();
     }
+
+    public SwaggerUiOAuth2Config getOAuthConfig() {
+        return oAuthConfig;
+    }
+
+    public void setOAuthConfig(SwaggerUiOAuth2Config oAuthConfig) {
+        this.oAuthConfig = oAuthConfig;
+    }
+
+    public SwaggerUiConfig oAuthConfig(SwaggerUiOAuth2Config oAuthConfig) {

Review Comment:
   ```suggestion
       public SwaggerUiConfig oAuth2Config(SwaggerUiOAuth2Config oAuth2Config) {
   ```



##########
rt/rs/description-swagger-ui/src/main/java/org/apache/cxf/jaxrs/swagger/ui/SwaggerUiConfig.java:
##########
@@ -66,6 +66,9 @@ public class SwaggerUiConfig {
     // Enables overriding configuration parameters via URL search params. If 
not explicitly set, it
     // will be automatically set to true when setter for any other field is 
called.
     private Boolean queryConfigEnabled;
+    // Controls the OAuth config. If present, the SwaggerUIBundle 
initialization will contain a call to initOAuth
+    // with the parameters contained here
+    private SwaggerUiOAuth2Config oAuthConfig;

Review Comment:
   ```suggestion
       private SwaggerUiOAuth2Config oAuth2Config;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to