From b0dfde6a9b7f48592552a90e92e3d9617f861579 Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Tue, 7 Jul 2026 22:42:36 +1000 Subject: [PATCH 1/5] Fix the oidc login issue --- client-profile.jsonld | 25 +++++ macos/Runner/DebugProfile.entitlements | 8 ++ macos/Runner/Release.entitlements | 12 +++ support/flutter.mk | 2 +- web/redirect.html | 122 +++++++++++++++++++++++++ 5 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 client-profile.jsonld create mode 100644 web/redirect.html diff --git a/client-profile.jsonld b/client-profile.jsonld new file mode 100644 index 0000000..2c37377 --- /dev/null +++ b/client-profile.jsonld @@ -0,0 +1,25 @@ +{ + "@context": "https://www.w3.org/ns/solid/oidc-context.jsonld", + "client_id": "https://anusii.github.io/rolopod/client-profile.jsonld", + "client_name": "RoloPod", + "application_type": "native", + "redirect_uris": [ + "https://rolopod.solidcommunity.au/redirect.html", + "com.togaware.rolopod://redirect", + "http://localhost:4400/redirect" + ], + "post_logout_redirect_uris": [ + "https://rolopod.solidcommunity.au/redirect.html", + "com.togaware.rolopod://redirect", + "http://localhost:4400/redirect" + ], + "scope": "openid profile offline_access webid", + "grant_types": [ + "authorization_code", + "refresh_token" + ], + "response_types": [ + "code" + ], + "token_endpoint_auth_method": "none" +} diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements index dddb8a3..1b92f1d 100644 --- a/macos/Runner/DebugProfile.entitlements +++ b/macos/Runner/DebugProfile.entitlements @@ -8,5 +8,13 @@ com.apple.security.network.server + com.apple.security.network.client + + keychain-access-groups + + com.apple.security.keychain + + com.apple.security.files.user-selected.read-write + diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements index 852fa1a..1b92f1d 100644 --- a/macos/Runner/Release.entitlements +++ b/macos/Runner/Release.entitlements @@ -4,5 +4,17 @@ com.apple.security.app-sandbox + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + com.apple.security.network.client + + keychain-access-groups + + com.apple.security.keychain + + com.apple.security.files.user-selected.read-write + diff --git a/support/flutter.mk b/support/flutter.mk index d2b835a..b7a512f 100644 --- a/support/flutter.mk +++ b/support/flutter.mk @@ -101,7 +101,7 @@ LOC := $(shell if [ -f support/loc.sh ]; then echo support/loc.sh; \ .PHONY: chrome chrome: - flutter run -d chrome --release + flutter run -d chrome --release --web-port=4400 # 20220503 gjw The following fails if the target files already exist - # just needs to be run once. diff --git a/web/redirect.html b/web/redirect.html new file mode 100644 index 0000000..3d64b43 --- /dev/null +++ b/web/redirect.html @@ -0,0 +1,122 @@ + + + + + + + Flutter Oidc Redirect + + + + + +

Authentication completed! Please close this page.

+ + + From f79d16c9b0380415375858fedaf157f95b17cfee Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Wed, 8 Jul 2026 03:00:21 +1000 Subject: [PATCH 2/5] Move client-profile.jsonld to web directory --- lib/main.dart | 6 ++-- web/callback.html | 30 ------------------- .../client-profile.jsonld | 8 +++-- 3 files changed, 8 insertions(+), 36 deletions(-) delete mode 100644 web/callback.html rename client-profile.jsonld => web/client-profile.jsonld (71%) diff --git a/lib/main.dart b/lib/main.dart index 7600eb0..715ca34 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -104,11 +104,11 @@ class _RoloPodAppState extends State { logo: const AssetImage('assets/images/app_icon.png'), link: 'https://github.com/gjwgit/rolopod', clientId: - 'https://solidcommunity.au/apps/rolopod/client-profile.jsonld', + 'https://rolopod.solidcommunity.au/client-profile.jsonld', redirectUris: [ - 'http://localhost:4400/redirect', + 'http://localhost:4400/redirect.html', 'com.togaware.rolopod://redirect', - 'https://solidcommunity.au/apps/rolopod/redirect.html', + 'https://rolopod.solidcommunity.au/redirect.html', ], child: const AppScaffold(), ), diff --git a/web/callback.html b/web/callback.html deleted file mode 100644 index b7fe4ba..0000000 --- a/web/callback.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - 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 2c37377..5602d3d 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/rolopod/client-profile.jsonld", + "client_id": "https://rolopod.solidcommunity.au/client-profile.jsonld", "client_name": "RoloPod", "application_type": "native", "redirect_uris": [ "https://rolopod.solidcommunity.au/redirect.html", "com.togaware.rolopod://redirect", - "http://localhost:4400/redirect" + "http://localhost:4400/redirect", + "http://localhost:4400/redirect.html" ], "post_logout_redirect_uris": [ "https://rolopod.solidcommunity.au/redirect.html", "com.togaware.rolopod://redirect", - "http://localhost:4400/redirect" + "http://localhost:4400/redirect", + "http://localhost:4400/redirect.html" ], "scope": "openid profile offline_access webid", "grant_types": [ From dee8e9ead9ff070a04a74a3a2be0cc298cf21cff Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Fri, 10 Jul 2026 20:30:05 +1000 Subject: [PATCH 3/5] Move client-profile.jsonld to root directory --- ...client-profile.jsonld => client-profile.jsonld | 4 +--- lib/main.dart | 15 ++++++++------- 2 files changed, 9 insertions(+), 10 deletions(-) rename web/client-profile.jsonld => client-profile.jsonld (81%) 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 5602d3d..b1802d8 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://rolopod.solidcommunity.au/client-profile.jsonld", + "client_id": "https://anusii.github.io/rolopod/client-profile.jsonld", "client_name": "RoloPod", "application_type": "native", "redirect_uris": [ "https://rolopod.solidcommunity.au/redirect.html", "com.togaware.rolopod://redirect", - "http://localhost:4400/redirect", "http://localhost:4400/redirect.html" ], "post_logout_redirect_uris": [ "https://rolopod.solidcommunity.au/redirect.html", "com.togaware.rolopod://redirect", - "http://localhost:4400/redirect", "http://localhost:4400/redirect.html" ], "scope": "openid profile offline_access webid", diff --git a/lib/main.dart b/lib/main.dart index 715ca34..aa25eb1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -25,6 +25,7 @@ library; +import 'package:flutter/foundation.dart' show kIsWeb; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; @@ -103,13 +104,13 @@ class _RoloPodAppState extends State { image: const AssetImage('assets/images/app_image.jpg'), logo: const AssetImage('assets/images/app_icon.png'), link: 'https://github.com/gjwgit/rolopod', - clientId: - 'https://rolopod.solidcommunity.au/client-profile.jsonld', - redirectUris: [ - 'http://localhost:4400/redirect.html', - 'com.togaware.rolopod://redirect', - 'https://rolopod.solidcommunity.au/redirect.html', - ], + clientId: 'https://anusii.github.io/rolopod/client-profile.jsonld', + redirectUris: kIsWeb + ? ['${Uri.base.origin}/redirect.html'] + : const [ + 'com.togaware.rolopod://redirect', + 'http://localhost:4400/redirect.html', + ], child: const AppScaffold(), ), ); From 52b15d9a5e3980ae227ca16caaa70d93078b01ae Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Fri, 10 Jul 2026 20:41:47 +1000 Subject: [PATCH 4/5] Update client profile URLs --- client-profile.jsonld | 2 +- lib/main.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client-profile.jsonld b/client-profile.jsonld index b1802d8..9cfbb69 100644 --- a/client-profile.jsonld +++ b/client-profile.jsonld @@ -1,6 +1,6 @@ { "@context": "https://www.w3.org/ns/solid/oidc-context.jsonld", - "client_id": "https://anusii.github.io/rolopod/client-profile.jsonld", + "client_id": "https://gjwgit.github.io/rolopod/client-profile.jsonld", "client_name": "RoloPod", "application_type": "native", "redirect_uris": [ diff --git a/lib/main.dart b/lib/main.dart index aa25eb1..6ee9b25 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -104,7 +104,7 @@ class _RoloPodAppState extends State { image: const AssetImage('assets/images/app_image.jpg'), logo: const AssetImage('assets/images/app_icon.png'), link: 'https://github.com/gjwgit/rolopod', - clientId: 'https://anusii.github.io/rolopod/client-profile.jsonld', + clientId: 'https://gjwgit.github.io/rolopod/client-profile.jsonld', redirectUris: kIsWeb ? ['${Uri.base.origin}/redirect.html'] : const [ From 4d827dac99740d10eb2a52934192c2fc0542a1e3 Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Fri, 10 Jul 2026 21:16:39 +1000 Subject: [PATCH 5/5] Update .lycheeignore --- .lycheeignore | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.lycheeignore b/.lycheeignore index 9994894..3ed4b38 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -87,11 +87,8 @@ https://github.com/gjwgit/myapp/blob/main/README.md https://server/POD_NAME/APP_NAME/data/FILE_PATH https://host/ https://pods.au/me/app/data -https://github.com/anusii/mypod/blob/dev/CHANGELOG.md -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://gjwgit.github.io/rolopod/client-profile.jsonld # 20260605 gjw Failing solid servers