-
Notifications
You must be signed in to change notification settings - Fork 270
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
FFI: Remove the authentication service. #3594
The head ref may contain hidden characters: "doug/\u{1F525}authentication-service\u{1F525}"
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3594 +/- ##
=======================================
Coverage 83.82% 83.83%
=======================================
Files 254 254
Lines 26167 26167
=======================================
+ Hits 21935 21936 +1
+ Misses 4232 4231 -1 ☔ 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.
Looks great - just needs a changelog entry! (Basically re-use your PR description?)
Added it - there wasn't one on the FFI so I copied the format from the main SDK. |
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.
Looks good, thanks!
@pixlwave I see some value in the separate commits here, so would prefer not to squash-merge. Do you feel like doing the work to rebase to remove the fix-up commits? If not I'll just squash. |
Good point, done 👍 |
I just want to confirm these changes seem to work fine on Android after adding the needed changes. |
@andybalaam Do you think we can ignore that complement failure? It happily picked up the branch name before (and passed) but after the rebase is seemingly having a hard time with it. I vow not to use emoji in branch names again 🥺 |
I'll be the party pooper here, sorry. Can you reopen this PR with a different branch name? There's no way to know if it actually passes the Complement tests or not, in the current form. (And yeah, it might be that some code in the branch matching resolving doesn't account for non-ascii UTF8 😁) |
Ok. Lemme try rebasing on main first and see if that nudges it 🤞 If not I'll do a new PR. |
(Nothing changed, just moving things around)
Ah, it seems the Complement Crypto test now proceeds further! Another success for the law of serendipity \o/ |
Nice, then emoji branch in names can remain a valid choice 😎 |
Everything is now available on Client directly, the authentication service is no longer needed. Can be reviewed commit by commit.
This closes #3029.
Of note for people adopting this:
configure_homeserver
, build your ownClient
with theserverNameOrHomeserverUrl
builder method to keep the same behaviour.AuthenticationError
related to discovery will be represented in theClientBuildError
returned when callingbuild()
.Client
.abortOidcLogin
method that should be called if the webview is dismissed without a callback (or fails to present).AuthenticationError
cases are now in anOidcError
type.OidcAuthenticationData
is now calledOidcAuthorizationData
.