mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 06:36:58 +02:00
Revert "Revert "#4693 - Drop iOS 11 support.""
This commit is contained in:
committed by
Stefan Ceriu
parent
073d4e3994
commit
f1d3e5af9d
@@ -110,19 +110,11 @@ final class SSOAuthenticationPresenter: NSObject {
|
||||
return
|
||||
}
|
||||
|
||||
let authenticationSession: SSOAuthentificationSessionProtocol
|
||||
let authenticationSession = SSOAuthentificationSession()
|
||||
|
||||
if #available(iOS 12.0, *) {
|
||||
authenticationSession = SSOAuthentificationSession()
|
||||
} else {
|
||||
authenticationSession = LegacySSOAuthentificationSession()
|
||||
}
|
||||
|
||||
if #available(iOS 12.0, *) {
|
||||
if let presentingWindow = presentingViewController.view.window {
|
||||
let contextProvider = SSOAuthenticationSessionContextProvider(window: presentingWindow)
|
||||
authenticationSession.setContextProvider(contextProvider)
|
||||
}
|
||||
if let presentingWindow = presentingViewController.view.window {
|
||||
let contextProvider = SSOAuthenticationSessionContextProvider(window: presentingWindow)
|
||||
authenticationSession.setContextProvider(contextProvider)
|
||||
}
|
||||
|
||||
authenticationSession.authenticate(with: authenticationURL, callbackURLScheme: self.ssoAuthenticationService.callBackURLScheme) { [weak self] (callBackURL, error) in
|
||||
|
||||
Reference in New Issue
Block a user