mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 01:45:11 +00:00
fix: iOS SSO
This commit is contained in:
parent
a055098105
commit
5ac6ca6e9d
2 changed files with 5 additions and 4 deletions
|
@ -26,12 +26,11 @@
|
|||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<string>Viewer</string>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>im.fluffychat.app.uris</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>ShareMedia</string>
|
||||
<string>im.fluffychat</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
|
|
@ -199,9 +199,11 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||
}
|
||||
final redirectUrl = kIsWeb
|
||||
? html.window.location.href
|
||||
: AppConfig.appOpenUrlScheme.toLowerCase() + '://sso';
|
||||
: AppConfig.appOpenUrlScheme.toLowerCase() + '://login';
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue