diff --git a/jans-ce-setup/openbanking/static/extension/client_registration/Registration.py b/jans-ce-setup/openbanking/static/extension/client_registration/Registration.py index 5bdfa95a7ea..6f1ecae3fcb 100644 --- a/jans-ce-setup/openbanking/static/extension/client_registration/Registration.py +++ b/jans-ce-setup/openbanking/static/extension/client_registration/Registration.py @@ -411,4 +411,19 @@ def getCN_of_AS(self ) : print "Client Registration. Failed to get CN of AS from the transport keystore. Exception: ", sys.exc_info()[1] return None + # responseAsJsonObject - is org.json.JSONObject, you can use any method to manipulate json + # context is reference of io.jans.as.server.model.common.ExecutionContext + def modifyPutResponse(self, responseAsJsonObject, executionContext): + return False + + # responseAsJsonObject - is org.json.JSONObject, you can use any method to manipulate json + # context is reference of io.jans.as.server.model.common.ExecutionContext + def modifyReadResponse(self, responseAsJsonObject, executionContext): + return False + + # responseAsJsonObject - is org.json.JSONObject, you can use any method to manipulate json + # context is reference of io.jans.as.server.model.common.ExecutionContext + def modifyPostResponse(self, responseAsJsonObject, executionContext): + return False + \ No newline at end of file diff --git a/jans-ce-setup/static/extension/client_registration/Casa.py b/jans-ce-setup/static/extension/client_registration/Casa.py index eae176003ad..f12f479e9f6 100644 --- a/jans-ce-setup/static/extension/client_registration/Casa.py +++ b/jans-ce-setup/static/extension/client_registration/Casa.py @@ -118,3 +118,18 @@ def prepareClientRedirectUris(self, configurationAttributes): i = i + 1 return clientRedirectUrisSet + + # responseAsJsonObject - is org.json.JSONObject, you can use any method to manipulate json + # context is reference of io.jans.as.server.model.common.ExecutionContext + def modifyPutResponse(self, responseAsJsonObject, executionContext): + return False + + # responseAsJsonObject - is org.json.JSONObject, you can use any method to manipulate json + # context is reference of io.jans.as.server.model.common.ExecutionContext + def modifyReadResponse(self, responseAsJsonObject, executionContext): + return False + + # responseAsJsonObject - is org.json.JSONObject, you can use any method to manipulate json + # context is reference of io.jans.as.server.model.common.ExecutionContext + def modifyPostResponse(self, responseAsJsonObject, executionContext): + return False diff --git a/jans-ce-setup/static/extension/client_registration/SampleScript.py b/jans-ce-setup/static/extension/client_registration/SampleScript.py index 5a02691aec8..c2cfd96d77a 100644 --- a/jans-ce-setup/static/extension/client_registration/SampleScript.py +++ b/jans-ce-setup/static/extension/client_registration/SampleScript.py @@ -109,3 +109,18 @@ def getSoftwareStatementJwks(self, context): # context refers to io.jans.as.server.service.external.context.DynamicClientRegistrationContext - see https://github.com/JanssenProject/jans-auth-server/blob/e083818272ac48813eca8525e94f7bd73a7a9f1b/server/src/main/java/io/jans/as/server/service/external/context/DynamicClientRegistrationContext.java#L24 def isCertValidForClient(self, cert, context): return False + + # responseAsJsonObject - is org.json.JSONObject, you can use any method to manipulate json + # context is reference of io.jans.as.server.model.common.ExecutionContext + def modifyPutResponse(self, responseAsJsonObject, executionContext): + return False + + # responseAsJsonObject - is org.json.JSONObject, you can use any method to manipulate json + # context is reference of io.jans.as.server.model.common.ExecutionContext + def modifyReadResponse(self, responseAsJsonObject, executionContext): + return False + + # responseAsJsonObject - is org.json.JSONObject, you can use any method to manipulate json + # context is reference of io.jans.as.server.model.common.ExecutionContext + def modifyPostResponse(self, responseAsJsonObject, executionContext): + return False