Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
a10f01f
windows support added
NandanPrabhu Aug 17, 2025
ce3967c
windows support added
NandanPrabhu Aug 17, 2025
50ebfae
windows support added
NandanPrabhu Aug 17, 2025
f2d0866
windows support fixes build issue due to dependencies
NandanPrabhu Aug 21, 2025
c4c896d
fixes redirection issues
NandanPrabhu Sep 7, 2025
9b6d647
.env.example added
NandanPrabhu Sep 8, 2025
1213893
Merge branch 'main' into SDK-6071
NandanPrabhu Dec 7, 2025
15534c0
Adds PKCE flow
NandanPrabhu Dec 17, 2025
1d0112e
build(deps): bump codecov/codecov-action from 5.5.1 to 5.5.2 (#689)
dependabot[bot] Dec 10, 2025
9e9e103
Adding DPoP feature for flutter
utkrishtsahu Oct 6, 2025
0fb02f4
feat(android): Upgrade native SDK to 3.9.0 and adapt to breaking changes
utkrishtsahu Oct 14, 2025
cdc2327
adding Dp feature with platform updates
utkrishtsahu Nov 20, 2025
a92e5d4
adding changes as per github action bot
utkrishtsahu Nov 20, 2025
5c29020
addressed bot PR review comments
utkrishtsahu Nov 20, 2025
f2742d3
Fixing UT failure issue in CI for android,ios and macos
utkrishtsahu Nov 20, 2025
f679eeb
Fixed review comments by prince and claude
utkrishtsahu Nov 21, 2025
ba1079b
restored to java 8 and handled review comments
utkrishtsahu Nov 27, 2025
ad4bdcb
Resolving Claud code review
utkrishtsahu Dec 1, 2025
59d453a
Handle review comments and added all UT for flutter including DPoP
utkrishtsahu Dec 2, 2025
e5ef368
addressing unit test failure for android,ios and symlink
utkrishtsahu Dec 2, 2025
8d60adc
Fix race conditions in iOS/macOS unit tests and document cache-only b…
utkrishtsahu Dec 3, 2025
3885a98
Fix iOS/macOS unit test failures
utkrishtsahu Dec 3, 2025
6f5ea14
Resilving review comments and ios UT test failure
utkrishtsahu Dec 3, 2025
51df028
Fix CI failures: Add missing files and update test mocks
utkrishtsahu Dec 3, 2025
d68977e
Fix iOS/macOS unit test timeouts by reverting async test changes
utkrishtsahu Dec 3, 2025
ff9894b
Fix iOS unit test timeouts by adding explicit 5s timeouts to all expe…
utkrishtsahu Dec 3, 2025
248b801
fix iOS unit test timeouts by reverting to proven async/sync patterns
utkrishtsahu Dec 5, 2025
d361a2a
Fixes iOS UTs
NandanPrabhu Dec 5, 2025
155ba50
Adds scenedelegate conformance
NandanPrabhu Dec 5, 2025
cc21832
Address review comments: separate DPoP channel and simplify docs
utkrishtsahu Dec 5, 2025
1115242
Fix test: use correct index for CredentialsManagerMethodCallHandler
utkrishtsahu Dec 5, 2025
e77a5e4
Removed UT as per review comments
utkrishtsahu Dec 5, 2025
580338c
addresed few review comments
utkrishtsahu Dec 5, 2025
a3c5eee
refactor: Move DPoP utility methods from AuthenticationApi to Auth0 c…
utkrishtsahu Dec 5, 2025
ff11a37
Handled review comments:Decoupling in all platforms,removal of commen…
utkrishtsahu Dec 8, 2025
fc88d2c
added UT in CredentialsManagerHandlerTests.swift
utkrishtsahu Dec 8, 2025
6e1cec2
feat: refactor DPoP operations and add tokenType parameter to userPro…
utkrishtsahu Dec 9, 2025
2029df8
Fix iOS CredentialsManager caching tests
utkrishtsahu Dec 9, 2025
a260001
Fixing ios CI failure
utkrishtsahu Dec 9, 2025
0fc8550
Handling review comments UserInfoApiRequestHandler and AuthAPIUserInf…
utkrishtsahu Dec 9, 2025
648acd4
fixing lint issues
utkrishtsahu Dec 10, 2025
938f928
Docs: Add v2.0.0 migration notice and update documentation
utkrishtsahu Dec 10, 2025
551ef0f
Fix linting issue in auth0_flutter folder
utkrishtsahu Dec 10, 2025
767a2c8
Release afpi-v2.0.0-beta.1 (#695)
utkrishtsahu Dec 11, 2025
ac65a8a
Release af-v2.0.0-beta.1 (#696)
utkrishtsahu Dec 11, 2025
17a4020
build(deps): bump actions/cache from 4 to 5 in /.github/actions/setup…
dependabot[bot] Dec 14, 2025
5e9f5c2
build(deps): bump actions/upload-artifact from 5 to 6 in /.github/act…
dependabot[bot] Dec 14, 2025
9cf2471
build(deps): bump actions/upload-artifact from 5 to 6 in /.github/act…
dependabot[bot] Dec 15, 2025
bc450a3
build(deps): bump actions/download-artifact from 6.0.0 to 7.0.0 (#699)
dependabot[bot] Dec 15, 2025
85b7cd9
build(deps): bump actions/upload-artifact from 5 to 6 (#698)
dependabot[bot] Dec 15, 2025
81d0af2
build(deps-dev): bump glob from 10.4.5 to 10.5.0 in /appium-test (#683)
dependabot[bot] Dec 15, 2025
dea4fa3
PKCE bug fixes
NandanPrabhu Dec 19, 2025
8f57ad9
code refactoring
NandanPrabhu Dec 19, 2025
bac263a
fixes build issues
NandanPrabhu Dec 21, 2025
302be07
fixes build issues
NandanPrabhu Dec 21, 2025
dbcbd29
Fixes issue due to expires in
NandanPrabhu Dec 21, 2025
12f5b37
Fixes PKCE issues
NandanPrabhu Jan 3, 2026
6136181
Fixes PKCE issues
NandanPrabhu Jan 3, 2026
4bf059e
adds logout code
NandanPrabhu Jan 5, 2026
eb4a138
adds login to bring app window to the front on redirection
NandanPrabhu Jan 8, 2026
69e57aa
build(deps): bump ruby/setup-ruby in /.github/actions/setup-darwin
dependabot[bot] Dec 18, 2025
a5ac9e6
fix: Fixes the build error when running the `dart run build_runner bu…
pmathew92 Dec 19, 2025
6b5ea13
build(deps): bump ruby/setup-ruby from 1.273.0 to 1.274.0 in /.github…
dependabot[bot] Dec 22, 2025
50bf132
build(deps): bump ruby/setup-ruby from 1.274.0 to 1.275.0 in /.github…
dependabot[bot] Dec 24, 2025
9637414
build(deps): bump ruby/setup-ruby from 1.275.0 to 1.278.0 in /.github…
dependabot[bot] Jan 4, 2026
282cdeb
build(deps): bump ruby/setup-ruby from 1.278.0 to 1.279.0 in /.github…
dependabot[bot] Jan 7, 2026
e9e935f
Merge branch 'main' into SDK-6071
NandanPrabhu Jan 8, 2026
c1cd636
deleted few unused files
NandanPrabhu Jan 8, 2026
6ad8d90
Add unit test and CI setup
NandanPrabhu Jan 20, 2026
8bba351
Merge branch 'main' into SDK-6071
NandanPrabhu Jan 20, 2026
ae5faf8
Refactors code and fixes github CI issue
NandanPrabhu Jan 20, 2026
c28bf6a
Reverts few file changes
NandanPrabhu Jan 20, 2026
e75e834
Reverts few file changes
NandanPrabhu Jan 20, 2026
4364c25
Changes to fix UTs failure in CI
NandanPrabhu Jan 20, 2026
28eda62
Changes to fix UTs failure in CI
NandanPrabhu Jan 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,55 @@ jobs:
name: Test results
path: 'auth0_flutter/example/build/app/reports/androidTests/*.xml'

test-windows-unit:
name: Run native Windows unit tests
runs-on: windows-latest
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}

steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3

- name: Install Flutter
uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
with:
flutter-version: ${{ env.flutter }}
channel: stable
cache: true

- name: Add example/.env
working-directory: auth0_flutter
run: Copy-Item example/.env.example example/.env
shell: powershell

- name: Set up vcpkg
uses: lukka/run-vcpkg@v11 # pin@v11
with:
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgGitCommitId: '7a26ed4ca1cc6eafc66666166f8f36c49dc5ec18'

- name: Install cpprestsdk via vcpkg
run: |
${{ github.workspace }}\vcpkg\vcpkg install cpprestsdk:x64-windows
shell: cmd

- name: Build Windows example app
working-directory: auth0_flutter/example
run: flutter build windows --debug
env:
CMAKE_TOOLCHAIN_FILE: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake

- name: Build Windows unit tests
working-directory: auth0_flutter/windows
run: |
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug
shell: cmd

- name: Run Windows unit tests
working-directory: auth0_flutter/windows/build
run: ctest -C Debug --output-on-failure

# test-android-smoke:
# name: Run native Android smoke tests using API-level ${{ matrix.android-api }}
# runs-on: macos-latest-xl
Expand Down
87 changes: 87 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"files.associations": {
"variant": "cpp",
"tuple": "cpp",
"utility": "cpp",
"array": "cpp",
"vector": "cpp",
"xstring": "cpp",
"xutility": "cpp",
"algorithm": "cpp",
"any": "cpp",
"atomic": "cpp",
"bit": "cpp",
"bitset": "cpp",
"chrono": "cpp",
"cmath": "cpp",
"compare": "cpp",
"complex": "cpp",
"concepts": "cpp",
"deque": "cpp",
"exception": "cpp",
"format": "cpp",
"forward_list": "cpp",
"fstream": "cpp",
"functional": "cpp",
"future": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"iterator": "cpp",
"limits": "cpp",
"list": "cpp",
"map": "cpp",
"memory": "cpp",
"new": "cpp",
"numeric": "cpp",
"optional": "cpp",
"queue": "cpp",
"random": "cpp",
"ratio": "cpp",
"regex": "cpp",
"string": "cpp",
"system_error": "cpp",
"type_traits": "cpp",
"unordered_map": "cpp",
"xlocale": "cpp",
"xlocnum": "cpp",
"xmemory": "cpp",
"xtr1common": "cpp",
"xtree": "cpp",
"cctype": "cpp",
"charconv": "cpp",
"clocale": "cpp",
"codecvt": "cpp",
"condition_variable": "cpp",
"csetjmp": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"ios": "cpp",
"iostream": "cpp",
"locale": "cpp",
"mutex": "cpp",
"ostream": "cpp",
"set": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"stop_token": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"typeinfo": "cpp",
"unordered_set": "cpp",
"xfacet": "cpp",
"xhash": "cpp",
"xiosbase": "cpp",
"xlocbuf": "cpp",
"xlocinfo": "cpp",
"xlocmes": "cpp",
"xlocmon": "cpp",
"xloctime": "cpp"
}
}
36 changes: 34 additions & 2 deletions auth0_flutter/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,39 @@
# This file should be version controlled and should not be manually edited.

version:
revision: 097d3313d8e2c7f901932d63e537c1acefb87800
channel: stable
revision: "ea121f8859e4b13e47a8f845e4586164519588bc"
channel: "[user-branch]"

project_type: plugin

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
- platform: android
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
- platform: ios
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
- platform: macos
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
- platform: web
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
- platform: windows
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
2 changes: 1 addition & 1 deletion auth0_flutter/example/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ AUTH0_CLIENT_ID=YOUR_AUTH0_CLIENT_ID
# settings page of your Auth0 application with the custom scheme value.
# 2. Update the scheme value in android/app/src/main/res/values/strings.xml
#
AUTH0_CUSTOM_SCHEME=YOUR_AUTH0_CUSTOM_SCHEME
AUTH0_CUSTOM_SCHEME=YOUR_AUTH0_CUSTOM_SCHEME
7 changes: 6 additions & 1 deletion auth0_flutter/example/windows/flutter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake)
# https://github.com/flutter/flutter/issues/57146.
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")

# Set fallback configurations for older versions of the flutter tool.
if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
set(FLUTTER_TARGET_PLATFORM "windows-x64")
endif()

# === Flutter Library ===
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")

Expand Down Expand Up @@ -92,7 +97,7 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E env
${FLUTTER_TOOL_ENVIRONMENT}
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
windows-x64 $<CONFIG>
${FLUTTER_TARGET_PLATFORM} $<CONFIG>
VERBATIM
)
add_custom_target(flutter_assemble DEPENDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

#include "generated_plugin_registrant.h"

#include <auth0_flutter/auth0_flutter_plugin_c_api.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
Auth0FlutterPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("Auth0FlutterPluginCApi"));
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
auth0_flutter
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": "x64-Debug"
}
12 changes: 12 additions & 0 deletions auth0_flutter/example/windows/runner/.vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"OutputFoldersPerTargetSystem": {
"Local Machine": [
"out\\build\\x64-Debug",
"out\\install\\x64-Debug"
]
},
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\Administrator\\Documents\\auth0-flutter\\auth0_flutter\\example\\windows\\runner\\",
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": []
}
]
}
Binary file not shown.
5 changes: 5 additions & 0 deletions auth0_flutter/example/windows/runner/flutter_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ bool FlutterWindow::OnCreate() {
this->Show();
});

// Flutter can complete the first frame before the "show window" callback is
// registered. The following call ensures a frame is pending to ensure the
// window is shown. It is a no-op if the first frame hasn't completed yet.
flutter_controller_->ForceRedraw();

return true;
}

Expand Down
Loading
Loading