From a5b508e843c7c14af4e9db0043a31833ce94fd28 Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Wed, 8 Jul 2026 02:52:59 +1000 Subject: [PATCH 1/2] Move client-profile.jsonld to web directory --- lib/app.dart | 4 ++-- client-profile.jsonld => web/client-profile.jsonld | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) rename client-profile.jsonld => web/client-profile.jsonld (71%) diff --git a/lib/app.dart b/lib/app.dart index 6976c6a..f93a59b 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -62,11 +62,11 @@ class App extends StatelessWidget { logo: const AssetImage('assets/images/app_icon.png'), link: 'https://github.com/anusii/filepod', clientId: - 'https://solidcommunity.au/apps/filepod/client-profile.jsonld', + 'https://filepod.solidcommunity.au/client-profile.jsonld', redirectUris: [ 'https://filepod.solidcommunity.au/redirect.html', 'com.togaware.filepod://redirect', - 'http://localhost:4400/redirect', + 'http://localhost:4400/redirect.html', ], child: appScaffold, ), diff --git a/client-profile.jsonld b/web/client-profile.jsonld similarity index 71% rename from client-profile.jsonld rename to web/client-profile.jsonld index c37a24e..e1d7707 100644 --- a/client-profile.jsonld +++ b/web/client-profile.jsonld @@ -1,17 +1,19 @@ { "@context": "https://www.w3.org/ns/solid/oidc-context.jsonld", - "client_id": "https://anusii.github.io/filepod/client-profile.jsonld", + "client_id": "https://filepod.solidcommunity.au/client-profile.jsonld", "client_name": "FilePod", "application_type": "native", "redirect_uris": [ "https://filepod.solidcommunity.au/redirect.html", "com.togaware.filepod://redirect", - "http://localhost:4400/redirect" + "http://localhost:4400/redirect", + "http://localhost:4400/redirect.html" ], "post_logout_redirect_uris": [ "https://filepod.solidcommunity.au/redirect.html", "com.togaware.filepod://redirect", - "http://localhost:4400/redirect" + "http://localhost:4400/redirect", + "http://localhost:4400/redirect.html" ], "scope": "openid profile offline_access webid", "grant_types": [ From 60aae9e72bf9647a32ab390309ec8a5d3f37c2fb Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Fri, 10 Jul 2026 01:25:10 +1000 Subject: [PATCH 2/2] Move client-profile.jsonld to root directory --- .lycheeignore | 1 - ...client-profile.jsonld => client-profile.jsonld | 4 +--- lib/app.dart | 15 ++++++++------- 3 files changed, 9 insertions(+), 11 deletions(-) rename web/client-profile.jsonld => client-profile.jsonld (81%) diff --git a/.lycheeignore b/.lycheeignore index ba0d3bd..4228dd4 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -92,7 +92,6 @@ https://anusii.github.io/mypod/ https://anusii.github.io/mypod/client-profile.jsonld https://anusii.github.io/mypod/redirect.html https://your-solid-server/ -https://dev.empwr.au/mypod/ https://server/alice/ # 20260605 gjw Failing solid servers diff --git a/web/client-profile.jsonld b/client-profile.jsonld similarity index 81% rename from web/client-profile.jsonld rename to client-profile.jsonld index e1d7707..5d42012 100644 --- a/web/client-profile.jsonld +++ b/client-profile.jsonld @@ -1,18 +1,16 @@ { "@context": "https://www.w3.org/ns/solid/oidc-context.jsonld", - "client_id": "https://filepod.solidcommunity.au/client-profile.jsonld", + "client_id": "https://anusii.github.io/filepod/client-profile.jsonld", "client_name": "FilePod", "application_type": "native", "redirect_uris": [ "https://filepod.solidcommunity.au/redirect.html", "com.togaware.filepod://redirect", - "http://localhost:4400/redirect", "http://localhost:4400/redirect.html" ], "post_logout_redirect_uris": [ "https://filepod.solidcommunity.au/redirect.html", "com.togaware.filepod://redirect", - "http://localhost:4400/redirect", "http://localhost:4400/redirect.html" ], "scope": "openid profile offline_access webid", diff --git a/lib/app.dart b/lib/app.dart index f93a59b..d351ea0 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -25,6 +25,7 @@ library; +import 'package:flutter/foundation.dart' show kIsWeb; import 'package:flutter/material.dart'; import 'package:solidui/solidui.dart'; @@ -61,13 +62,13 @@ class App extends StatelessWidget { image: const AssetImage('assets/images/app_image.jpg'), logo: const AssetImage('assets/images/app_icon.png'), link: 'https://github.com/anusii/filepod', - clientId: - 'https://filepod.solidcommunity.au/client-profile.jsonld', - redirectUris: [ - 'https://filepod.solidcommunity.au/redirect.html', - 'com.togaware.filepod://redirect', - 'http://localhost:4400/redirect.html', - ], + clientId: 'https://anusii.github.io/filepod/client-profile.jsonld', + redirectUris: kIsWeb + ? ['${Uri.base.origin}/redirect.html'] + : const [ + 'com.togaware.filepod://redirect', + 'http://localhost:4400/redirect.html', + ], child: appScaffold, ), );