Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new methnod to fido2 extension to allow modify json #5686

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void applicationInitialized(@Observes @Initialized(ApplicationScoped.clas
.initPythonInterpreter(configurationFactory.getBaseConfiguration().getString("pythonModulesDir", null));

// Initialize script manager
List<CustomScriptType> supportedCustomScriptTypes = Lists.newArrayList(CustomScriptType.FIDO2_INTERCEPTION);
List<CustomScriptType> supportedCustomScriptTypes = Lists.newArrayList(CustomScriptType.FIDO2_EXTENSION);

// Start timer
initSchedulerService();
Expand Down