feat: Add allowedBrowsers parameter to logout API #726
Merged
Conversation
NandanPrabhu
approved these changes
Jan 21, 2026
NandanPrabhu
previously approved these changes
Jan 21, 2026
There was a problem hiding this comment.
Pull request overview
This PR adds the allowedBrowsers parameter to the logout method of the WebAuthentication class, bringing it to parity with the existing login method. This Android-only feature enables developers to specify an allowlist of browser packages for the logout operation.
Changes:
- Added
allowedBrowsersparameter to Dart'sWebAuthentication.logout()method andWebAuthLogoutOptionsclass - Updated Android's
LogoutWebAuthRequestHandlerto handleallowedBrowsersand configureCustomTabsOptionswithBrowserPicker - Added comprehensive unit tests across Flutter and Android platforms
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| auth0_flutter/lib/src/mobile/web_authentication.dart | Added allowedBrowsers parameter to logout() method signature and implementation |
| auth0_flutter_platform_interface/lib/src/web-auth/web_auth_logout_options.dart | Added allowedBrowsers field to WebAuthLogoutOptions class and included it in toMap() serialization |
| auth0_flutter/android/src/main/kotlin/com/auth0/auth0_flutter/request_handlers/web_auth/LogoutWebAuthRequestHandler.kt | Implemented allowedBrowsers handling using CustomTabsOptions and BrowserPicker |
| auth0_flutter/test/mobile/web_authentication_test.dart | Added three test cases covering different scenarios for allowedBrowsers parameter |
| auth0_flutter_platform_interface/test/method_channel_auth0_flutter_web_auth_test.dart | Added tests for allowedBrowsers serialization and default behavior |
| auth0_flutter/android/src/test/kotlin/com/auth0/auth0_flutter/LogoutWebAuthRequestHandlerTest.kt | Added three Kotlin unit tests for allowedBrowsers handling |
| auth0_flutter/example/android/app/build.gradle | Updated manifest placeholders to use string resources instead of hardcoded values |
| auth0_flutter/example/android/app/src/main/res/values/strings.xml.example | Deleted example configuration file |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...main/kotlin/com/auth0/auth0_flutter/request_handlers/web_auth/LogoutWebAuthRequestHandler.kt
Outdated
Show resolved
Hide resolved
subhankarmaiti
approved these changes
Jan 21, 2026
This was referenced Jan 22, 2026
NandanPrabhu
added a commit
that referenced
this pull request
Jan 26, 2026
* main: udpate pubspec udpate podspecs Release af-v2.0.0-beta.2 pubspec update for beta release Release afpi-v2.0.0-beta.2 fix flutter analyse errors build(deps): bump ruby/setup-ruby from 1.285.0 to 1.286.0 in /.github/actions/setup-darwin (#728) build(deps-dev): bump lodash from 4.17.21 to 4.17.23 in /appium-test (#729) chore:Fixed errors from flutter analyze (#727) feat: Add allowedBrowsers parameter to logout API [SDK-724] (#726) build(deps): bump ruby/setup-ruby from 1.283.0 to 1.285.0 in /.github/actions/setup-darwin (#725) address feedback refactor fix test cases and code refactoring fixed test cases fixed test cases feat: add custom token exchange support across all platforms
pmathew92
added a commit
that referenced
this pull request
Feb 2, 2026
NandanPrabhu
added a commit
that referenced
this pull request
Feb 4, 2026
* main: (22 commits) build(deps): bump ruby/setup-ruby from 1.286.0 to 1.288.0 in /.github/actions/setup-darwin (#740) CredentialsManager user info/ID token contents accessible via flutter SDK (#607) CI cleanup Avoid running always failing smoke tests for iOS make PR runs with release workflow that triggers flutter analyze udpate pubspec udpate podspecs Release af-v2.0.0-beta.2 pubspec update for beta release Release afpi-v2.0.0-beta.2 fix flutter analyse errors build(deps): bump ruby/setup-ruby from 1.285.0 to 1.286.0 in /.github/actions/setup-darwin (#728) build(deps-dev): bump lodash from 4.17.21 to 4.17.23 in /appium-test (#729) chore:Fixed errors from flutter analyze (#727) feat: Add allowedBrowsers parameter to logout API [SDK-724] (#726) build(deps): bump ruby/setup-ruby from 1.283.0 to 1.285.0 in /.github/actions/setup-darwin (#725) address feedback refactor fix test cases and code refactoring fixed test cases ...
NandanPrabhu
added a commit
that referenced
this pull request
Feb 23, 2026
* main: (79 commits) build(deps): bump aws-actions/configure-aws-credentials from 5.1.1 to 6.0.0 in /.github/actions/rl-scanner (#744) chore: updated the RL wrapper installation path (#746) Release af-v2.0.0-beta.3 (#743) Release afpi-v2.0.0-beta.3 (#742) Release afpi-v2.0.0-beta.3 (#741) build(deps): bump ruby/setup-ruby from 1.286.0 to 1.288.0 in /.github/actions/setup-darwin (#740) CredentialsManager user info/ID token contents accessible via flutter SDK (#607) CI cleanup Avoid running always failing smoke tests for iOS make PR runs with release workflow that triggers flutter analyze udpate pubspec udpate podspecs Release af-v2.0.0-beta.2 pubspec update for beta release Release afpi-v2.0.0-beta.2 fix flutter analyse errors build(deps): bump ruby/setup-ruby from 1.285.0 to 1.286.0 in /.github/actions/setup-darwin (#728) build(deps-dev): bump lodash from 4.17.21 to 4.17.23 in /appium-test (#729) chore:Fixed errors from flutter analyze (#727) feat: Add allowedBrowsers parameter to logout API [SDK-724] (#726) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the
allowedBrowsersparameter to thelogoutmethod of theWebAuthenticationclass, bringing it to parity with theloginmethod.Closes #724
Changes
allowedBrowsersparameter toWebAuthentication.logout()methodTests
allowedBrowsersinweb_authentication_test.dartmethod_channel_auth0_flutter_web_auth_test.dartLogoutWebAuthRequestHandlerTest.ktUsage Example
Behavior
allowedBrowsersis empty (default), no browser restrictions are appliedChecklist