π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update mobile URLs
Manav Rathif6377b98cb6b
diff --git a/auth/lib/services/passkey_service.dart b/auth/lib/services/passkey_service.dartindex 825a19729b..eea9ded1a7 100644--- a/auth/lib/services/passkey_service.dart+++ b/auth/lib/services/passkey_service.dart@@ -42,7 +42,7 @@ class PasskeyService {Future<void> openPasskeyPage(BuildContext context) async {try {final jwtToken = await getJwtToken();- final url = "https://accounts.ente.io/account-handoff?token=$jwtToken";+ final url = "https://accounts.ente.io/passkeys/handoff?token=$jwtToken";await launchUrlString(url,mode: LaunchMode.externalApplication,diff --git a/auth/lib/ui/passkey_page.dart b/auth/lib/ui/passkey_page.dartindex 8c2e54e980..65a474d32b 100644--- a/auth/lib/ui/passkey_page.dart+++ b/auth/lib/ui/passkey_page.dart@@ -41,9 +41,10 @@ class _PasskeyPageState extends State<PasskeyPage> {Future<void> launchPasskey() async {await launchUrlString(- "https://accounts.ente.io/passkeys/flow?"+ "https://accounts.ente.io/passkeys/verify?""passkeySessionID=${widget.sessionID}"- "&redirect=enteauth://passkey",+ "&redirect=enteauth://passkey"+ "&client=io.ente.auth",mode: LaunchMode.externalApplication,);}diff --git a/mobile/lib/services/passkey_service.dart b/mobile/lib/services/passkey_service.dartindex 07a22f5a6d..32feee6ac8 100644--- a/mobile/lib/services/passkey_service.dart+++ b/mobile/lib/services/passkey_service.dart@@ -42,7 +42,7 @@ class PasskeyService {Future<void> openPasskeyPage(BuildContext context) async {try {final jwtToken = await getJwtToken();- final url = "https://accounts.ente.io/account-handoff?token=$jwtToken";+ final url = "https://accounts.ente.io/passkeys/handoff?token=$jwtToken";await launchUrlString(url,mode: LaunchMode.externalApplication,diff --git a/mobile/lib/ui/account/passkey_page.dart b/mobile/lib/ui/account/passkey_page.dartindex 08b2472b37..79d8da13d0 100644--- a/mobile/lib/ui/account/passkey_page.dart+++ b/mobile/lib/ui/account/passkey_page.dart@@ -41,9 +41,10 @@ class _PasskeyPageState extends State<PasskeyPage> {Future<void> launchPasskey() async {await launchUrlString(- "https://accounts.ente.io/passkeys/flow?"+ "https://accounts.ente.io/passkeys/verify?""passkeySessionID=${widget.sessionID}"- "&redirect=ente://passkey",+ "&redirect=ente://passkey"+ "&client=io.ente.photos",mode: LaunchMode.externalApplication,);}diff --git a/web/docs/webauthn-passkeys.md b/web/docs/webauthn-passkeys.mdindex 5ca35ef76c..9b3fac72ac 100644--- a/web/docs/webauthn-passkeys.md+++ b/web/docs/webauthn-passkeys.md@@ -55,9 +55,8 @@ used.** This restriction is a byproduct of the enablement for automatic login.### Automatically logging into Ente AccountsClients open a WebView with the URL-`https://accounts.ente.io/passkeys/handoff?client=<clientPackageName>&token=<accountsToken>`.-This page will parse the token and client package name for usage in subsequent-Accounts-related API calls.+`https://accounts.ente.io/passkeys/handoff?token=<accountsToken>`. This page+will parse the token for usage in subsequent Accounts-related API calls.If the token is valid, the user will be automatically redirected to the passkeysmanagement page. Otherwise, they will be required to login with their Ente@@ -342,7 +341,7 @@ is needed anyways to service credential authentication from mobile clients, sowe use the same flow for other (web, desktop) clients too.```tsx-window.location.href = `${accountsAppURL()}/passkeys/verify?passkeySessionID=${passkeySessionID}&redirect=${+window.location.href = `${accountsAppURL()}/passkeys/verify?passkeySessionID=${passkeySessionID}&client=io.ente.photos.web&redirect=${window.location.origin}/passkeys/finish`;```