Skip to content

Adding support for Native to Web SSO - Session Transfer #536

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

Merged
merged 6 commits into from
Apr 29, 2025

Conversation

nelsonmaia
Copy link
Contributor

@nelsonmaia nelsonmaia commented Apr 2, 2025

🔧 Changes

Auth0 is launching the Native to Web SSO (N2W), also known as Session Transfer, feature in EA (Early Access) at the end of April.

As part of this, we are introducing a new configuration under the Client object in the Management API (API2). This PR updates the Client struct to support the following payload:

{
  "session_transfer": {
    "can_create_session_transfer_token": false,
    "allowed_authentication_methods": ["cookie", "query"],
    "enforce_device_binding": "ip" // valid values: "ip", "asn", or "none"
  }
}

The goal of this change is to enable other SDKs (e.g., auth0-cli, Terraform provider) to support configuration of the new session_transfer settings.

📚 References

🔬 Testing

  • Manual testing against Management API with a client configured for session transfer
  • Added TestCases for session_transfer

📝 Checklist

  • All new/changed functionality is covered by tests (or N/A)
  • Documentation has been added/updated for new functionality (or N/A)

@nelsonmaia nelsonmaia requested a review from a team as a code owner April 2, 2025 19:03
@codecov-commenter
Copy link

codecov-commenter commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.84%. Comparing base (0465249) to head (e926a8b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #536   +/-   ##
=======================================
  Coverage   95.83%   95.84%           
=======================================
  Files          60       60           
  Lines       11661    11683   +22     
=======================================
+ Hits        11175    11197   +22     
  Misses        366      366           
  Partials      120      120           

☔ 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.

@developerkunal developerkunal force-pushed the feature/session-transfer branch from eb10919 to c2e9762 Compare April 4, 2025 19:12
ramya18101
ramya18101 previously approved these changes Apr 7, 2025
@ramya18101
Copy link
Contributor

Hello @nelsonmaia , The changes are approved, But we will merge this when feature is ready to be shipped..

@developerkunal developerkunal enabled auto-merge (squash) April 29, 2025 07:33
@developerkunal developerkunal merged commit 0bf1560 into auth0:main Apr 29, 2025
6 checks passed
@developerkunal developerkunal mentioned this pull request May 5, 2025
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.

4 participants