Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup cross-signing even without auth session #1774

Merged
merged 1 commit into from
Apr 18, 2023
Merged

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented Apr 18, 2023

Calling [MXRestClient authSessionForRequestWithMethod] is supposed to return an auth session which is then passed to crypto machine to setup cross-singing keys. It is however valid for the auth session to be empty, which is already accounted for in MXLegacyCrossSigning, but not in MXCrossSigningV2. This PR fixes that issue by behaving in the same way as legacy cross-signing, namely returning empty auth session instead of throwing an error.

@codecov
Copy link

codecov bot commented Apr 18, 2023

Codecov Report

Patch coverage: 86.66% and project coverage change: +0.05 🎉

Comparison is base (4f724c9) 38.06% compared to head (45b277f) 38.11%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1774      +/-   ##
===========================================
+ Coverage    38.06%   38.11%   +0.05%     
===========================================
  Files          616      616              
  Lines        97341    97383      +42     
  Branches     42016    42037      +21     
===========================================
+ Hits         37054    37119      +65     
+ Misses       59241    59215      -26     
- Partials      1046     1049       +3     
Impacted Files Coverage Δ
...rypto/CrossSigning/MXCrossSigningV2UnitTests.swift 94.54% <85.36%> (-3.06%) ⬇️
...trixSDK/Crypto/CrossSigning/MXCrossSigningV2.swift 61.70% <100.00%> (+20.52%) ⬆️
...s/Crypto/CryptoMachine/MXCryptoProtocolStubs.swift 51.67% <100.00%> (+1.67%) ⬆️

... and 7 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Anderas Anderas merged commit 68bbc3e into develop Apr 18, 2023
@Anderas Anderas deleted the andy/cross_signing branch April 18, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants