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

Support for login by m.login.token during QR code sign in #7358

Merged
merged 9 commits into from Oct 14, 2022

Conversation

hughns
Copy link
Member

@hughns hughns commented Oct 13, 2022

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Motivation and context

Screenshots / GIFs

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

Signed-off-by: Hugh Nimmo-Smith hughns@element.io

@hughns hughns marked this pull request as ready for review October 13, 2022 14:24
@hughns hughns requested a review from bmarty October 13, 2022 14:24
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM, some remark, which may be handled later.
Also when there is new API on the SDK, it's good to add a changelog file with .sdk extension. See https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#changelog for more details.
thanks!

@@ -404,6 +406,22 @@ internal class DefaultAuthenticationService @Inject constructor(
)
}

override suspend fun loginUsingQrLoginToken(
homeServerConnectionConfig: HomeServerConnectionConfig,
loginToken: String,
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to pass all the data from the QR code here? So that the SDK can handle the next step automatically?

Copy link
Member Author

Choose a reason for hiding this comment

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

At this point we don't actually have the full context yet, so it probably doesn't make sense to do this.

We can look at the overall implementation once done and see what refactoring to do.

@hughns hughns enabled auto-merge October 13, 2022 18:35
@hughns hughns requested a review from bmarty October 13, 2022 18:35
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM! I will check the test failure and merge the PR if it's fine.

@sonarcloud
Copy link

sonarcloud bot commented Oct 14, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

20.8% 20.8% Coverage
0.0% 0.0% Duplication

@hughns hughns merged commit 626e3db into develop Oct 14, 2022
@hughns hughns deleted the feature/hughns/qr_code_login_task branch October 14, 2022 08:38
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.

None yet

2 participants