Skip to content

test: external browser oauth webauthn#7030

Draft
OtavioStasiak wants to merge 4 commits intodevelopfrom
feat-external-browser-oauth-webauthn-test
Draft

test: external browser oauth webauthn#7030
OtavioStasiak wants to merge 4 commits intodevelopfrom
feat-external-browser-oauth-webauthn-test

Conversation

@OtavioStasiak
Copy link
Contributor

Proposed changes

Issue(s)

How to test or reproduce

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

machadolucas and others added 4 commits February 15, 2026 16:50
Android WebView does not support WebAuthn, preventing users from
authenticating with security keys/passkeys through OAuth providers
like Keycloak. This changes Custom OAuth to use the device's native
browser (via Linking.openURL) instead of the in-app WebView, matching
the existing behavior for Google OAuth.

The login style is changed from 'popup' to 'redirect' so the
Rocket.Chat server generates a rocketchat://auth redirect URL that
brings the user back to the app after authentication.

Closes #5681

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When OAuth authentication completes in the external browser, the
Rocket.Chat server redirects to rocketchat://auth with credential
tokens. This adds handling for that redirect URL in parseDeepLinking,
setting type to 'oauth' so the deep linking saga can complete the
login flow.

Also removes the 5-second delay on the deep link listener so OAuth
redirects are processed immediately, and adds an AppState listener
to catch pending OAuth deep links when the app returns to foreground
(needed on iOS where Safari redirects may arrive while app is
backgrounded).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When the app receives an OAuth callback from the external browser,
the SDK WebSocket connection may not be ready yet. This updates
handleOAuth to verify the server connection, establish it if needed
(waiting for METEOR.SUCCESS), and retry the login with backoff on
transient network errors.

This is necessary because unlike the in-app WebView flow where the
SDK stays connected, the external browser flow may cause the app to
be backgrounded and lose its WebSocket connection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 4, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@OtavioStasiak OtavioStasiak requested a deployment to experimental_android_build March 4, 2026 00:54 — with GitHub Actions Waiting
@OtavioStasiak OtavioStasiak requested a deployment to official_android_build March 4, 2026 00:54 — with GitHub Actions Waiting
@OtavioStasiak OtavioStasiak temporarily deployed to experimental_ios_build March 4, 2026 00:54 — with GitHub Actions Inactive
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

iOS Build Available

Rocket.Chat Experimental 4.71.0.108332

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