From 2b673a0dab7f77bb3e81493f73ba7e342d9d24e5 Mon Sep 17 00:00:00 2001 From: Prince Mathew Date: Fri, 25 Apr 2025 16:40:50 +0530 Subject: [PATCH 1/2] Added EA release documentation for N2W --- EXAMPLES.md | 8 +++++-- .../authentication/AuthenticationAPIClient.kt | 6 +++++ .../storage/CredentialsManager.kt | 24 +++++++++++++++++++ .../storage/SecureCredentialsManager.kt | 24 +++++++++++++++++++ 4 files changed, 60 insertions(+), 2 deletions(-) diff --git a/EXAMPLES.md b/EXAMPLES.md index ebfa05f37..cda63cedb 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -18,7 +18,7 @@ - [Sign Up with a database connection](#sign-up-with-a-database-connection) - [Get user information](#get-user-information) - [Custom Token Exchange](#custom-token-exchange) - - [Native to Web SSO login](#native-to-web-sso-login) + - [Native to Web SSO login [EA]](#native-to-web-sso-login-ea) - [Credentials Manager](#credentials-manager) - [Secure Credentials Manager](#secure-credentials-manager) - [Usage](#usage) @@ -541,7 +541,11 @@ authentication -## Native to Web SSO login +## Native to Web SSO login [EA] + +> [!NOTE] +> This feature is currently available in [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). Please reach out to Auth0 support to get it +> enabled for your tenant. This feature allows you to authenticate a user in a web session using the refresh token obtained from the native session without requiring the user to log in again. diff --git a/auth0/src/main/java/com/auth0/android/authentication/AuthenticationAPIClient.kt b/auth0/src/main/java/com/auth0/android/authentication/AuthenticationAPIClient.kt index e8dcb63ae..67e9fefbe 100755 --- a/auth0/src/main/java/com/auth0/android/authentication/AuthenticationAPIClient.kt +++ b/auth0/src/main/java/com/auth0/android/authentication/AuthenticationAPIClient.kt @@ -930,6 +930,12 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * + * ##Availability + * + * This feature is currently available in + * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). + * Please reach out to Auth0 support to get it enabled for your tenant. + * * * @param refreshToken A valid refresh token obtained as part of Auth0 authentication * @return a request to fetch a session transfer token diff --git a/auth0/src/main/java/com/auth0/android/authentication/storage/CredentialsManager.kt b/auth0/src/main/java/com/auth0/android/authentication/storage/CredentialsManager.kt index e56c2d87b..16178f62d 100644 --- a/auth0/src/main/java/com/auth0/android/authentication/storage/CredentialsManager.kt +++ b/auth0/src/main/java/com/auth0/android/authentication/storage/CredentialsManager.kt @@ -63,6 +63,12 @@ public class CredentialsManager @VisibleForTesting(otherwise = VisibleForTesting * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * + * ##Availability + * + * This feature is currently available in + * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). + * Please reach out to Auth0 support to get it enabled for your tenant. + * * It will fail with [CredentialsManagerException] if the existing refresh_token is null or no longer valid. * This method will handle saving the refresh_token, if a new one is issued. */ @@ -78,6 +84,12 @@ public class CredentialsManager @VisibleForTesting(otherwise = VisibleForTesting * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * + * ##Availability + * + * This feature is currently available in + * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). + * Please reach out to Auth0 support to get it enabled for your tenant. + * * It will fail with [CredentialsManagerException] if the existing refresh_token is null or no longer valid. * This method will handle saving the refresh_token, if a new one is issued. */ @@ -134,6 +146,12 @@ public class CredentialsManager @VisibleForTesting(otherwise = VisibleForTesting * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * + * ##Availability + * + * This feature is currently available in + * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). + * Please reach out to Auth0 support to get it enabled for your tenant. + * * It will fail with [CredentialsManagerException] if the existing refresh_token is null or no longer valid. * This method will handle saving the refresh_token, if a new one is issued. */ @@ -151,6 +169,12 @@ public class CredentialsManager @VisibleForTesting(otherwise = VisibleForTesting * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * + * ##Availability + * + * This feature is currently available in + * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). + * Please reach out to Auth0 support to get it enabled for your tenant. + * * It will fail with [CredentialsManagerException] if the existing refresh_token is null or no longer valid. * This method will handle saving the refresh_token, if a new one is issued. */ diff --git a/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt b/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt index 6b4449e0d..aa12a2e82 100644 --- a/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt +++ b/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt @@ -133,6 +133,12 @@ public class SecureCredentialsManager @VisibleForTesting(otherwise = VisibleForT * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * + * ##Availability + * + * This feature is currently available in + * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). + * Please reach out to Auth0 support to get it enabled for your tenant. + * * It will fail with [CredentialsManagerException] if the existing refresh_token is null or no longer valid. * This method will handle saving the refresh_token, if a new one is issued. */ @@ -148,6 +154,12 @@ public class SecureCredentialsManager @VisibleForTesting(otherwise = VisibleForT * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * + * ##Availability + * + * This feature is currently available in + * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). + * Please reach out to Auth0 support to get it enabled for your tenant. + * * It will fail with [CredentialsManagerException] if the existing refresh_token is null or no longer valid. * This method will handle saving the refresh_token, if a new one is issued. */ @@ -215,6 +227,12 @@ public class SecureCredentialsManager @VisibleForTesting(otherwise = VisibleForT * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * + * ##Availability + * + * This feature is currently available in + * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). + * Please reach out to Auth0 support to get it enabled for your tenant. + * * It will fail with [CredentialsManagerException] if the existing refresh_token is null or no longer valid. * This method will handle saving the refresh_token, if a new one is issued. */ @@ -232,6 +250,12 @@ public class SecureCredentialsManager @VisibleForTesting(otherwise = VisibleForT * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * + * ##Availability + * + * This feature is currently available in + * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). + * Please reach out to Auth0 support to get it enabled for your tenant. + * * It will fail with [CredentialsManagerException] if the existing refresh_token is null or no longer valid. * This method will handle saving the refresh_token, if a new one is issued. */ From aa8164d987f1ed1c05fbf6b77184f67ed45dafb2 Mon Sep 17 00:00:00 2001 From: Prince Mathew Date: Fri, 25 Apr 2025 16:52:36 +0530 Subject: [PATCH 2/2] updated comments --- .../android/authentication/storage/CredentialsManager.kt | 8 ++++---- .../authentication/storage/SecureCredentialsManager.kt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/auth0/src/main/java/com/auth0/android/authentication/storage/CredentialsManager.kt b/auth0/src/main/java/com/auth0/android/authentication/storage/CredentialsManager.kt index 16178f62d..06b182b00 100644 --- a/auth0/src/main/java/com/auth0/android/authentication/storage/CredentialsManager.kt +++ b/auth0/src/main/java/com/auth0/android/authentication/storage/CredentialsManager.kt @@ -63,7 +63,7 @@ public class CredentialsManager @VisibleForTesting(otherwise = VisibleForTesting * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * - * ##Availability + * ## Availability * * This feature is currently available in * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). @@ -84,7 +84,7 @@ public class CredentialsManager @VisibleForTesting(otherwise = VisibleForTesting * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * - * ##Availability + * ## Availability * * This feature is currently available in * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). @@ -146,7 +146,7 @@ public class CredentialsManager @VisibleForTesting(otherwise = VisibleForTesting * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * - * ##Availability + * ## Availability * * This feature is currently available in * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). @@ -169,7 +169,7 @@ public class CredentialsManager @VisibleForTesting(otherwise = VisibleForTesting * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * - * ##Availability + * ## Availability * * This feature is currently available in * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). diff --git a/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt b/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt index aa12a2e82..f675e761f 100644 --- a/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt +++ b/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt @@ -133,7 +133,7 @@ public class SecureCredentialsManager @VisibleForTesting(otherwise = VisibleForT * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * - * ##Availability + * ## Availability * * This feature is currently available in * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). @@ -154,7 +154,7 @@ public class SecureCredentialsManager @VisibleForTesting(otherwise = VisibleForT * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * - * ##Availability + * ## Availability * * This feature is currently available in * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). @@ -227,7 +227,7 @@ public class SecureCredentialsManager @VisibleForTesting(otherwise = VisibleForT * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * - * ##Availability + * ## Availability * * This feature is currently available in * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access). @@ -250,7 +250,7 @@ public class SecureCredentialsManager @VisibleForTesting(otherwise = VisibleForT * parameter with the session transfer token. For example, * `https://example.com/login?session_transfer_token=THE_TOKEN`. * - * ##Availability + * ## Availability * * This feature is currently available in * [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages#early-access).