mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
Add AuthenticationRestClient protocol as an authentication interface to MXRestClient.
This commit is contained in:
+2
-2
@@ -30,7 +30,7 @@ class AuthenticationService: NSObject {
|
||||
// MARK: Private
|
||||
|
||||
/// The rest client used to make authentication requests.
|
||||
private var client: MXRestClient
|
||||
private var client: AuthenticationRestClient
|
||||
/// The object used to create a new `MXSession` when authentication has completed.
|
||||
private var sessionCreator = SessionCreator()
|
||||
|
||||
@@ -141,7 +141,7 @@ class AuthenticationService: NSObject {
|
||||
let address = state.homeserver.addressFromUser ?? state.homeserver.address
|
||||
self.state = AuthenticationState(flow: .login, homeserverAddress: address)
|
||||
}
|
||||
|
||||
|
||||
/// Create a session after a SSO successful login
|
||||
func makeSessionFromSSO(credentials: MXCredentials) -> MXSession {
|
||||
sessionCreator.createSession(credentials: credentials, client: client)
|
||||
|
||||
Reference in New Issue
Block a user