Add LockMembershipsToSAML support to Application Settings
Overview
The lock_memberships_to_saml attribute was missing from both the Settings and UpdateSettingsOptions structs, leaving users unable to read or update this setting through the client. This MR adds the missing field and the corresponding tests to ensure correct behavior.
Changes
settings.go
- Added
LockMembershipsToSAMLto theSettingsstruct - Added
LockMembershipsToSAMLto theUpdateSettingsOptionsstruct - Fixed
urltag that was incorrectly added toLockMembershipsToSAMLin theSettingsstruct — response structs usejsontags only
settings_test.go
- Added
TestGetSettings_LockMembershipsToSAMLto verify the field is correctly read from the API response - Added
TestUpdateSettings_LockMembershipsToSAMLto verify the field is correctly sent in the request body