Skip to content

Commit

Permalink
Add Tchap comment on Tchap modification
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasBuquet committed Oct 7, 2024
1 parent 6c592ab commit fbb79f7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ final class CrossSigningSetupCoordinator: CrossSigningSetupCoordinatorType {
// MARK: - Public methods

func start() {
// Tchap: launch classic crossiging without authentication parameters
// to trigger real requets to backend, with real keys.
// This will trigger a 401 reponse that will launch the SSO reauthentication.
// self.showReauthentication()
self.setupCrossSigning(with: [:])
}
Expand Down Expand Up @@ -110,8 +113,6 @@ final class CrossSigningSetupCoordinator: CrossSigningSetupCoordinatorType {
let nsError = error as NSError
if let jsonResponse = nsError.userInfo[MXHTTPClientErrorResponseDataKey] as? [AnyHashable: Any],
let authenticationSession = MXAuthenticationSession(fromJSON: jsonResponse) {
// Begin authentication flow using authentication session informations returned by backend.
// self.coordinatorDelegate?.secretsResetViewModel(self, needsToAuthenticateWith: authenticationSession)
self.showReauthentication(with: authenticationSession)
}
else {
Expand Down

0 comments on commit fbb79f7

Please sign in to comment.