Merge branch 'oauth-error-fix' of gitlab.com:mysocialportal/relatica into oauth-error-fix

main
Hank Grabowski 2023-11-06 21:03:24 -05:00
commit 35d13687dc
2 zmienionych plików z 19 dodań i 4 usunięć

Wyświetl plik

@ -1,6 +1,20 @@
# Relatica Change Log # Relatica Change Log
## Unreleased ## Version 0.7.2 (beta)
* Changes
* Fixes
* Fixes initial OAuth authorization failing against Friendica 2023.09-rc servers
* New Features
## Version 0.7.1 (beta)
* Changes
* Updated versions of libraries to latest so could build on latest macOS version
* Fixes
* New Features
## Version 0.7.0 (beta)
* Changes * Changes
* Added rate limiter on background contacts automatic updates * Added rate limiter on background contacts automatic updates

Wyświetl plik

@ -35,10 +35,11 @@ class OAuthCredentials implements ICredentials {
}); });
factory OAuthCredentials.bootstrap(String serverName) { factory OAuthCredentials.bootstrap(String serverName) {
final redirectScheme = final redirectScheme = Platform.isWindows || Platform.isLinux
Platform.isWindows || Platform.isLinux ? 'http' : 'relatica'; ? 'http://localhost:43824'
: 'relatica';
final redirectUrl = Platform.isWindows || Platform.isLinux final redirectUrl = Platform.isWindows || Platform.isLinux
? '$redirectScheme://localhost:43824' ? redirectScheme
: '$redirectScheme://authorize'; : '$redirectScheme://authorize';
return OAuthCredentials( return OAuthCredentials(
clientId: '', clientId: '',