-
Notifications
You must be signed in to change notification settings - Fork 160
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
Temporary account creation using Element Web. #3467
Conversation
…and disable to "Leave page" dialog.
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3467 +/- ##
===========================================
- Coverage 82.63% 82.52% -0.11%
===========================================
Files 1701 1713 +12
Lines 40047 40275 +228
Branches 4872 4899 +27
===========================================
+ Hits 33092 33237 +145
- Misses 5234 5314 +80
- Partials 1721 1724 +3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
// - EC widget API -> Element X (message.data.api == "fromWidget") | ||
// - Element X -> EC widget API (message.data.api == "toWidget"), we should ignore these |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy&paste issue 😅 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix, thanks!
import androidx.webkit.WebViewCompat | ||
import androidx.webkit.WebViewFeature | ||
|
||
class WebViewMessageInterceptor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely not for now, but maybe we should extract this to some shared module (androidutils?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I had though about it, but since this is supposed to be a temporary code...
Just to double check, do we want to merge it with creation enabled while m.org can't create new users without the workaround? |
Quality Gate passedIssues Measures |
Content
Add ability to create an account directly from Element X, but using a Url of an Element Web instance.
Motivation and context
Give a temporary way for users to create account, waiting for MAS to be available on matrix.org.
Screenshots / GIFs
Tests
Note: account creation on matrix.org needs that the URL https://matrix.org/.well-known/element/element.json return some Json. In the mean time, this is possible to test by letting
DefaultWebClientUrlForAuthenticationRetriever.retrieve
return the value "https://pr42--matrix-react-sdk.netlify.app/#/mobile_register"Using password
Using Oidc
Tested devices
Checklist