Ignore authentication requests while offline

This commit is contained in:
Benoit Martins 2026-03-11 15:55:50 +01:00
parent fa9be23c2d
commit 0fe2b4370f
2 changed files with 6 additions and 1 deletions

View file

@ -295,6 +295,11 @@ class CoreContext: ObservableObject {
}
}
}, onAuthenticationRequested: { (core: Core, authInfo: AuthInfo, method: AuthMethod) in
guard self.networkStatusIsConnected else {
Log.warn("[CoreContext] Authentication requested while device is offline, ignoring")
return
}
if method == .Bearer {
if let server = authInfo.authorizationServer, !server.isEmpty {
Log.info("Authentication requested method is Bearer, starting Single Sign On activity with server URL \(server) and username \(authInfo.username ?? "")")

View file

@ -2,6 +2,6 @@ import Foundation
public enum AppGitInfo {
public static let branch = "master"
public static let commit = "9555245ed"
public static let commit = "fa9be23c2"
public static let tag = "6.1.0-alpha"
}