Skip to content

feat: add otp_settings support for database connections - #1481

Merged
ankita10119 merged 2 commits into
masterfrom
DXCDT-1959
Sep 9, 2026
Merged

feat: add otp_settings support for database connections#1481
ankita10119 merged 2 commits into
masterfrom
DXCDT-1959

Conversation

@ankita10119

@ankita10119 ankita10119 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🔧 Changes

Adds support for otp_settings on database connections (strategy: auth0), allowing configuration of OTP length and expiry per delivery channel (email and phone).

otp_settings is accepted and returned by the Management API only on strategy: auth0 connections. The property passes through deploy-cli without any special import/export handling, partial updates (e.g. setting only email.otp_length) are supported natively by the API's PATCH endpoint.

Note: The auth0 SDK version bump to 6.4.0 is tracked in a separate PR. otp_settings is not yet explicitly typed in the SDK, but ConnectionOptionsAuth0 carries [key: string]: any so the Fern serializer passes it through at runtime, import and export work end-to-end today.

📚 References

🔬 Testing

  • Unit tests added for schema validation and export round-trip, all passing
  • E2E tested against a real tenant: export → import with updated otp_expiry values → re-export confirmed values persisted correctly

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@ankita10119
ankita10119 requested a review from a team as a code owner September 1, 2026 08:07
@ankita10119
ankita10119 marked this pull request as draft September 1, 2026 08:07
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.81%. Comparing base (4955e4b) to head (5e7263f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1481   +/-   ##
=======================================
  Coverage   80.81%   80.81%           
=======================================
  Files         163      163           
  Lines        7805     7805           
  Branches     1741     1741           
=======================================
  Hits         6308     6308           
  Misses        797      797           
  Partials      700      700           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ankita10119
ankita10119 marked this pull request as ready for review September 8, 2026 09:46
@ankita10119
ankita10119 merged commit 8855ec8 into master Sep 9, 2026
9 checks passed
@ankita10119
ankita10119 deleted the DXCDT-1959 branch September 9, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants