smolnar82 commented on code in PR #1208:
URL: https://github.com/apache/knox/pull/1208#discussion_r3131757203


##########
gateway-service-knoxtoken/src/main/java/org/apache/knox/gateway/service/knoxtoken/ClientCredentialsResource.java:
##########
@@ -35,11 +40,21 @@
 @Path(ClientCredentialsResource.RESOURCE_PATH)
 @Singleton
 public class ClientCredentialsResource extends PasscodeTokenResourceBase {
-    private static final String TYPE = "type";
     public static final String RESOURCE_PATH = 
"clientid/api/v1/oauth/credentials";
     public static final String CLIENT_ID = "client_id";
     public static final String CLIENT_SECRET = "client_secret";
     private static final String PREFIX = "clientid.";
+    private static final String THIRD_PARTY_APP = "thirdPartyApp";
+
+    private boolean thirdPartyApp;
+
+    @Override
+    @PostConstruct
+    public void init() throws AliasServiceException, 
ServiceLifecycleException, KeyLengthException, ServletException {
+        super.init();
+        final String configuredThirdPartyApp = 
context.getInitParameter(THIRD_PARTY_APP);
+        thirdPartyApp = configuredThirdPartyApp == null || 
Boolean.parseBoolean(configuredThirdPartyApp);

Review Comment:
   Yes, the intention is to default to `true` here. 
   I'll implement a little change to make it easier to read.



-- 
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