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/client-profile.jsonld b/client-profile.jsonld index c37a24e..5d42012 100644 --- a/client-profile.jsonld +++ b/client-profile.jsonld @@ -6,12 +6,12 @@ "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", "grant_types": [ diff --git a/lib/app.dart b/lib/app.dart index 6976c6a..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://solidcommunity.au/apps/filepod/client-profile.jsonld', - redirectUris: [ - 'https://filepod.solidcommunity.au/redirect.html', - 'com.togaware.filepod://redirect', - 'http://localhost:4400/redirect', - ], + 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, ), );