mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 02:22:44 +02:00
Cross-signing: Handle UserInteractiveAuthenticationService refactoring for cross signing setup.
This commit is contained in:
@@ -59,13 +59,13 @@ final class SecretsResetCoordinator: SecretsResetCoordinatorType {
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
private func showAuthentication(with authenticationSessionParameters: AuthenticationSessionParameters) {
|
||||
private func showAuthentication(with request: AuthenticatedEndpointRequest) {
|
||||
|
||||
let reauthenticationCoordinatorParameters = ReauthenticationCoordinatorParameters(session: self.session,
|
||||
presenter: self.toPresentable(),
|
||||
title: nil,
|
||||
message: VectorL10n.secretsResetAuthenticationMessage,
|
||||
authenticationSessionParameters: authenticationSessionParameters)
|
||||
authenticatedEndpointRequest: request)
|
||||
|
||||
let coordinator = ReauthenticationCoordinator(parameters: reauthenticationCoordinatorParameters)
|
||||
coordinator.delegate = self
|
||||
@@ -77,8 +77,8 @@ final class SecretsResetCoordinator: SecretsResetCoordinatorType {
|
||||
// MARK: - SecretsResetViewModelCoordinatorDelegate
|
||||
extension SecretsResetCoordinator: SecretsResetViewModelCoordinatorDelegate {
|
||||
|
||||
func secretsResetViewModel(_ viewModel: SecretsResetViewModelType, needsToAuthenticateWith authenticationSessionParamaters: AuthenticationSessionParameters) {
|
||||
self.showAuthentication(with: authenticationSessionParamaters)
|
||||
func secretsResetViewModel(_ viewModel: SecretsResetViewModelType, needsToAuthenticateWith request: AuthenticatedEndpointRequest) {
|
||||
self.showAuthentication(with: request)
|
||||
}
|
||||
|
||||
func secretsResetViewModelDidResetSecrets(_ viewModel: SecretsResetViewModelType) {
|
||||
|
||||
@@ -96,7 +96,7 @@ final class SecretsResetViewModel: SecretsResetViewModelType {
|
||||
}
|
||||
|
||||
private func askAuthentication() {
|
||||
let authenticationSessionParameters = self.crossSigningService.setupCrossSigningAuthenticationSessionParameters()
|
||||
self.coordinatorDelegate?.secretsResetViewModel(self, needsToAuthenticateWith: authenticationSessionParameters)
|
||||
let setupCrossSigningRequest = self.crossSigningService.setupCrossSigningRequest()
|
||||
self.coordinatorDelegate?.secretsResetViewModel(self, needsToAuthenticateWith: setupCrossSigningRequest)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ protocol SecretsResetViewModelViewDelegate: class {
|
||||
}
|
||||
|
||||
protocol SecretsResetViewModelCoordinatorDelegate: class {
|
||||
func secretsResetViewModel(_ viewModel: SecretsResetViewModelType, needsToAuthenticateWith authenticationSessionParamaters: AuthenticationSessionParameters)
|
||||
func secretsResetViewModel(_ viewModel: SecretsResetViewModelType, needsToAuthenticateWith request: AuthenticatedEndpointRequest)
|
||||
func secretsResetViewModelDidResetSecrets(_ viewModel: SecretsResetViewModelType)
|
||||
func secretsResetViewModelDidCancel(_ viewModel: SecretsResetViewModelType)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user