mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 23:18:27 +02:00
- Add Registration Screen. - Add Server Selection Screen. - Rename AuthenticationCoordinator to LegacyAuthenticationCoordinator. - Add AuthenticationService and RegistrationWizard. - Async extensions. - Add global white and EMS colors to the themes. - Add tests for server selection and registration screens. - Accessibility and iPad layout tweaks. - Remove MainActor from Auth Coordinators/VMs/Views. (It broke the protocol conformances so now the methods and properties are marked individually.)
42 lines
1.4 KiB
Swift
42 lines
1.4 KiB
Swift
//
|
|
// Copyright 2022 New Vector Ltd
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
|
|
import Foundation
|
|
import MatrixSDK
|
|
|
|
@available(iOS 14.0, *)
|
|
struct AuthenticationCoordinatorState {
|
|
// MARK: User choices
|
|
// var serverType: ServerType = .unknown
|
|
// var signMode: SignMode = .unknown
|
|
var resetPasswordEmail: String?
|
|
|
|
/// The homeserver address as returned by the server.
|
|
var homeserverAddress: String?
|
|
/// The homeserver address as input by the user (it can differ to the well-known request).
|
|
var homeserverAddressFromUser: String?
|
|
|
|
/// For SSO session recovery
|
|
var deviceId: String?
|
|
|
|
// MARK: Network result
|
|
var loginMode: LoginMode = .unknown
|
|
/// Supported types for the login.
|
|
var loginModeSupportedTypes = [MXLoginFlow]()
|
|
var knownCustomHomeServersUrls = [String]()
|
|
var isForceLoginFallbackEnabled = false
|
|
}
|