Skip to content

Commit

Permalink
chore: sync SG script wrt Gluu CE #8657
Browse files Browse the repository at this point in the history
Signed-off-by: jgomer2001 <bonustrack310@gmail.com>
  • Loading branch information
jgomer2001 committed Jun 5, 2024
1 parent 61ea9ac commit a021fce
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions jans-casa/extras/casa-external_super_gluu.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,10 @@ def init(self, customScript, configurationAttributes):
return False
self.AS_SSA = configurationAttributes.get("AS_SSA").getValue2()

# Upon client creation, this value is populated, after that this call will not go through in subsequent script restart
# Client registration should not happen here but in the standalone super gluu script
if StringHelper.isEmptyString(self.AS_CLIENT_ID):
clientRegistrationResponse = self.registerScanClient(self.AS_ENDPOINT, self.AS_ENDPOINT, self.AS_SSA, customScript)
if clientRegistrationResponse == None:
print "Super-Gluu. Failed to register Scan client!!!"
else:
self.AS_CLIENT_ID = clientRegistrationResponse['client_id']
self.AS_CLIENT_SECRET = clientRegistrationResponse['client_secret']
print "Super-Gluu. Scan client credentials missing"
return False

if StringHelper.isNotEmptyString(self.AS_CLIENT_ID) and StringHelper.isNotEmptyString(self.AS_CLIENT_SECRET):
self.enabledPushNotifications = self.initPushNotificationService(configurationAttributes)
Expand Down

0 comments on commit a021fce

Please sign in to comment.