Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e7458bf
windows support added
NandanPrabhu Aug 17, 2025
a818058
windows support added
NandanPrabhu Aug 17, 2025
845db4a
windows support added
NandanPrabhu Aug 17, 2025
00be716
windows support fixes build issue due to dependencies
NandanPrabhu Aug 21, 2025
74488be
fixes redirection issues
NandanPrabhu Sep 7, 2025
5faba8c
.env.example added
NandanPrabhu Sep 8, 2025
9ed540f
Adds PKCE flow
NandanPrabhu Dec 17, 2025
8a1a0c4
PKCE bug fixes
NandanPrabhu Dec 19, 2025
60bcacf
code refactoring
NandanPrabhu Dec 19, 2025
a4a35f4
fixes build issues
NandanPrabhu Dec 21, 2025
756394a
Fixes issue due to expires in
NandanPrabhu Dec 21, 2025
9a4a1e7
Fixes PKCE issues
NandanPrabhu Jan 3, 2026
1d88064
adds logout code
NandanPrabhu Jan 5, 2026
53c1217
adds login to bring app window to the front on redirection
NandanPrabhu Jan 8, 2026
78829f4
deleted few unused files
NandanPrabhu Jan 8, 2026
34c1a44
Add unit test and CI setup
NandanPrabhu Jan 20, 2026
2e5fdc9
Resolves PR comments - adds uniform naming convention to files - perc…
NandanPrabhu Jan 20, 2026
1486a79
- Added Id token signature validator fixes - Default redirect_uri sam…
NandanPrabhu Feb 21, 2026
c04debb
uses pplx::task + tokeninstead of detach() for thread safety and back…
NandanPrabhu Feb 26, 2026
5794c5d
id token validation azp validation added
NandanPrabhu Mar 6, 2026
78d2aa4
scope calculation logicrefactored to support default scopes
NandanPrabhu Mar 9, 2026
1a15f91
fixes tests
NandanPrabhu Mar 9, 2026
c8f7e18
adds flutter_encodable_value stub
NandanPrabhu Mar 10, 2026
9bff7c0
Fixes review comments - scope logic fixed - document updated for logi…
NandanPrabhu Mar 17, 2026
b3abbb6
flutter tests fixed
NandanPrabhu Mar 17, 2026
9413358
unit tests fixed
NandanPrabhu Mar 18, 2026
9aba1c2
fixes UT in CI
NandanPrabhu Mar 18, 2026
6a9becc
Fixes CI failure
NandanPrabhu Mar 18, 2026
79a202a
changes to app activation url along side redirectUrl and returnTo
NandanPrabhu Mar 23, 2026
5a20c55
add documentation
NandanPrabhu Mar 23, 2026
29840d5
Addresses comments on jwks request, fixes duplicate params in authori…
NandanPrabhu Mar 25, 2026
64e4f57
fixes code while adding qquery params to authorise url - signature va…
NandanPrabhu Mar 26, 2026
eebeee6
/ detected in callback url and removed for matching with callback url…
NandanPrabhu Mar 26, 2026
0b54440
Fixes CI failure
NandanPrabhu Mar 26, 2026
6b47b33
Fixes CI failure
NandanPrabhu Mar 27, 2026
f2a9d51
address claude comments on mutex lock for plugin startup url and scop…
NandanPrabhu Mar 27, 2026
8c35197
Fixes build issues
NandanPrabhu Mar 29, 2026
d023e37
1.sychronization added while reading plugin startup url 2.Fixes CI
NandanPrabhu Mar 29, 2026
6a68a4d
Fixes unit tests
NandanPrabhu Mar 30, 2026
b3ea9f8
Fixes CI
NandanPrabhu Mar 30, 2026
288f7c4
Reverted changes due to rebase
NandanPrabhu Mar 30, 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
153 changes: 133 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,6 @@ jobs:
working-directory: auth0_flutter
run: flutter analyze --no-fatal-warnings --no-fatal-infos

analyze-auth0_flutter_platform_interface:
name: Analyze auth0_flutter_platform_interface Flutter package
runs-on: ubuntu-latest

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

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

- name: Analyze auth0_flutter_platform_interface package
working-directory: auth0_flutter_platform_interface
run: flutter analyze

test-auth0_flutter:
name: Test auth0_flutter Flutter package
runs-on: ubuntu-latest
Expand Down Expand Up @@ -93,6 +74,25 @@ jobs:
name: auth0_flutter coverage
path: auth0_flutter/coverage/lcov.info

analyze-auth0_flutter_platform_interface:
name: Analyze auth0_flutter_platform_interface Flutter package
runs-on: ubuntu-latest

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

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

- name: Analyze auth0_flutter_platform_interface package
working-directory: auth0_flutter_platform_interface
run: flutter analyze

test-auth0_flutter_platform_interface:
name: Test auth0_flutter_platform_interface Flutter package
runs-on: ubuntu-latest
Expand Down Expand Up @@ -307,6 +307,102 @@ 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@1a449444c387b1966244ae4d4f8c696479add0b2 # pin@v2.23.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@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # pin@v11.5
with:
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgGitCommitId: '66c0373dc7fca549e5803087b9487edfe3aca0a1'

- name: Cache vcpkg packages and binaries
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # pin@v4.2.3
with:
path: |
${{ github.workspace }}/vcpkg/installed
${{ github.workspace }}/vcpkg-binary-cache
key: vcpkg-${{ runner.os }}-${{ hashFiles('auth0_flutter/windows/vcpkg.json') }}
restore-keys: |
vcpkg-${{ runner.os }}-

- name: Install vcpkg dependencies
run: |
${{ github.workspace }}\vcpkg\vcpkg install cpprestsdk:x64-windows openssl:x64-windows boost-system:x64-windows boost-date-time:x64-windows boost-regex:x64-windows
shell: cmd
env:
VCPKG_BINARY_SOURCES: 'clear;files,${{ github.workspace }}/vcpkg-binary-cache,readwrite;x-gha,readwrite'

- name: Cache Windows example app build
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # pin@v4.2.3
with:
path: auth0_flutter/example/build/windows
key: win-example-build-${{ runner.os }}-${{ hashFiles('auth0_flutter/windows/**/*.cpp', 'auth0_flutter/windows/**/*.h', 'auth0_flutter/windows/CMakeLists.txt', 'auth0_flutter/windows/vcpkg.json') }}-${{ hashFiles('auth0_flutter/example/lib/**/*.dart') }}
restore-keys: |
win-example-build-${{ runner.os }}-${{ hashFiles('auth0_flutter/windows/**/*.cpp', 'auth0_flutter/windows/**/*.h', 'auth0_flutter/windows/CMakeLists.txt', 'auth0_flutter/windows/vcpkg.json') }}-
win-example-build-${{ runner.os }}-

- 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: Install OpenCppCoverage
run: |
choco install opencppcoverage
echo "C:\Program Files\OpenCppCoverage" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
shell: powershell

- name: Cache Windows unit test build
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # pin@v4.2.3
with:
path: auth0_flutter/windows/build
key: win-test-build-${{ runner.os }}-${{ hashFiles('auth0_flutter/windows/**/*.cpp', 'auth0_flutter/windows/**/*.h', 'auth0_flutter/windows/CMakeLists.txt', 'auth0_flutter/windows/test/**', 'auth0_flutter/windows/vcpkg.json') }}
restore-keys: |
win-test-build-${{ runner.os }}-

- 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 -DAUTH0_FLUTTER_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug
shell: cmd

- name: Run Windows unit tests with coverage
working-directory: auth0_flutter/windows
run: |
& "C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe" `
--sources ${{ github.workspace }}\auth0_flutter\windows `
--excluded_sources ${{ github.workspace }}\auth0_flutter\windows\test `
--export_type html:coverage_html `
-- .\build\Debug\auth0_flutter_tests.exe
shell: powershell

- name: Upload coverage report
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # pin@v6
with:
name: Windows coverage
path: auth0_flutter/windows/coverage_html

# test-android-smoke:
# name: Run native Android smoke tests using API-level ${{ matrix.android-api }}
# runs-on: macos-latest-xl
Expand Down Expand Up @@ -416,10 +512,13 @@ jobs:
runs-on: ubuntu-latest

needs: [
analyze-auth0_flutter,
test-auth0_flutter,
analyze-auth0_flutter_platform_interface,
test-auth0_flutter_platform_interface,
test-ios-unit,
test-android-unit
test-android-unit,
test-windows-unit
]

steps:
Expand Down Expand Up @@ -450,6 +549,12 @@ jobs:
name: Android coverage
path: coverage/android

- name: Download coverage report for Windows
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
with:
name: Windows coverage
path: coverage/windows

- name: Upload coverage report for auth0_flutter
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad
with:
Expand Down Expand Up @@ -477,3 +582,11 @@ jobs:
name: Auth0 Flutter
flags: auth0_flutter_android
directory: coverage/android

- name: Upload coverage report for Windows
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de
with:
name: Auth0 Flutter
flags: auth0_flutter_windows
directory: coverage/windows

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Global coverage
coverage/
**/.vs/

appium-test/node_modules/*

Expand Down
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

32 changes: 0 additions & 32 deletions .idea/auth0-flutter.iml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

1 change: 1 addition & 0 deletions auth0_flutter/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ version:
channel: stable

project_type: plugin

Loading
Loading