mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
fix: iOS SSO
This commit is contained in:
parent
938d1d054c
commit
a74ca8ecb6
@ -26,12 +26,11 @@
|
|||||||
<array>
|
<array>
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
<string>Editor</string>
|
<string>Viewer</string>
|
||||||
<key>CFBundleURLName</key>
|
<key>CFBundleURLName</key>
|
||||||
<string>im.fluffychat.app.uris</string>
|
<string>im.fluffychat.app.uris</string>
|
||||||
<key>CFBundleURLSchemes</key>
|
<key>CFBundleURLSchemes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>ShareMedia</string>
|
|
||||||
<string>im.fluffychat</string>
|
<string>im.fluffychat</string>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
|
@ -199,9 +199,11 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||||||
}
|
}
|
||||||
final redirectUrl = kIsWeb
|
final redirectUrl = kIsWeb
|
||||||
? html.window.location.href
|
? html.window.location.href
|
||||||
: AppConfig.appOpenUrlScheme.toLowerCase() + '://sso';
|
: AppConfig.appOpenUrlScheme.toLowerCase() + '://login';
|
||||||
launch(
|
launch(
|
||||||
'${Matrix.of(context).client.homeserver?.toString()}/_matrix/client/r0/login/sso/redirect/${Uri.encodeComponent(id)}?redirectUrl=${Uri.encodeQueryComponent(redirectUrl)}');
|
'${Matrix.of(context).client.homeserver?.toString()}/_matrix/client/r0/login/sso/redirect/${Uri.encodeComponent(id)}?redirectUrl=${Uri.encodeQueryComponent(redirectUrl)}',
|
||||||
|
forceSafariVC: false,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void signUpAction() => launch(
|
void signUpAction() => launch(
|
||||||
|
Loading…
Reference in New Issue
Block a user