Skip to content

Commit

Permalink
feat: add new methnod to fido2 extension to allow modify json (#5686)
Browse files Browse the repository at this point in the history
response #5680

Co-authored-by: Yuriy Movchan <Yuriy.Movchan@gmail.com>
Signed-off-by: Mustafa Baser <mbaser@mail.com>
  • Loading branch information
2 people authored and devrimyatar committed Dec 30, 2023
1 parent 08ad908 commit dbea261
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,15 @@ def init(self, customScript, configurationAttributes):
if StringHelper.isEmptyString(self.AS_CLIENT_ID):
clientRegistrationResponse = self.registerScanClient(self.AS_ENDPOINT, self.AS_ENDPOINT, self.AS_SSA, customScript)
if clientRegistrationResponse == None:
return False

self.AS_CLIENT_ID = clientRegistrationResponse['client_id']
self.AS_CLIENT_SECRET = clientRegistrationResponse['client_secret']
print "Super-Gluu. Failed to register Scan client!!!"
else:
self.AS_CLIENT_ID = clientRegistrationResponse['client_id']
self.AS_CLIENT_SECRET = clientRegistrationResponse['client_secret']

self.enabledPushNotifications = self.initPushNotificationService(configurationAttributes)
if StringHelper.isNotEmptyString(self.AS_CLIENT_ID) and StringHelper.isNotEmptyString(self.self.AS_CLIENT_SECRET):
self.enabledPushNotifications = self.initPushNotificationService(configurationAttributes)
else:
self.enabledPushNotifications = False

print "Super-Gluu. Initialized successfully. oneStep: '%s', twoStep: '%s', pushNotifications: '%s', customLabel: '%s'" % (self.oneStep, self.twoStep, self.enabledPushNotifications, self.customLabel)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ public void applicationInitialized(@Observes @Initialized(ApplicationScoped.clas
supportedCustomScriptTypes.remove(CustomScriptType.SCIM);
supportedCustomScriptTypes.remove(CustomScriptType.IDP);
supportedCustomScriptTypes.remove(CustomScriptType.CONFIG_API);
supportedCustomScriptTypes.remove(CustomScriptType.FIDO2_EXTENSION);

statService.init();

Expand Down

0 comments on commit dbea261

Please sign in to comment.