Skip to content
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
2 changes: 2 additions & 0 deletions src/tools/auth0/handlers/customDomains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default class CustomDomainsHadnler extends DefaultAPIHandler {
'certificate',
'created_at',
'updated_at',
'is_default',
],
stripUpdateFields: [
'status',
Expand All @@ -74,6 +75,7 @@ export default class CustomDomainsHadnler extends DefaultAPIHandler {
'certificate',
'created_at',
'updated_at',
'is_default',
],
});
}
Expand Down
2 changes: 2 additions & 0 deletions test/tools/auth0/handlers/customDomains.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ describe('#customDomains handler', () => {
primary: true, // should be stripped
verification: { method: 'cname' }, // should be stripped
verification_method: 'cname', // should be stripped
is_default: true, // should be stripped
tls_policy: 'recommended', // should NOT be stripped
domain_metadata: { key: 'value' }, // should NOT be stripped
};
Expand Down Expand Up @@ -405,6 +406,7 @@ describe('#customDomains handler', () => {
expect(updateCallData).to.not.have.property('primary');
expect(updateCallData).to.not.have.property('verification');
expect(updateCallData).to.not.have.property('verification_method');
expect(updateCallData).to.not.have.property('is_default');

// Verify that allowed fields are present
expect(updateCallData).to.have.property('tls_policy', 'recommended');
Expand Down