Skip to content

mgmt: Adds missing fields in Create/Update connections#929

Merged
kailash-b merged 1 commit intomasterfrom
feat/SDK-7898
Mar 4, 2026
Merged

mgmt: Adds missing fields in Create/Update connections#929
kailash-b merged 1 commit intomasterfrom
feat/SDK-7898

Conversation

@kailash-b
Copy link
Copy Markdown
Contributor

Changes

Adds missing fields to the Create and Update connection models to align with the Management API spec.

New models:

  • ConnectionAuthenticationPurpose – configures the purpose of a connection for authentication during login (active flag).
  • ConnectionConnectedAccountsPurpose – configures the purpose of a connection for connected accounts and Token Vault (active, cross_app_access).
  • ConnectionOptionsFederatedConnectionsAccessTokens – enables refresh tokens and access tokens collection for federated connections (active).

Extended existing models:

  • ConnectionBase – added Authentication (ConnectionAuthenticationPurpose) and ConnectedAccounts (ConnectionConnectedAccountsPurpose) properties.
  • ConnectionOptions – added FederatedConnectionsAccessTokens (ConnectionOptionsFederatedConnectionsAccessTokens) property. Fixed an incorrect <inheritdoc> reference on GatewayAuthentication.
  • ConnectionOptionsAttributeIdentifier – added DefaultMethod property backed by the new ConnectionOptionsAttributeDefaultMethod enum (password, email_otp).
  • ConnectionOptionsPasswordAuthenticationMethod – added ApiBehavior (required | optional) and SignupBehavior (allow | block) properties backed by new enums.
  • ConnectionOptionsEmailAttribute – added Unique boolean property.
  • Added ConnectionOptionsEmailOtpAuthenticationMethod and ConnectionOptionsPhoneOtpAuthenticationMethod classes.

References

Fixes #924

Testing

Integration tests in ConnectionTests.cs were updated to exercise the newly added fields:

  • ConnectionOptionsEmailAttribute.Unique is set to true in the test fixture.
  • ConnectionOptionsPasswordAuthenticationMethod.ApiBehavior and SignupBehavior are set to Required and Allow respectively.

Checklist

  • All new/changed/fixed functionality is tested
  • All tests pass locally
  • The changelog has been updated (if applicable)

@kailash-b kailash-b requested a review from a team as a code owner March 3, 2026 18:11
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 3, 2026

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.37%. Comparing base (32b8f91) to head (87429bd).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
.../Connections/ConnectionConnectedAccountsPurpose.cs 50.00% 1 Missing ⚠️
...nnectionOptionsFederatedConnectionsAccessTokens.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #929      +/-   ##
==========================================
+ Coverage   79.36%   79.37%   +0.01%     
==========================================
  Files         458      461       +3     
  Lines        5960     5973      +13     
  Branches      283      283              
==========================================
+ Hits         4730     4741      +11     
- Misses       1137     1139       +2     
  Partials       93       93              
Flag Coverage Δ
authIntTests 30.72% <53.84%> (+0.05%) ⬆️
mgmtIntTests 59.55% <84.61%> (-1.04%) ⬇️
unittests 10.38% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@kailash-b kailash-b enabled auto-merge March 4, 2026 06:05
@kailash-b kailash-b merged commit cf18550 into master Mar 4, 2026
6 of 8 checks passed
@kailash-b kailash-b deleted the feat/SDK-7898 branch March 4, 2026 11:24
@kailash-b kailash-b changed the title Adds missing fields in Create/Update connections mgmt: Adds missing fields in Create/Update connections Mar 5, 2026
@kailash-b kailash-b mentioned this pull request Mar 5, 2026
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.

Passwordless Users via MgmtApi

2 participants