-
Notifications
You must be signed in to change notification settings - Fork 163
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
Sync Tenant Flags with API v2 #467
Conversation
settingsUpdateResponse.Flags.DisableClickjackProtectionHeaders.Should().BeTrue(); | ||
settingsUpdateResponse.Flags.EnableAPIsSection.Should().BeTrue(); | ||
settingsUpdateResponse.Flags.EnableClientConnections.Should().BeFalse(); | ||
settingsUpdateResponse.Flags.EnablePipeline2.Should().BeTrue(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously we could do a full object comparison, because a lot of properties where not included.
Now, this is not the case anymore as it might be that the values of certain flags are already set to true/false in the Database, while they are not part of the update call here. So the flags we are sent are not identical to the flags we are retrieving.
Example:
Database:
- Flag 1: true
- Flag 2: false
Update call:
- Set Flag 2 to true
- Pass Flag 1 as NULL to not update it
Response:
- Flag 1: true
- Flag 2: true
The PR syncs the TenantFlags class with the available flags on the API v2 based on https://auth0.com/docs/api/management/v2#!/Tenants/get_settings
Closes #465