mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-17 11:48:27 +00:00
Ignore authentication requests while offline
This commit is contained in:
parent
fa9be23c2d
commit
0fe2b4370f
2 changed files with 6 additions and 1 deletions
|
|
@ -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 ?? "")")
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue